tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Souther <bsout...@fwdco.com>
Subject Re: reloading, 5.0, context.xml
Date Fri, 03 Dec 2004 16:34:29 GMT
docBase="/servlets"

You're telling Tomcat to look in the root directory of your file system
for the "servlets" directory.

try:
docBase="servlets"






On Fri, 2004-12-03 at 11:29, Christoph P. Kukulies wrote:
> On Fri, Dec 03, 2004 at 11:29:00AM -0000, Allistair Crossley wrote:
> > You should do this ...
> > 
> > Create a file called mywebapp.xml (matching your webapp's name of course) and whack
it in
> > 
> > tomcat/conf/Catalina/localhost
> > 
> > In that file
> > 
> > <Context path="" docBase="/mywebapp" reloadable="true" />
> > 
> > Note this is for 5.0.x NOT 5.5.x which removes the path attribute.
> > 
> > Restart.
> > 
> 
> I tried that. stdout.log:
> 
> Dec 3, 2004 5:13:14 PM org.apache.catalina.core.StandardContext resourcesStart
> SEVERE: Cannot find message associated with key standardContext.resourcesStart      

> java.lang.IllegalArgumentException: Document base /servlets does not exist or is not
a read
> able directory
> at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:185)
> at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3756)
> ...
> 
> /usr/local/jakarta-tomcat5.0/conf/Catalina/localhost/servlets.xml:
> <Context path="" docBase="/servlets" reloadable="true" />
> 
> I guess that all classes in the classes directory of that 
> webapps, which is in:
> 
> /usr/local/jakarta-tomcat5.0/webapps/servlets/WEB-INF/classes
> 
> 
> I don't know whether servlets mapping plays a role here. 
> --
> Chris Christoph P. U. Kukulies kuku_at_kukulies.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message