Tomcat 6.0.26 Java 1.6 OS: Mac OS X and Linux Goal:
I would like a webapp (onlinecourses.war) to be deployed with multiple contexts of: /onlinecourses/insight /onlinecourses/centering /onlinecourses/xxx etc. Right now I'm just trying to get 1 of these contexts working. I've read this page several times (http://tomcat.apache.org/tomcat-6.0-doc/config/context.html) and I cannot figure out what I have configured wrong. I plan to have each context defined in its own context xml file. I am trying to create multiple contexts which 'under the hood' point to the same web application. There is a path separator used for the context but each time I start Tomcat in hopes that everything will be deployed properly, I receive the following stacktrace. INFO: Deploying configuration descriptor onlinecourses#insight.xml Mar 22, 2011 11:28:45 AM org.apache.catalina.core.StandardContext resourcesStart SEVERE: Error starting static Resources java.lang.IllegalArgumentException: Document base /usr/local/tomcat8081/webapps/onlinecourses#insight does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4086) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4255) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Here's my relevant configurations: $CATALINA_HOME/conf/server.xml <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> $CATALINA_HOME/conf/Catalina/localhost/onlinecourses#insight.xml <Context> <Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false"> <Store className="org.apache.catalina.session.FileStore"/> </Manager> <Realm className="org.apache.catalina.realm.MemoryRealm" /> </Context> When Tomcat starts up, it explodes the $CATALINA_HOME/webapps/onlinecourses.war into $CATALINA_HOME/webapps/onlinecourses but it does NOT create the directory which is in the exception below with the # symbol. Note: I did have the docBase attribute in the Context element but Tomcat complains about that and tells me it's 'ignored' so I removed it. I get the same result with or without it. Does anyone know what I'm doing wrong? Thank you for any help. - Bacon - --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org