tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Clovis <ms.clo...@verizon.net>
Subject appbase and docbase
Date Wed, 23 Jul 2008 17:30:42 GMT
This is hopefully a simple question that will be easy to clear up. Here 
is the example:
In server.xml the appbase="webapps" and unpackWARs="false" and 
autoDeploy="true"

For an application let's call it foo and it is in a war and meant to be 
"executed" as such.. so foo.war is placed within the webapps directory.
Within the META-INF directory of the foo war is a context.xml that 
states the path="/foo" and the docBase="roller.war".

When tomcat is started.. the following error occurs:
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /foo does not exist or 
is not a readable directory
        at 
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:141)
        at 
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3957)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4126)
        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:525)
        at 
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
        at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
        at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
        at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
        at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        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:516)

The war file HAS been given read, write and execute perms and the 
webapps (just to make sure) have been recursively given the same 
permissions.

Thanks in advance for any insight into what I am sure is a silly error.





---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message