tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Singleton <>
Subject (mis)interpretation of /webapps2/ in Context.docBase
Date Tue, 13 Feb 2007 16:26:26 GMT
In Tomcat 5.5.9 (JDK 1.6.0, WinXP) I have a 'webapps2'
folder alongside the default 'webapps', and server.xml

   <Host name="localhost" appBase="webapps" ...>
     <Context path="/myapp" docBase="../webapps2/myapp" ... />

which works as intended, but originally I used an absolute
path e.g.

   <Host name="localhost" appBase="webapps" ...>
     <Context path="/myapp" 
docBase="C:/shared/apps/jakarta-tomcat-5.5.9/webapps2/myapp" ... />

and got this at Tomcat startup:

  SEVERE: Error starting static Resources
  java.lang.IllegalArgumentException: Document base
  does not exist or is not a readable directory

where /webapps2/ was being interpreted as /webapps/2/ ?!?!

Paul Singleton

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message