Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

(mis)interpretation of /webapps2/ in Context.docBase

Paul Singleton

2007-02-13


In Tomcat 5.5.9 (JDK 1.6.0, WinXP) I have a 'webapps2'
folder alongside the default 'webapps', and server.xml
has

 <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
C:\shared\apps\jakarta-tomcat-5.5.9\webapps\2\CardiffCarshareWelsh2c
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: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.