Hi, I updated context.xml in the webapp and also the ROOT.xml in the conf/Catalina/abc.com/ROOT.xml, all has this:
<?xml version="1.0" encoding="UTF-8"?> <Context allowLinking="true"> </Context> 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 [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] > > > -- View this message in context: http://www.nabble.com/tomcat-6-and-docBase-problem-tp18309063p18330135.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]