DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26010>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26010 <context> path in server.xml doesn't like "_" (underscore) character. Summary: <context> path in server.xml doesn't like "_" (underscore) character. Product: Tomcat 5 Version: Nightly Build Platform: PC OS/Version: Linux Status: NEW Severity: Minor Priority: Other Component: Catalina AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] stdout and logs/localhost_log.[date].txt complain when a <context> path attribute contains a "_" (underscore) character. The webapp still deploys fine. The error messages are annoying, that's all! :-) This generates error messages (in server.xml): <Context path="/test_" debug="0" docBase="/stuff/empty"/> This doesn't: <Context path="/test" debug="0" docBase="/stuff/empty"/> stdout: ============================== INFO: Processing Context configuration file URL file:/home/juliusdavies/jakarta-tomcat-5/conf/Catalina/localhost/test_.xml 8-Jan-2004 7:06:23 PM org.apache.commons.digester.Digester endElement SEVERE: End event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [...] Caused by: java.lang.IllegalStateException: Context path /test_ is already in use at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:833) ... 38 more logs/localhost_log.[date].txt: ============================== 2004-01-08 19:06:23 StandardHost[localhost]: Error deploying application at context path null java.lang.IllegalStateException: Context path /test_ is already in use at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) * Version jakarta-tomcat-5-bin-20040107 * Tomcat component org.apache.catalina.core.StandardHostDeployer.addChild * Platform PC (Intel Pentium III) * OS Linux 2.4.18 (Debian) * JVM Java HotSpot(TM) Server VM (build 1.4.2-b28, mixed mode) * Web Server Tomcat 5.0 listening on port 8080 * Configuration No change to default except single line: <Context path="/test_" debug="0" docBase="/stuff/empty"/> ps. Am I seeing things? I noticed that deleting a <Context> from "server.xml" doesn't actually remove the webapp from service! The webapp will still deploy on Tomcat's next run. Tomcat seems to use the conf/Catalina/**/*.xml files it creates to accomplish this. I get a feeling that <context> inside "server.xml" is sort of deprecated, and that I should just create individual "context" xml files inside conf/Catalina/ instead. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]