tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angelo Chen <>
Subject RE: tomcat 6 and docBase problem
Date Tue, 08 Jul 2008 01:22:51 GMT


I updated context.xml in the webapp and also the ROOT.xml in the
conf/Catalina/, all has this:

<?xml version="1.0" encoding="UTF-8"?>
<Context allowLinking="true">

and still getting this error:

SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base
/usr/local/apache-tomcat-6.0.16/webapp/abc does not exist or is not a
readable directory

looks like not the allowLinking problem as program runs despite that error,
any idea? Thanks

Caldarale, Charles R wrote:
>> From: Angelo Chen []
>> Subject: RE: tomcat 6 and docBase problem
>> I updated context.xml to be like this :
>> <?xml version="1.0" encoding="UTF-8"?>
>> <Context path="/"  allowLinking="true">
>> </Context>
> The above is flawed, regardless of which context.xml you're referring to. 
> In the first place, a path attribute of "/" is never correct; in the
> second, a path attribute is not allowed unless the <Context> element is in
> server.xml, where it never should be.
> So what context.xml file did you update?  If it's the one in Tomcat's conf
> directory, you can leave the allowLinking in there and it will apply to
> all webapps, but the path attribute must be removed.  If you want
> allowLinking only for a specific webapp, place the <Context> element in
> META-INF/context.xml inside the webapp, but again remove the path
> attribute.
>> what's the use of Document base really?
> It tells Tomcat where the application is deployed.  In modern versions of
> Tomcat, it should only be used when the <Context> element is in
> conf/Catalina/[host]/[appName].xml and the directory or war file for the
> webapp is stored outside of the [host] appBase directory.
>  - Chuck
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> ---------------------------------------------------------------------
> To start a new topic, e-mail:
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View this message in context:
Sent from the Tomcat - User mailing list archive at

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

View raw message