This mysterious behavior is an undocumented "feature" in Tomcat 3.3. In the recently announced Tomcat 3.3.1 Release Candidate 1, it has be come a documented feature. See the hostChar, hostDotChar, and pathSlashChar attributes of the AutoWebApp module:
<http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html#AutoWebApp> In your case, '/' is being subsituted for the '_' in the war name when deriving the path for the context. Thus, http://localhost/Servlet/JDBC/Validate/ should work. In Tomcat 3.3(a), the only way around this is to expand your war into an directory outside of webapps and manually specify the context using <Context path="/Servlet_JDBC_Validate" docBase="..." .../>. If you can upgrade to Tomcat 3.3.1-rc1, you can disable this "feature". The <AutoWebApp ...> entry in server.xml already includes a "host" attribute which overrides the effect of the hostChar and hostDotChar attributes. Simply add pathSlashChar="" to the entry and the special handling for the '_' character will be disabled. Cheers, Larry > -----Original Message----- > From: Jeff Self [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 04, 2002 4:37 PM > To: [EMAIL PROTECTED] > Subject: Problem with mod_jk.conf file > > > I tried installing a package called Servlet_JDBC_Validate.war into my > $TOMCAT_HOME/webapps directory. I restarted Tomcat and Apache > as well as > run tomcat.sh start -jkconf (I'm running Tomcat with Apache). When I > tried to bring up http://localhost/Servlet_JDBC_Validate/ but I got a > file not found error message. I looked at the mod_jk.conf file and > noticed that it had JkMount /Servlet/JDBC/Validate ajp13 and > /Servlet/JDBC/Validate/* ajp13 even though the directory under > $TOMCAT_HOME/webapps/ is Servlet_JDBC_Validate. So my app > only comes up > when I type the URL as http://localhost/Servlet/JDBC/Validate. Anybody > know whats wrong? Is there a setting I need to change. I'm running > Tomcat 3.3a by the way. > > -- > Jeff Self > Information Technology Analyst > Department of Personnel > City of Newport News > 2400 Washington Ave. > Newport News, VA 23607 > 757-926-6930 > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
