I'm migrating web applications from Tomcat v.4 to v.5.5 and having some trouble adapting my old virtual hosts setup with the 5.5 recommended methods.
According to http://tomcat.apache.org/tomcat-5.5-doc/config/context.html "In addition to nesting Context elements inside a Host element, you can also store them: in individual files (with a ".xml" extension) in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory" So to make sure I know what I'm doing, I used a server.xml with this: <Engine name="Catalina" defaultHost="localhost"> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> </Host> </Engine> And then created a file $CATALINA_HOME/conf/Catalina/localhost/sean.xml with my Context element, which reads, <Context path="" docBase="ROOT"></Context> But when I start Tomcat, I get surprising errors. First... Apr 3, 2006 3:05:13 PM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase /var/tomcat5/webapps/ROOT inside the host appBase has been specified, and will be ignored Although Tomcat seems to be trying to read my docBase param, something is not right. It thinks "appBase" is a host.[?] Then I get... Apr 3, 2006 3:05:13 PM org.apache.catalina.core.StandardContext resourcesStart SEVERE: Error starting static Resources java.lang.IllegalArgumentException: Document base /var/tomcat5/webapps/sean does not exist or is not a readable directory Tomcat seems to be looking for a web app by the name of "sean" from the filename "sean.xml." But according to http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html "If a Context Descriptor is... ...manually created, the filename need not match the web application name as Tomcat is concerned only with the Context configuration contained within the Context Descriptor file(s)." With Tomcat 4 I had my Context Descriptors outside of server.xml and separated by virtual hosts in individual files very similar to v5.5's $CATALINA_HOME/conf/[enginename]/[hostname]/ approach, but now I can't seem to get grasp how exactly v.5.5. wants it done. What am I missing? Thanks in advance, S e a n H a r r i s o n - - - Internet Services Administrator Lincoln, Nebraska --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]