Revision 2778
Added by Matt Jones about 19 years ago
lib/lsid_conf/axis/happyaxis.jsp | ||
---|---|---|
1 |
<html> |
|
2 |
<%@ page contentType="text/html; charset=utf-8" |
|
3 |
import="java.io.InputStream, |
|
4 |
java.io.IOException, |
|
5 |
javax.xml.parsers.SAXParser, |
|
6 |
java.lang.reflect.*, |
|
7 |
javax.xml.parsers.SAXParserFactory" |
|
8 |
session="false" %> |
|
9 |
<% |
|
10 |
/* |
|
11 |
* Copyright 2002,2004,2005 The Apache Software Foundation. |
|
12 |
* |
|
13 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
14 |
* you may not use this file except in compliance with the License. |
|
15 |
* You may obtain a copy of the License at |
|
16 |
* |
|
17 |
* http://www.apache.org/licenses/LICENSE-2.0 |
|
18 |
* |
|
19 |
* Unless required by applicable law or agreed to in writing, software |
|
20 |
* distributed under the License is distributed on an "AS IS" BASIS, |
|
21 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
22 |
* See the License for the specific language governing permissions and |
|
23 |
* limitations under the License. |
|
24 |
*/ |
|
25 |
%> |
|
26 |
|
|
27 |
<%! |
|
28 |
/* |
|
29 |
* Happiness tests for axis. These look at the classpath and warn if things |
|
30 |
* are missing. Normally addng this much code in a JSP page is mad |
|
31 |
* but here we want to validate JSP compilation too, and have a drop-in |
|
32 |
* page for easy re-use |
|
33 |
* @author Steve 'configuration problems' Loughran |
|
34 |
* @author dims |
|
35 |
* @author Brian Ewins |
|
36 |
*/ |
|
37 |
|
|
38 |
/** |
|
39 |
* test for a class existing |
|
40 |
* @param classname |
|
41 |
* @return class iff present |
|
42 |
*/ |
|
43 |
Class classExists(String classname) { |
|
44 |
try { |
|
45 |
return Class.forName(classname); |
|
46 |
} catch (ClassNotFoundException e) { |
|
47 |
return null; |
|
48 |
} |
|
49 |
} |
|
50 |
|
|
51 |
/** |
|
52 |
* test for resource on the classpath |
|
53 |
* @param resource |
|
54 |
* @return true iff present |
|
55 |
*/ |
|
56 |
boolean resourceExists(String resource) { |
|
57 |
boolean found; |
|
58 |
InputStream instream=this.getClass().getResourceAsStream(resource); |
|
59 |
found=instream!=null; |
|
60 |
if(instream!=null) { |
|
61 |
try { |
|
62 |
instream.close(); |
|
63 |
} catch (IOException e) { |
|
64 |
} |
|
65 |
} |
|
66 |
return found; |
|
67 |
} |
|
68 |
|
|
69 |
/** |
|
70 |
* probe for a class, print an error message is missing |
|
71 |
* @param out stream to print stuff |
|
72 |
* @param category text like "warning" or "error" |
|
73 |
* @param classname class to look for |
|
74 |
* @param jarFile where this class comes from |
|
75 |
* @param errorText extra error text |
|
76 |
* @param homePage where to d/l the library |
|
77 |
* @return the number of missing classes |
|
78 |
* @throws IOException |
|
79 |
*/ |
|
80 |
int probeClass(JspWriter out, |
|
81 |
String category, |
|
82 |
String classname, |
|
83 |
String jarFile, |
|
84 |
String description, |
|
85 |
String errorText, |
|
86 |
String homePage) throws IOException { |
|
87 |
try { |
|
88 |
Class clazz = classExists(classname); |
|
89 |
if(clazz == null) { |
|
90 |
String url=""; |
|
91 |
if(homePage!=null) { |
|
92 |
url=getMessage("seeHomepage",homePage,homePage); |
|
93 |
} |
|
94 |
out.write(getMessage("couldNotFound",category,classname,jarFile,errorText,url)); |
|
95 |
return 1; |
|
96 |
} else { |
|
97 |
String location = getLocation(out, clazz); |
|
98 |
|
|
99 |
if(location == null) { |
|
100 |
out.write("<li>"+getMessage("foundClass00",description,classname)+"</li><br>"); |
|
101 |
} |
|
102 |
else { |
|
103 |
out.write("<li>"+getMessage("foundClass01",description,classname,location)+"</li><br>"); |
|
104 |
} |
|
105 |
return 0; |
|
106 |
} |
|
107 |
} catch(NoClassDefFoundError ncdfe) { |
|
108 |
String url=""; |
|
109 |
if(homePage!=null) { |
|
110 |
url=getMessage("seeHomepage",homePage,homePage); |
|
111 |
} |
|
112 |
out.write(getMessage("couldNotFoundDep",category, classname, errorText, url)); |
|
113 |
out.write(getMessage("theRootCause",ncdfe.getMessage(), classname)); |
|
114 |
return 1; |
|
115 |
} |
|
116 |
} |
|
117 |
|
|
118 |
/** |
|
119 |
* get the location of a class |
|
120 |
* @param out |
|
121 |
* @param clazz |
|
122 |
* @return the jar file or path where a class was found |
|
123 |
*/ |
|
124 |
|
|
125 |
String getLocation(JspWriter out, |
|
126 |
Class clazz) { |
|
127 |
try { |
|
128 |
java.net.URL url = clazz.getProtectionDomain().getCodeSource().getLocation(); |
|
129 |
String location = url.toString(); |
|
130 |
if(location.startsWith("jar")) { |
|
131 |
url = ((java.net.JarURLConnection)url.openConnection()).getJarFileURL(); |
|
132 |
location = url.toString(); |
|
133 |
} |
|
134 |
|
|
135 |
if(location.startsWith("file")) { |
|
136 |
java.io.File file = new java.io.File(url.getFile()); |
|
137 |
return file.getAbsolutePath(); |
|
138 |
} else { |
|
139 |
return url.toString(); |
|
140 |
} |
|
141 |
} catch (Throwable t){ |
|
142 |
} |
|
143 |
return getMessage("classFoundError"); |
|
144 |
} |
|
145 |
|
|
146 |
/** |
|
147 |
* a class we need if a class is missing |
|
148 |
* @param out stream to print stuff |
|
149 |
* @param classname class to look for |
|
150 |
* @param jarFile where this class comes from |
|
151 |
* @param errorText extra error text |
|
152 |
* @param homePage where to d/l the library |
|
153 |
* @throws IOException when needed |
|
154 |
* @return the number of missing libraries (0 or 1) |
|
155 |
*/ |
|
156 |
int needClass(JspWriter out, |
|
157 |
String classname, |
|
158 |
String jarFile, |
|
159 |
String description, |
|
160 |
String errorText, |
|
161 |
String homePage) throws IOException { |
|
162 |
return probeClass(out, |
|
163 |
"<b>"+getMessage("error")+"</b>", |
|
164 |
classname, |
|
165 |
jarFile, |
|
166 |
description, |
|
167 |
errorText, |
|
168 |
homePage); |
|
169 |
} |
|
170 |
|
|
171 |
/** |
|
172 |
* print warning message if a class is missing |
|
173 |
* @param out stream to print stuff |
|
174 |
* @param classname class to look for |
|
175 |
* @param jarFile where this class comes from |
|
176 |
* @param errorText extra error text |
|
177 |
* @param homePage where to d/l the library |
|
178 |
* @throws IOException when needed |
|
179 |
* @return the number of missing libraries (0 or 1) |
|
180 |
*/ |
|
181 |
int wantClass(JspWriter out, |
|
182 |
String classname, |
|
183 |
String jarFile, |
|
184 |
String description, |
|
185 |
String errorText, |
|
186 |
String homePage) throws IOException { |
|
187 |
return probeClass(out, |
|
188 |
"<b>"+getMessage("warning")+"</b>", |
|
189 |
classname, |
|
190 |
jarFile, |
|
191 |
description, |
|
192 |
errorText, |
|
193 |
homePage); |
|
194 |
} |
|
195 |
|
|
196 |
/** |
|
197 |
* get servlet version string |
|
198 |
* |
|
199 |
*/ |
|
200 |
|
|
201 |
public String getServletVersion() { |
|
202 |
ServletContext context=getServletConfig().getServletContext(); |
|
203 |
int major = context.getMajorVersion(); |
|
204 |
int minor = context.getMinorVersion(); |
|
205 |
return Integer.toString(major) + '.' + Integer.toString(minor); |
|
206 |
} |
|
207 |
|
|
208 |
/** |
|
209 |
* what parser are we using. |
|
210 |
* @return the classname of the parser |
|
211 |
*/ |
|
212 |
private String getParserName() { |
|
213 |
SAXParser saxParser = getSAXParser(); |
|
214 |
if (saxParser == null) { |
|
215 |
return getMessage("couldNotCreateParser"); |
|
216 |
} |
|
217 |
|
|
218 |
// check to what is in the classname |
|
219 |
String saxParserName = saxParser.getClass().getName(); |
|
220 |
return saxParserName; |
|
221 |
} |
|
222 |
|
|
223 |
/** |
|
224 |
* Create a JAXP SAXParser |
|
225 |
* @return parser or null for trouble |
|
226 |
*/ |
|
227 |
private SAXParser getSAXParser() { |
|
228 |
SAXParserFactory saxParserFactory = SAXParserFactory.newInstance(); |
|
229 |
if (saxParserFactory == null) { |
|
230 |
return null; |
|
231 |
} |
|
232 |
SAXParser saxParser = null; |
|
233 |
try { |
|
234 |
saxParser = saxParserFactory.newSAXParser(); |
|
235 |
} catch (Exception e) { |
|
236 |
} |
|
237 |
return saxParser; |
|
238 |
} |
|
239 |
|
|
240 |
/** |
|
241 |
* get the location of the parser |
|
242 |
* @return path or null for trouble in tracking it down |
|
243 |
*/ |
|
244 |
|
|
245 |
private String getParserLocation(JspWriter out) { |
|
246 |
SAXParser saxParser = getSAXParser(); |
|
247 |
if (saxParser == null) { |
|
248 |
return null; |
|
249 |
} |
|
250 |
String location = getLocation(out,saxParser.getClass()); |
|
251 |
return location; |
|
252 |
} |
|
253 |
|
|
254 |
/** |
|
255 |
* Check if class implements specified interface. |
|
256 |
* @param Class clazz |
|
257 |
* @param String interface name |
|
258 |
* @return boolean |
|
259 |
*/ |
|
260 |
private boolean implementsInterface(Class clazz, String interfaceName) { |
|
261 |
if (clazz == null) { |
|
262 |
return false; |
|
263 |
} |
|
264 |
Class[] interfaces = clazz.getInterfaces(); |
|
265 |
if (interfaces.length != 0) { |
|
266 |
for (int i = 0; i < interfaces.length; i++) { |
|
267 |
if (interfaces[i].getName().equals(interfaceName)) { |
|
268 |
return true; |
|
269 |
} |
|
270 |
} |
|
271 |
} |
|
272 |
return false; |
|
273 |
} |
|
274 |
%> |
|
275 |
|
|
276 |
<%@ include file="i18nLib.jsp" %> |
|
277 |
|
|
278 |
<% |
|
279 |
// initialize a private HttpServletRequest |
|
280 |
setRequest(request); |
|
281 |
|
|
282 |
// set a resouce base |
|
283 |
setResouceBase("i18n"); |
|
284 |
%> |
|
285 |
|
|
286 |
<head> |
|
287 |
<title><%= getMessage("pageTitle") %></title> |
|
288 |
</head> |
|
289 |
<body bgcolor='#ffffff'> |
|
290 |
|
|
291 |
<% |
|
292 |
out.print("<h1>"+ getMessage("pageTitle") +"</h1>"); |
|
293 |
out.print("<h2>"+ getMessage("pageRole") +"</h2><p/>"); |
|
294 |
%> |
|
295 |
|
|
296 |
<%= getLocaleChoice() %> |
|
297 |
|
|
298 |
<% |
|
299 |
out.print("<h3>"+ getMessage("neededComponents") +"</h3>"); |
|
300 |
%> |
|
301 |
|
|
302 |
<UL> |
|
303 |
<% |
|
304 |
int needed=0,wanted=0; |
|
305 |
|
|
306 |
/** |
|
307 |
* the essentials, without these Axis is not going to work |
|
308 |
*/ |
|
309 |
|
|
310 |
// need to check if the available version of SAAJ API meets requirements |
|
311 |
String className = "javax.xml.soap.SOAPPart"; |
|
312 |
String interfaceName = "org.w3c.dom.Document"; |
|
313 |
Class clazz = classExists(className); |
|
314 |
if (clazz == null || implementsInterface(clazz, interfaceName)) { |
|
315 |
needed = needClass(out, "javax.xml.soap.SOAPMessage", |
|
316 |
"saaj.jar", |
|
317 |
"SAAJ API", |
|
318 |
getMessage("criticalErrorMessage"), |
|
319 |
"http://ws.apache.org/axis/"); |
|
320 |
} else { |
|
321 |
String location = getLocation(out, clazz); |
|
322 |
|
|
323 |
out.print(getMessage("invalidSAAJ",location)); |
|
324 |
out.print(getMessage("criticalErrorMessage")); |
|
325 |
out.print(getMessage("seeHomepage","http://ws.apache.org/axis/java/install.html",getMessage("axisInstallation"))); |
|
326 |
out.print("<br>"); |
|
327 |
} |
|
328 |
|
|
329 |
needed+=needClass(out, "javax.xml.rpc.Service", |
|
330 |
"jaxrpc.jar", |
|
331 |
"JAX-RPC API", |
|
332 |
getMessage("criticalErrorMessage"), |
|
333 |
"http://ws.apache.org/axis/"); |
|
334 |
|
|
335 |
needed+=needClass(out, "org.apache.axis.transport.http.AxisServlet", |
|
336 |
"axis.jar", |
|
337 |
"Apache-Axis", |
|
338 |
getMessage("criticalErrorMessage"), |
|
339 |
"http://ws.apache.org/axis/"); |
|
340 |
|
|
341 |
needed+=needClass(out, "org.apache.commons.discovery.Resource", |
|
342 |
"commons-discovery.jar", |
|
343 |
"Jakarta-Commons Discovery", |
|
344 |
getMessage("criticalErrorMessage"), |
|
345 |
"http://jakarta.apache.org/commons/discovery/"); |
|
346 |
|
|
347 |
needed+=needClass(out, "org.apache.commons.logging.Log", |
|
348 |
"commons-logging.jar", |
|
349 |
"Jakarta-Commons Logging", |
|
350 |
getMessage("criticalErrorMessage"), |
|
351 |
"http://jakarta.apache.org/commons/logging/"); |
|
352 |
|
|
353 |
needed+=needClass(out, "org.apache.log4j.Layout", |
|
354 |
"log4j-1.2.8.jar", |
|
355 |
"Log4j", |
|
356 |
getMessage("uncertainErrorMessage"), |
|
357 |
"http://jakarta.apache.org/log4j"); |
|
358 |
|
|
359 |
//should we search for a javax.wsdl file here, to hint that it needs |
|
360 |
//to go into an approved directory? because we dont seem to need to do that. |
|
361 |
needed+=needClass(out, "com.ibm.wsdl.factory.WSDLFactoryImpl", |
|
362 |
"wsdl4j.jar", |
|
363 |
"IBM's WSDL4Java", |
|
364 |
getMessage("criticalErrorMessage"), |
|
365 |
null); |
|
366 |
|
|
367 |
needed+=needClass(out, "javax.xml.parsers.SAXParserFactory", |
|
368 |
"xerces.jar", |
|
369 |
"JAXP implementation", |
|
370 |
getMessage("criticalErrorMessage"), |
|
371 |
"http://xml.apache.org/xerces-j/"); |
|
372 |
|
|
373 |
needed+=needClass(out,"javax.activation.DataHandler", |
|
374 |
"activation.jar", |
|
375 |
"Activation API", |
|
376 |
getMessage("criticalErrorMessage"), |
|
377 |
"http://java.sun.com/products/javabeans/glasgow/jaf.html"); |
|
378 |
%> |
|
379 |
</UL> |
|
380 |
<% |
|
381 |
out.print("<h3>"+ getMessage("optionalComponents") +"</h3>"); |
|
382 |
%> |
|
383 |
<UL> |
|
384 |
<% |
|
385 |
/* |
|
386 |
* now the stuff we can live without |
|
387 |
*/ |
|
388 |
wanted+=wantClass(out,"javax.mail.internet.MimeMessage", |
|
389 |
"mail.jar", |
|
390 |
"Mail API", |
|
391 |
getMessage("attachmentsError"), |
|
392 |
"http://java.sun.com/products/javamail/"); |
|
393 |
|
|
394 |
wanted+=wantClass(out,"org.apache.xml.security.Init", |
|
395 |
"xmlsec.jar", |
|
396 |
"XML Security API", |
|
397 |
getMessage("xmlSecurityError"), |
|
398 |
"http://xml.apache.org/security/"); |
|
399 |
|
|
400 |
wanted += wantClass(out, "javax.net.ssl.SSLSocketFactory", |
|
401 |
"jsse.jar or java1.4+ runtime", |
|
402 |
"Java Secure Socket Extension", |
|
403 |
getMessage("httpsError"), |
|
404 |
"http://java.sun.com/products/jsse/"); |
|
405 |
/* |
|
406 |
* resources on the classpath path |
|
407 |
*/ |
|
408 |
/* add more libraries here */ |
|
409 |
|
|
410 |
%> |
|
411 |
</UL> |
|
412 |
<% |
|
413 |
out.write("<h3>"); |
|
414 |
//is everythng we need here |
|
415 |
if(needed==0) { |
|
416 |
//yes, be happy |
|
417 |
out.write(getMessage("happyResult00")); |
|
418 |
} else { |
|
419 |
//no, be very unhappy |
|
420 |
response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); |
|
421 |
out.write(getMessage("unhappyResult00",Integer.toString(needed))); |
|
422 |
} |
|
423 |
//now look at wanted stuff |
|
424 |
if(wanted>0) { |
|
425 |
out.write(getMessage("unhappyResult01",Integer.toString(wanted))); |
|
426 |
} else { |
|
427 |
out.write(getMessage("happyResult01")); |
|
428 |
} |
|
429 |
out.write("</h3>"); |
|
430 |
%> |
|
431 |
<UL> |
|
432 |
<% |
|
433 |
|
|
434 |
//hint if anything is missing |
|
435 |
if(needed>0 || wanted>0 ) { |
|
436 |
out.write(getMessage("hintString")); |
|
437 |
} |
|
438 |
|
|
439 |
out.write(getMessage("noteString")); |
|
440 |
%> |
|
441 |
</UL> |
|
442 |
|
|
443 |
<h2><%= getMessage("apsExamining") %></h2> |
|
444 |
|
|
445 |
<UL> |
|
446 |
<% |
|
447 |
String servletVersion=getServletVersion(); |
|
448 |
String xmlParser=getParserName(); |
|
449 |
String xmlParserLocation = getParserLocation(out); |
|
450 |
%> |
|
451 |
<table border="1" cellpadding="10"> |
|
452 |
<tr><td>Servlet version</td><td><%= servletVersion %></td></tr> |
|
453 |
<tr><td>XML Parser</td><td><%= xmlParser %></td></tr> |
|
454 |
<tr><td>XML ParserLocation</td><td><%= xmlParserLocation %></td></tr> |
|
455 |
</table> |
|
456 |
</UL> |
|
457 |
|
|
458 |
<% if(xmlParser.indexOf("crimson")>=0) { %> |
|
459 |
<p> |
|
460 |
<%= getMessage("recommendedParser") %> |
|
461 |
</p> |
|
462 |
<% } %> |
|
463 |
|
|
464 |
<h2><%= getMessage("sysExamining") %></h2> |
|
465 |
<UL> |
|
466 |
<% |
|
467 |
/** |
|
468 |
* Dump the system properties |
|
469 |
*/ |
|
470 |
java.util.Enumeration e=null; |
|
471 |
try { |
|
472 |
e= System.getProperties().propertyNames(); |
|
473 |
} catch (SecurityException se) { |
|
474 |
} |
|
475 |
if(e!=null) { |
|
476 |
out.write("<pre>"); |
|
477 |
for (;e.hasMoreElements();) { |
|
478 |
String key = (String) e.nextElement(); |
|
479 |
out.write(key + "=" + System.getProperty(key)+"\n"); |
|
480 |
} |
|
481 |
out.write("</pre><p>"); |
|
482 |
} else { |
|
483 |
out.write(getMessage("sysPropError")); |
|
484 |
} |
|
485 |
%> |
|
486 |
</UL> |
|
487 |
<hr> |
|
488 |
<%= getMessage("apsPlatform") %>: |
|
489 |
<%= getServletConfig().getServletContext().getServerInfo() %> |
|
490 |
</body> |
|
491 |
</html> |
|
0 | 492 |
lib/lsid_conf/axis/i18nLib.jsp | ||
---|---|---|
1 |
<%@ page import="java.util.*" %> |
|
2 |
<% |
|
3 |
/* |
|
4 |
* Copyright 2005 The Apache Software Foundation. |
|
5 |
* |
|
6 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
7 |
* you may not use this file except in compliance with the License. |
|
8 |
* You may obtain a copy of the License at |
|
9 |
* |
|
10 |
* http://www.apache.org/licenses/LICENSE-2.0 |
|
11 |
* |
|
12 |
* Unless required by applicable law or agreed to in writing, software |
|
13 |
* distributed under the License is distributed on an "AS IS" BASIS, |
|
14 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
15 |
* See the License for the specific language governing permissions and |
|
16 |
* limitations under the License. |
|
17 |
*/ |
|
18 |
%> |
|
19 |
|
|
20 |
<%! |
|
21 |
/* |
|
22 |
* A library file to produce i18n web applications. This can be easily |
|
23 |
* reused from your jsp(s) - just include and call any methods. |
|
24 |
* @author toshi |
|
25 |
*/ |
|
26 |
|
|
27 |
// private variable |
|
28 |
HttpServletRequest _req = null; |
|
29 |
|
|
30 |
// private variable |
|
31 |
String _strResourceName = null; |
|
32 |
|
|
33 |
/** |
|
34 |
* Set a HttpServletRequest to a private variable. |
|
35 |
* @param request HttpServletRequest |
|
36 |
*/ |
|
37 |
void setRequest(HttpServletRequest request) { |
|
38 |
_req = request; |
|
39 |
} |
|
40 |
|
|
41 |
/** |
|
42 |
* Get the private variable of the HttpServletRequest. |
|
43 |
* @return HttpServletRequest |
|
44 |
*/ |
|
45 |
HttpServletRequest getRequest() { |
|
46 |
return _req; |
|
47 |
} |
|
48 |
|
|
49 |
/** |
|
50 |
* Set a resouce base name to a private variable. |
|
51 |
* @param resouce The resouce base name |
|
52 |
*/ |
|
53 |
void setResouceBase(String resource) { |
|
54 |
_strResourceName = resource; |
|
55 |
} |
|
56 |
|
|
57 |
/** |
|
58 |
* Get the private variable of the resouce base name. |
|
59 |
* @return resouce The resouce base name |
|
60 |
*/ |
|
61 |
String getResouceBase() { |
|
62 |
return _strResourceName; |
|
63 |
} |
|
64 |
|
|
65 |
/** |
|
66 |
* Get a ResourceBundle object. |
|
67 |
* @return a ResourceBundle object |
|
68 |
*/ |
|
69 |
ResourceBundle getRB() { |
|
70 |
String strLocale = getRequest().getParameter("locale"); |
|
71 |
ResourceBundle objRb = null; |
|
72 |
Locale objLcl = null; |
|
73 |
|
|
74 |
if (strLocale!=null) { |
|
75 |
objLcl=new Locale(strLocale,""); |
|
76 |
} else { |
|
77 |
objLcl=getRequest().getLocale(); |
|
78 |
} |
|
79 |
|
|
80 |
Locale.setDefault(objLcl); |
|
81 |
objRb = ResourceBundle.getBundle(getResouceBase(),objLcl); |
|
82 |
|
|
83 |
return objRb; |
|
84 |
} |
|
85 |
|
|
86 |
/** |
|
87 |
* Get a list of locale choice |
|
88 |
* @return a list of supported locales |
|
89 |
*/ |
|
90 |
String getLocaleChoice() { |
|
91 |
String choice = getMessage("locales"); |
|
92 |
StringBuffer buf = new StringBuffer(); |
|
93 |
|
|
94 |
buf.append("<div align=\"right\">\n"); |
|
95 |
buf.append(getMessage("language")); |
|
96 |
buf.append(": "); |
|
97 |
|
|
98 |
StringTokenizer st = new StringTokenizer(choice); |
|
99 |
String locale = null; |
|
100 |
while (st.hasMoreTokens()) { |
|
101 |
locale = st.nextToken(); |
|
102 |
buf.append("[<a href=\"?locale="+ locale +"\">"+ locale +"</a>] "); |
|
103 |
} |
|
104 |
buf.append("\n</div>\n"); |
|
105 |
|
|
106 |
return buf.toString(); |
|
107 |
} |
|
108 |
|
|
109 |
/** |
|
110 |
* Get a message from i18n.properties with several arguments. |
|
111 |
* @param key The resource key |
|
112 |
* @return The formatted message |
|
113 |
*/ |
|
114 |
String getMessage(String key) { |
|
115 |
return getMessage(key, null, null, null, null, null); |
|
116 |
} |
|
117 |
|
|
118 |
/** |
|
119 |
* Get a message from i18n.properties with several arguments. |
|
120 |
* @param key The resource key |
|
121 |
* @param arg0 The argument to place in variable {0} |
|
122 |
* @return The formatted message |
|
123 |
*/ |
|
124 |
String getMessage(String key, String arg0) { |
|
125 |
return getMessage(key, arg0, null, null, null, null); |
|
126 |
} |
|
127 |
|
|
128 |
/** |
|
129 |
* Get a message from i18n.properties with several arguments. |
|
130 |
* @param key The resource key |
|
131 |
* @param arg0 The argument to place in variable {0} |
|
132 |
* @param arg1 The argument to place in variable {1} |
|
133 |
* @return The formatted message |
|
134 |
*/ |
|
135 |
String getMessage(String key, String arg0, String arg1) { |
|
136 |
return getMessage(key, arg0, arg1, null, null, null); |
|
137 |
} |
|
138 |
|
|
139 |
/** |
|
140 |
* Get a message from i18n.properties with several arguments. |
|
141 |
* @param key The resource key |
|
142 |
* @param arg0 The argument to place in variable {0} |
|
143 |
* @param arg1 The argument to place in variable {1} |
|
144 |
* @param arg2 The argument to place in variable {2} |
|
145 |
* @return The formatted message |
|
146 |
*/ |
|
147 |
String getMessage(String key, String arg0, String arg1, String arg2) { |
|
148 |
return getMessage(key, arg0, arg1, arg2, null, null); |
|
149 |
} |
|
150 |
|
|
151 |
/** |
|
152 |
* Get a message from i18n.properties with several arguments. |
|
153 |
* @param key The resource key |
|
154 |
* @param arg0 The argument to place in variable {0} |
|
155 |
* @param arg1 The argument to place in variable {1} |
|
156 |
* @param arg2 The argument to place in variable {2} |
|
157 |
* @param arg3 The argument to place in variable {3} |
|
158 |
* @return The formatted message |
|
159 |
*/ |
|
160 |
String getMessage(String key, String arg0, String arg1, |
|
161 |
String arg2, String arg3) { |
|
162 |
return getMessage(key, arg0, arg1, arg2, arg3, null); |
|
163 |
} |
|
164 |
|
|
165 |
/** |
|
166 |
* Get a message from i18n.properties with several arguments. |
|
167 |
* @param key The resource key |
|
168 |
* @param arg0 The argument to place in variable {0} |
|
169 |
* @param arg1 The argument to place in variable {1} |
|
170 |
* @param arg2 The argument to place in variable {2} |
|
171 |
* @param arg3 The argument to place in variable {3} |
|
172 |
* @param arg4 The argument to place in variable {4} |
|
173 |
* @return The formatted message |
|
174 |
*/ |
|
175 |
String getMessage(String key, String arg0, String arg1, |
|
176 |
String arg2, String arg3, String arg4) { |
|
177 |
String strPattern = getRB().getString(key); |
|
178 |
|
|
179 |
String [] params = { arg0, arg1, arg2, arg3, arg4 }; |
|
180 |
for (int i=0; i<5; i++) { |
|
181 |
if (params[i]!=null) params[i]=replaceAll(params[i],"%20"," "); |
|
182 |
} |
|
183 |
|
|
184 |
if (arg0!=null) strPattern = replaceAll(strPattern,"{0}",params[0]); |
|
185 |
if (arg1!=null) strPattern = replaceAll(strPattern,"{1}",params[1]); |
|
186 |
if (arg2!=null) strPattern = replaceAll(strPattern,"{2}",params[2]); |
|
187 |
if (arg3!=null) strPattern = replaceAll(strPattern,"{3}",params[3]); |
|
188 |
if (arg4!=null) strPattern = replaceAll(strPattern,"{4}",params[4]); |
|
189 |
|
|
190 |
return strPattern; |
|
191 |
} |
|
192 |
|
|
193 |
/** |
|
194 |
* Get a replaced string by the specified message. |
|
195 |
* @param source The original message |
|
196 |
* @param pattern The key message for replacing |
|
197 |
* @param replace The message to place in the key variable - 'pattern' |
|
198 |
* @return The replaced message |
|
199 |
*/ |
|
200 |
String replaceAll(String source, String pattern, String replace) |
|
201 |
{ |
|
202 |
int i=0; |
|
203 |
boolean ret = false; |
|
204 |
StringBuffer buf = new StringBuffer(); |
|
205 |
|
|
206 |
int lenSource = source.length(); |
|
207 |
int lenPattern = pattern.length(); |
|
208 |
|
|
209 |
for (i=0; i<lenSource; i++) { |
|
210 |
ret = source.regionMatches(i, pattern, 0, lenPattern); |
|
211 |
if (ret) { |
|
212 |
buf.append(source.substring(0,i)); |
|
213 |
buf.append(replace); |
|
214 |
buf.append(source.substring(i+lenPattern)); |
|
215 |
source = replaceAll(buf.toString(), pattern, replace); |
|
216 |
break; |
|
217 |
} |
|
218 |
} |
|
219 |
return source; |
|
220 |
} |
|
221 |
%> |
|
0 | 222 |
lib/lsid_conf/axis/index.jsp | ||
---|---|---|
1 |
<html> |
|
2 |
<%@ page contentType="text/html; charset=utf-8" %> |
|
3 |
<% |
|
4 |
/* |
|
5 |
* Copyright 2005 The Apache Software Foundation. |
|
6 |
* |
|
7 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
8 |
* you may not use this file except in compliance with the License. |
|
9 |
* You may obtain a copy of the License at |
|
10 |
* |
|
11 |
* http://www.apache.org/licenses/LICENSE-2.0 |
|
12 |
* |
|
13 |
* Unless required by applicable law or agreed to in writing, software |
|
14 |
* distributed under the License is distributed on an "AS IS" BASIS, |
|
15 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
16 |
* See the License for the specific language governing permissions and |
|
17 |
* limitations under the License. |
|
18 |
*/ |
|
19 |
%> |
|
20 |
|
|
21 |
<%@ include file="i18nLib.jsp" %> |
|
22 |
|
|
23 |
<% |
|
24 |
// initialize a private HttpServletRequest |
|
25 |
setRequest(request); |
|
26 |
|
|
27 |
// set a resouce base |
|
28 |
setResouceBase("i18n"); |
|
29 |
%> |
|
30 |
|
|
31 |
<head> |
|
32 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
33 |
<title>Apache-Axis</title> |
|
34 |
</head> |
|
35 |
|
|
36 |
<body bgcolor="#FFFFFF"> |
|
37 |
|
|
38 |
<h1 align="center">Apache-AXIS</h1> |
|
39 |
|
|
40 |
<%= getLocaleChoice() %> |
|
41 |
|
|
42 |
<% |
|
43 |
out.print(getMessage("welcomeMessage")+"<p/>"); |
|
44 |
out.print(getMessage("operationType")); |
|
45 |
%> |
|
46 |
|
|
47 |
<ul> |
|
48 |
|
|
49 |
<li> |
|
50 |
<% |
|
51 |
out.print("<a href=\""+ getMessage("validationURL") +"\">"); |
|
52 |
out.print(getMessage("validation") +"</a> - "); |
|
53 |
out.print(getMessage("validationFootnote00") +"<br>"); |
|
54 |
out.print("<i>"+ getMessage("validationFootnote01") +"</i>"); |
|
55 |
%> |
|
56 |
</li> |
|
57 |
|
|
58 |
<li> |
|
59 |
<% |
|
60 |
out.print("<a href=\""+ getMessage("serviceListURL") +"\">"); |
|
61 |
out.print(getMessage("serviceList") +"</a> - "); |
|
62 |
out.print(getMessage("serviceListFootnote")); |
|
63 |
%> |
|
64 |
</li> |
|
65 |
|
|
66 |
<li> |
|
67 |
<% |
|
68 |
out.print("<a href=\""+ getMessage("callAnEndpointURL") +"\">"); |
|
69 |
out.print(getMessage("callAnEndpoint") +"</a> - "); |
|
70 |
out.print(getMessage("callAnEndpointFootnote00") +" "); |
|
71 |
out.print(getMessage("callAnEndpointFootnote01")); |
|
72 |
%> |
|
73 |
</li> |
|
74 |
|
|
75 |
<li> |
|
76 |
<% |
|
77 |
out.print("<a href=\""+ getMessage("visitURL") +"\">"); |
|
78 |
out.print(getMessage("visit") +"</a> - "); |
|
79 |
out.print(getMessage("visitFootnote")); |
|
80 |
%> |
|
81 |
</li> |
|
82 |
|
|
83 |
<li> |
|
84 |
<% |
|
85 |
out.print("<a href=\""+ getMessage("adminURL") +"\">"); |
|
86 |
out.print(getMessage("admin") +"</a> - "); |
|
87 |
out.print(getMessage("adminFootnote")); |
|
88 |
%> |
|
89 |
</li> |
|
90 |
|
|
91 |
<li> |
|
92 |
<% |
|
93 |
out.print("<a href=\""+ getMessage("soapMonitorURL") +"\">"); |
|
94 |
out.print(getMessage("soapMonitor") +"</a> - "); |
|
95 |
out.print(getMessage("soapMonitorFootnote")); |
|
96 |
%> |
|
97 |
</li> |
|
98 |
|
|
99 |
</ul> |
|
100 |
|
|
101 |
<% |
|
102 |
out.print(getMessage("sideNote") +"<p/>"); |
|
103 |
%> |
|
104 |
|
|
105 |
<% |
|
106 |
out.print("<h3>"+ getMessage("validatingAxis") +"</h3>"); |
|
107 |
|
|
108 |
out.print(getMessage("validationNote00") +"<p/>"); |
|
109 |
out.print(getMessage("validationNote01")); |
|
110 |
%> |
|
111 |
</body> |
|
112 |
</html> |
|
0 | 113 |
lib/lsid_conf/axis/i18n_ja.properties | ||
---|---|---|
1 |
############################################################ |
|
2 |
# Japanese settings for the Axis Web-Application |
|
3 |
# |
|
4 |
|
|
5 |
#################### [index.jsp] ########################### |
|
6 |
# |
|
7 |
|
|
8 |
### Header ### |
|
9 |
# |
|
10 |
language=\u8a00\u8a9e |
|
11 |
welcomeMessage=\u3053\u3093\u306b\u3061\u306f\uff01 Apache-Axis\u3078\u3088\u3046\u3053\u305d |
|
12 |
|
|
13 |
### Operation list ### |
|
14 |
# |
|
15 |
operationType=\u4eca\u65e5\u306f\u4f55\u3092\u3057\u305f\u3044\u3067\u3059\u304b\uff1f |
|
16 |
|
|
17 |
# Validation |
|
18 |
validation=\u691c\u8a3c |
|
19 |
validationURL=happyaxis.jsp |
|
20 |
validationFootnote00=\u30ed\u30fc\u30ab\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u72b6\u6cc1\u3092\u691c\u8a3c\u3059\u308b |
|
21 |
validationFootnote01=\u3046\u307e\u304f\u6a5f\u80fd\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u4e0b\u8a18\u300cAxis\u306e\u691c\u8a3c\u300d\u3092\u53c2\u7167 |
|
22 |
|
|
23 |
# List |
|
24 |
serviceList=\u30ea\u30b9\u30c8 |
|
25 |
serviceListURL=servlet/AxisServlet |
|
26 |
serviceListFootnote=\u30c7\u30d7\u30ed\u30a4\u6e08\u307f\u306eWeb\u30b5\u30fc\u30d3\u30b9\u30ea\u30b9\u30c8\u3092\u898b\u308b |
|
27 |
|
|
28 |
# Call |
|
29 |
callAnEndpoint=\u547c\u51fa\u3057 |
|
30 |
callAnEndpointURL=EchoHeaders.jws?method=list |
|
31 |
callAnEndpointFootnote00=HTTP\u30d8\u30c3\u30c0\u306e\u4e00\u89a7\u8868\u793a\u3092\u884c\u3046\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u8d77\u52d5\u3059\u308b |
|
32 |
callAnEndpointFootnote01=(\u3082\u3057\u304f\u306f<a href="EchoHeaders.jws?wsdl">WSDL</a>\u306e\u53c2\u7167) |
|
33 |
|
|
34 |
# Visit |
|
35 |
visit=\u8a2a\u554f |
|
36 |
visitURL=http://ws.apache.org/axis/ja/index.html |
|
37 |
visitFootnote=Apache Axis\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u3092\u8a2a\u554f\u3059\u308b |
|
38 |
|
|
39 |
# Admin |
|
40 |
admin=Axis\u306e\u7ba1\u7406 |
|
41 |
adminURL=servlet/AdminServlet |
|
42 |
adminFootnote=[\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u7406\u7531\u304b\u3089\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u5229\u7528\u4e0d\u53ef] |
|
43 |
|
|
44 |
# SOAPMonitor |
|
45 |
soapMonitor=SOAP\u30e2\u30cb\u30bf |
|
46 |
soapMonitorURL=SOAPMonitor |
|
47 |
soapMonitorFootnote=[\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u7406\u7531\u304b\u3089\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u5229\u7528\u4e0d\u53ef] |
|
48 |
|
|
49 |
# Sidenote |
|
50 |
sideNote=\u4e0a\u8a18\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u5229\u7528\u3067\u304d\u306a\u3044\u6a5f\u80fd\u3092\u6709\u52b9\u306b\u3059\u308b\u306b\u306f\u3001web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5185\u306eWEB-INF/web.xml\u30d5\u30a1\u30a4\u30eb\u306e\u8a72\u5f53\u3059\u308b\u5ba3\u8a00\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u5916\u3057\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u518d\u8d77\u52d5\u3057\u3066\u4e0b\u3055\u3044\u3002 |
|
51 |
|
|
52 |
### Validating Axis ### |
|
53 |
# |
|
54 |
|
|
55 |
# Title |
|
56 |
validatingAxis=Axis\u306e\u691c\u8a3c |
|
57 |
|
|
58 |
# Note 0 |
|
59 |
validationNote00="happyaxis"\u691c\u8a3c\u30da\u30fc\u30b8\u304c\u72b6\u614b\u8868\u793a\u3067\u306f\u306a\u304f\u4f8b\u5916\u3092\u8868\u793a\u3059\u308b\u5834\u5408\u3001\u539f\u56e0\u3068\u3057\u3066\u306f\u30af\u30e9\u30b9\u30d1\u30b9\u5185\u306b\u8907\u6570\u306eXML\u30d1\u30fc\u30b5\u3092\u6307\u5b9a\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u3002\u95a2\u4fc2\u306a\u3044\u30d1\u30fc\u30b5\u3092\u30af\u30e9\u30b9\u30d1\u30b9\u304b\u3089\u53d6\u308a\u9664\u3044\u3066\u307f\u3066\u4e0b\u3055\u3044\u3002 |
|
60 |
|
|
61 |
# Note 1 |
|
62 |
validationNote01=Axis\u3092\u52d5\u4f5c\u3055\u305b\u308b\u4e0a\u3067\u554f\u984c\u3092\u62b1\u3048\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u307e\u305a<a href="http://wiki.apache.org/ws/ja/axis">Axis Wiki</a>\u3092\u53c2\u8003\u306b\u3057\u3001\u305d\u306e\u5f8c\u3067Axis\u30e6\u30fc\u30b6\u30e1\u30fc\u30ea\u30f3\u30b0\u30ea\u30b9\u30c8\u306b\u6295\u7a3f\u3057\u3066\u307f\u3066\u4e0b\u3055\u3044\u3002 |
|
63 |
|
|
64 |
# |
|
65 |
#################### [index.jsp] ########################### |
|
66 |
|
|
67 |
#################### [happyaxis.jsp] ####################### |
|
68 |
# |
|
69 |
pageTitle=Axis Happiness Page |
|
70 |
pageRole=webapp\u306e\u69cb\u6210\u306b\u95a2\u3059\u308b\u8abf\u67fb |
|
71 |
|
|
72 |
### Needed Components ### |
|
73 |
# |
|
74 |
neededComponents=\u5fc5\u9808\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8 |
|
75 |
error=\u30a8\u30e9\u30fc |
|
76 |
warning=\u8b66\u544a |
|
77 |
criticalErrorMessage=\u304a\u305d\u3089\u304fAxis\u306f\u52d5\u304d\u307e\u305b\u3093\u3002 |
|
78 |
uncertainErrorMessage=Axis\u306f\u52d5\u304b\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002 |
|
79 |
# parameters = url, name |
|
80 |
seeHomepage=<br> <a href="{0}">{0}</a>\u3092\u898b\u3066\u4e0b\u3055\u3044\u3002 |
|
81 |
# parameters = category, classname, jarFile, errorText, url |
|
82 |
couldNotFound=<p> {0}: <b>{2}</b>\u30d5\u30a1\u30a4\u30eb\u304c\u63d0\u4f9b\u3059\u308b{1}\u30af\u30e9\u30b9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002<br> {3} {4}<p> |
|
83 |
# parameters = description, classname |
|
84 |
foundClass00={0} ( {1} ) \u304c\u898b\u3064\u304b\u308a\u307e\u3057\u305f\u3002 |
|
85 |
# parameters = description, classname, location |
|
86 |
foundClass01={0} ( {1} ) \u304c{2}\u3067\u898b\u3064\u304b\u308a\u307e\u3057\u305f\u3002 |
|
87 |
# parameters = category, classname, errorText, url |
|
88 |
couldNotFoundDep=<p> {0}: <b>{2}</b>\u30d5\u30a1\u30a4\u30eb\u304c\u63d0\u4f9b\u3059\u308b{1}\u30af\u30e9\u30b9\u306e\u4f9d\u5b58\u95a2\u4fc2\u304c\u89e3\u6c7a\u3067\u304d\u307e\u305b\u3093\u3002<br> {3} {4} |
|
89 |
# parameters = ncdfe.getMessage(), classname |
|
90 |
theRootCause=<br>\u6839\u672c\u539f\u56e0: {0}<br>\u3053\u306e\u30a8\u30e9\u30fc\u306f\u6b21\u306e\u3088\u3046\u306a\u5834\u5408\u306b\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u300c\u5171\u901a\u306e\u300d\u30af\u30e9\u30b9\u30d1\u30b9\u306b{1}\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u306b\u3082\u304b\u304b\u308f\u3089\u305a\u3001activation.jar \u306e\u3088\u3046\u306a\u4f9d\u5b58\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u304cwebapp\u306e\u30af\u30e9\u30b9\u30d1\u30b9\u3060\u3051\u306b\u3057\u304b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u3088\u3046\u306a\u5834\u5408\u3067\u3059\u3002<p> |
|
91 |
# parameters = location |
|
92 |
invalidSAAJ=<b>\u30a8\u30e9\u30fc:</b> {0}\u306b\u9069\u5207\u3067\u306a\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306eSAAJ API\u304c\u898b\u3064\u304b\u308a\u307e\u3057\u305f\u3002Axis\u306esaaj.jar\u3092\u3001CLASSPATH\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b{0} \u3088\u308a\u3082\u524d\u65b9\u306b\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br> |
|
93 |
axisInstallation=Axis\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806 |
|
94 |
|
|
95 |
### Optional Components ### |
|
96 |
# |
|
97 |
optionalComponents=\u30aa\u30d7\u30b7\u30e7\u30ca\u30eb\uff65\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8 |
|
98 |
attachmentsError=\u304a\u305d\u3089\u304fAttachments\u306f\u6a5f\u80fd\u3057\u307e\u305b\u3093\u3002 |
|
99 |
xmlSecurityError=XML Security\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u307e\u305b\u3093\u3002 |
|
100 |
httpsError=https\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u307e\u305b\u3093\u3002 |
|
101 |
|
|
102 |
happyResult00=<i>axis\u306e\u30b3\u30a2\uff65\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u5168\u3066\u5b58\u5728\u3057\u3066\u3044\u307e\u3059\u3002</i> |
|
103 |
happyResult01=<i>\u30aa\u30d7\u30b7\u30e7\u30ca\u30eb\uff65\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u5b58\u5728\u3057\u3066\u3044\u307e\u3059\u3002</i> |
|
104 |
# parameters = needed(num of missing libraries) |
|
105 |
unhappyResult00=<i>axis\u306e\u30b3\u30a2\uff65\u30e9\u30a4\u30d6\u30e9\u30ea\u304c{0}\u3064\u6b20\u3051\u3066\u3044\u307e\u3059\u3002</i> |
|
106 |
# parameters = wanted(num of missing libraries) |
|
107 |
unhappyResult01=<i>axis\u306e\u30aa\u30d7\u30b7\u30e7\u30ca\u30eb\uff65\u30e9\u30a4\u30d6\u30e9\u30ea\u304c{0}\u3064\u6b20\u3051\u3066\u3044\u307e\u3059\u3002</i> |
|
108 |
|
|
109 |
hintString=<B><I>\u6ce8\u610f:</I></B> Tomcat 4.x \u3068 Java1.4 \u4e0a\u3067\u306f\u3001CATALINA_HOME/common/lib \u306b\u3001java.* \u3082\u3057\u304f\u306f javax.* \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u542b\u3080\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u914d\u7f6e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br>\u4f8b\u3048\u3070 jaxrpc.jar \u3068 saaj.jar \u306f\u3001\u305d\u306e\u3088\u3046\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002<p/> |
|
110 |
noteString=<B><I>\u6ce8\u610f:</I></B> \u30da\u30fc\u30b8\u306b\u5168\u3066\u306e\u8abf\u67fb\u7d50\u679c\u304c\u8868\u793a\u3055\u308c\u305f\u3068\u3057\u3066\u3082\u3001\u30c1\u30a7\u30c3\u30af\u3067\u304d\u306a\u3044\u69cb\u6210\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u591a\u3044\u305f\u3081\u3001\u3042\u306a\u305f\u306eWeb\u30b5\u30fc\u30d3\u30b9\u304c\u6b63\u5e38\u306b\u6a5f\u80fd\u3059\u308b\u4fdd\u969c\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3053\u308c\u3089\u306e\u30c6\u30b9\u30c8\u306f<i>\u5fc5\u8981</i>\u306a\u3082\u306e\u3067\u3059\u304c\u3001<i>\u5341\u5206</i>\u306a\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002 |
|
111 |
|
|
112 |
### Examining Application Server ### |
|
113 |
# |
|
114 |
apsExamining=\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff65\u30b5\u30fc\u30d0\u30fc\u306b\u95a2\u3059\u308b\u8abf\u67fb |
|
115 |
recommendedParser=<b>Axis\u3067\u4f7f\u7528\u3059\u308bXML\u30d1\u30fc\u30b5\u30fc\u306b\u306f Crimson \u3067\u306f\u306a\u304f\u3001<a href="http://xml.apache.org/xerces2-j/">Xerces 2</a> \u3092\u63a8\u5968\u3057\u3066\u3044\u307e\u3059\u3002</b> |
|
116 |
couldNotCreateParser=XML Parser\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002 |
|
117 |
|
|
118 |
### Examining System Properties ### |
|
119 |
# |
|
120 |
sysExamining=\u30b7\u30b9\u30c6\u30e0\uff65\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u95a2\u3059\u308b\u8abf\u67fb |
|
121 |
sysPropError=\u30b7\u30b9\u30c6\u30e0\uff65\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u305b\u3093\u3002<p> |
|
122 |
|
|
123 |
classFoundError=\u4e0d\u660e\u306a\u5834\u6240 |
|
124 |
apsPlatform=\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0 |
|
125 |
|
|
126 |
# |
|
127 |
#################### [happyaxis.jsp] ####################### |
|
0 | 128 |
lib/lsid_conf/axis/i18n.properties | ||
---|---|---|
1 |
############################################################ |
|
2 |
# i18n settings for the Axis Web-Application |
|
3 |
# |
|
4 |
|
|
5 |
#################### [i18n global setting] ################# |
|
6 |
# |
|
7 |
locales=en ja |
|
8 |
|
|
9 |
#################### [index.jsp] ########################### |
|
10 |
# |
|
11 |
|
|
12 |
### Header ### |
|
13 |
# |
|
14 |
language=Language |
|
15 |
welcomeMessage=Hello! Welcome to Apache-Axis. |
|
16 |
|
|
17 |
### Operation list ### |
|
18 |
# |
|
19 |
operationType=What do you want to do today? |
|
20 |
|
|
21 |
# Validation |
|
22 |
validation=Validation |
|
23 |
validationURL=happyaxis.jsp |
|
24 |
validationFootnote00=Validate the local installation's configuration |
|
25 |
validationFootnote01=see below if this does not work. |
|
26 |
|
|
27 |
# List |
|
28 |
serviceList=List |
|
29 |
serviceListURL=servlet/AxisServlet |
|
30 |
serviceListFootnote=View the list of deployed Web services |
|
31 |
|
|
32 |
# Call |
|
33 |
callAnEndpoint=Call |
|
34 |
callAnEndpointURL=EchoHeaders.jws?method=list |
|
35 |
callAnEndpointFootnote00=Call a local endpoint that list's the caller's http headers |
|
36 |
callAnEndpointFootnote01=(or see its <a href="EchoHeaders.jws?wsdl">WSDL</a>). |
|
37 |
|
|
38 |
# Visit |
|
39 |
visit=Visit |
|
40 |
visitURL=http://ws.apache.org/axis/ |
|
41 |
visitFootnote=Visit the Apache-Axis Home Page |
|
42 |
|
|
43 |
# Admin |
|
44 |
admin=Administer Axis |
|
45 |
adminURL=servlet/AdminServlet |
|
46 |
adminFootnote=[disabled by default for security reasons] |
|
47 |
|
|
48 |
# SOAPMonitor |
|
49 |
soapMonitor=SOAPMonitor |
|
50 |
soapMonitorURL=SOAPMonitor |
|
51 |
soapMonitorFootnote=[disabled by default for security reasons] |
|
52 |
|
|
53 |
# Sidenote |
|
54 |
sideNote=To enable the disabled features, uncomment the appropriate declarations in WEB-INF/web.xml in the webapplication and restart it. |
|
55 |
|
|
56 |
### Validating Axis ### |
|
57 |
# |
|
58 |
|
|
59 |
# Title |
|
60 |
validatingAxis=Validating Axis |
|
61 |
|
|
62 |
# Note 0 |
|
63 |
validationNote00=If the "happyaxis" validation page displays an exception instead of a status page, the likely cause is that you have multiple XML parsers in your classpath. Clean up your classpath by eliminating extraneous parsers. |
|
64 |
|
|
65 |
# Note 1 |
|
66 |
validationNote01=If you have problems getting Axis to work, consult the Axis <a href="http://wiki.apache.org/ws/FrontPage/Axis">Wiki</a> and then try the Axis user mailing list. |
|
67 |
|
|
68 |
# |
|
69 |
#################### [index.jsp] ########################### |
|
70 |
|
|
71 |
#################### [happyaxis.jsp] ####################### |
|
72 |
# |
|
73 |
|
|
74 |
pageTitle=Axis Happiness Page |
|
75 |
pageRole=Examining webapp configuration |
|
76 |
|
|
77 |
### Needed Components ### |
|
78 |
# |
|
79 |
neededComponents=Needed Components |
|
80 |
error=Error |
|
81 |
warning=Warning |
|
82 |
criticalErrorMessage=Axis will not work. |
|
83 |
uncertainErrorMessage=Axis may not work. |
|
84 |
# parameters = url, name |
|
85 |
seeHomepage=<br> See <a href="{0}">{0}</a> |
|
86 |
# parameters = category, classname, jarFile, errorText, url |
|
87 |
couldNotFound=<p> {0}: could not find class {1} from file <b>{2}</b><br> {3} {4}<p> |
|
88 |
# parameters = description, classname |
|
89 |
foundClass00=Found {0} ( {1} ) |
|
90 |
# parameters = description, classname |
|
91 |
foundClass01=Found {0} ( {1} ) at {2} |
|
92 |
# parameters = category, classname, errorText, url |
|
93 |
couldNotFoundDep=<p> {0}: could not find a dependency of class {1} from file <b>{2}</b><br> {3} {4} |
|
94 |
# parameters = ncdfe.getMessage(), classname |
|
95 |
theRootCause=<br>The root cause was: {0}<br>This can happen e.g. if {1} is in the 'common' classpath, but a dependency like activation.jar is only in the webapp classpath.<p> |
|
96 |
# parameters = location |
|
97 |
invalidSAAJ=<b>Error:</b> Invalid version of SAAJ API found in {0}. Make sure that Axis' saaj.jar precedes {0} in CLASSPATH.<br> |
|
98 |
axisInstallation=Axis installation instructions |
|
99 |
|
|
100 |
### Optional Components ### |
|
101 |
# |
|
102 |
|
|
103 |
optionalComponents=Optional Components |
|
104 |
attachmentsError=Attachments will not work. |
|
105 |
xmlSecurityError=XML Security is not supported. |
|
106 |
httpsError=https is not supported. |
|
107 |
|
|
108 |
happyResult00=<i>The core axis libraries are present.</i> |
|
109 |
happyResult01=<i>The optional components are present.</i> |
|
110 |
# parameters = needed(num of missing libraries) |
|
111 |
unhappyResult00=<i>{0} core axis library(ies) are missing</i> |
|
112 |
# parameters = wanted(num of missing libraries) |
|
113 |
unhappyResult01=<i>{0} wanted optional axis librar(ies) are missing</i> |
|
114 |
|
|
115 |
hintString=<B><I>Note:</I></B> On Tomcat 4.x and Java1.4, you may need to put libraries that contain java.* or javax.* packages into CATALINA_HOME/common/lib <br>jaxrpc.jar and saaj.jar are two such libraries.<p/> |
|
116 |
noteString=<B><I>Note:</I></B> Even if everything this page probes for is present, there is no guarantee your web service will work, because there are many configuration options that we do not check for. These tests are <i>necessary</i> but not <i>sufficient</i><hr> |
|
117 |
|
|
118 |
### Examining Application Server ### |
|
119 |
# |
|
120 |
apsExamining=Examining Application Server |
|
121 |
recommendedParser=<b>We recommend <a href="http://xml.apache.org/xerces2-j/">Xerces 2</a> over Crimson as the XML parser for Axis</b> |
|
122 |
couldNotCreateParser=Could not create an XML Parser |
|
123 |
|
|
124 |
### Examining System Properties ### |
|
125 |
# |
|
126 |
sysExamining=Examining System Properties |
|
127 |
sysPropError=System properties are not accessible.<p> |
|
128 |
classFoundError=an unknown location |
|
129 |
apsPlatform=Platform |
|
130 |
|
|
131 |
# |
|
132 |
#################### [happyaxis.jsp] ####################### |
|
0 | 133 |
build.xml | ||
---|---|---|
898 | 898 |
<exclude name="**/*.jpg"/> |
899 | 899 |
<exclude name="**/*.png"/> |
900 | 900 |
<exclude name="**/*.gif"/> |
901 |
<exclude name="lsid_lib/**"/> |
|
902 |
<exclude name="lsid_conf/**"/> |
|
901 | 903 |
</fileset> |
902 | 904 |
</copy> |
903 | 905 |
<copy todir="${war.context}" filtering="no"> |
... | ... | |
1339 | 1341 |
<include name="lsid-server-1.1.1.jar" /> |
1340 | 1342 |
<include name="saaj.jar" /> |
1341 | 1343 |
<include name="wsdl4j-1.5.1.jar" /> |
1342 |
<!-- These jars may be needed but seem to not actually be, |
|
1343 |
so leaving them out for now |
|
1344 | 1344 |
<include name="activation.jar" /> |
1345 |
<include name="axis-ant.jar" /> |
|
1346 | 1345 |
<include name="castor-0.9.5.jar" /> |
1347 |
<include name="commons-logging.jar" /> |
|
1348 | 1346 |
<include name="dnsjava-1.3.2.jar" /> |
1349 | 1347 |
<include name="mail.jar" /> |
1348 |
<include name="commons-logging-1.0.4.jar" /> |
|
1349 |
<!-- These jars may be needed but seem to not actually be, |
|
1350 |
so leaving them out for now |
|
1351 |
<include name="axis-ant.jar" /> |
|
1350 | 1352 |
--> |
1351 | 1353 |
<!--<include name="GenCastor.class" />--> |
1352 | 1354 |
</patternset> |
... | ... | |
1418 | 1420 |
<fileset dir="${services.dir}" /> |
1419 | 1421 |
<filterset refid="configFilters" /> |
1420 | 1422 |
</copy> |
1423 |
<!-- Copy axis files into the build --> |
|
1424 |
<mkdir dir="${lsid.build.dir}" /> |
|
1425 |
<copy todir="${lsid.build.dir}"> |
|
1426 |
<fileset dir="${conf.dir}/axis" |
|
1427 |
excludes="*.properties"/> |
|
1428 |
</copy> |
|
1429 |
<mkdir dir="${lsid.build.dir}/WEB-INF/classes" /> |
|
1430 |
<copy todir="${lsid.build.dir}/WEB-INF/classes"> |
|
1431 |
<fileset dir="${conf.dir}/axis" |
|
1432 |
includes="*.properties"/> |
|
1433 |
</copy> |
|
1421 | 1434 |
</target> |
1422 | 1435 |
|
1423 | 1436 |
<target name="compile-lsid" |
Also available in: Unified diff
Fixes to enable SOAP support for the LSID resolver. Axis now is
installed as a component of the authority context and the services list
is properly displayed. Added the happyaxis.jsp test page to verify that
the axis install is functioning properly.