Hi Mark, Thank you and I will try disabling both the autoDeploy and deployOnStartup.
I actually created sg#server#test.xml under Catalina/localhost/ and points docBase="/usr/local/apache-tomcat/sg#server#test.war". After I started up Tomcat, it deployed the war file and created sg#server#test folder under webapps/. However, the context path sg#server#test.xml failed to startup, with the following errors under catalina.out Aug 19, 2009 12:35:45 AM org.apache.catalina.core.StandardContext start SEVERE: Error filterStart Aug 19, 2009 12:35:45 AM org.apache.catalina.core.StandardContext start SEVERE: Context [/sg/server/test] startup failed due to previous errors I checked localhost log and saw, Caused by: com.opensymphony.module.sitemesh.factory.FactoryException: Could not read config file : /WEB-INF/sitemesh.xml: java.io.FileNotFoundException: /usr/local/apache-tomcat/webapps/sg (No such file or directory) Assuming # symbol not recognized by Java utilities or sitemesh under Solaris 10. I will check more about sitemesh... Best Regards, Andy Ee -----Original Message----- From: Mark Thomas [mailto:ma...@apache.org] Sent: Wednesday, August 19, 2009 12:23 AM To: Tomcat Users List Subject: Re: Multi-Level Context Paths Andy Ee wrote: > I would appreciate if anybody can tell if he/she has successfully deployed > with multi-level context path. Yep. Works like a charm in 6.0.18 and 6.0.20. > I tried having the context element (given below) inside server.xml and the > multi-level context path works! > > <Context path="/sg/server/test" docBase="test" reloadable="true" > crossContext="false" allowLinking="true" /> > > However, Tomcat 6 deploys the war file twice every time it starts up. It > could be due to context element being defined under server.xml and > Catalina/localhost/xxx.xml. So this method needs tweaking afterall. Nope. It is because you have autoDeploy and deployOnStartup enabled for the host. You could: - disable those - move the WAR file outside of the host's appBase - just rename the WAR file Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org