tomcat 'document base does not exist' error (but it does)
Posted
by SpliFF
on Server Fault
See other posts from Server Fault
or by SpliFF
Published on 2009-09-08T01:04:28Z
Indexed on
2010/05/27
7:03 UTC
Read the original article
Hit count: 287
tomcat
Gentoo / Tomcat 6
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Sep 8, 2009 10:34:51 AM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /www/rivervalley/site does
not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(Unknown Source)
at org.apache.catalina.core.StandardContext.resourcesStart(Unknown Source)
at org.apache.catalina.core.StandardContext.start(Unknown Source)
at org.apache.catalina.core.ContainerBase.start(Unknown Source)
at org.apache.catalina.core.StandardHost.start(Unknown Source)
at org.apache.catalina.core.ContainerBase.start(Unknown Source)
oh really? then how come:
ls -la /www/rivervalley/site/
drwxr-xr-x 12 tomcat tomcat 4096 Sep 8 09:56 .
drwxr-xr-x 16 tomcat tomcat 4096 Jun 29 16:22 ..
-rwxr--r-- 1 tomcat tomcat 520 Jul 3 02:15 Application.cfm
drwxr-xr-x 2 tomcat tomcat 4096 Sep 8 09:56 WEB-INF
and ...
tomcat 18916 1.0 5.5 1159188 167892 ? Ssl 10:37 0:11 /opt/sun-jdk-1.5.0.18/bin/java -Djava.util.loggin
Hell, ANY account can read that directory so the claim is utter nonsense. What else can cause this?
Here's my relevant server.xml section:
<Host name="rivervalley" appBase="webapps" unpackWARs="false" autoDeploy="false" xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="/www/rivervalley/site" />
</Host>
© Server Fault or respective owner