> From: Angelo Chen [mailto:[EMAIL PROTECTED]
> 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


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
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: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to