I also tried renaming /usr/tomcat/conf/Catalina/localhost/t.xml to /usr/tomcat/conf/Catalina/localhost/a.xml and now no exception is thrown, and I see via tomcat manager that context /a is created, but whenever I try to access any pages under /t I get error 404.
--- On Wed, 8/19/09, Roger Powers <prog...@yahoo.com> wrote: > From: Roger Powers <prog...@yahoo.com> > Subject: Problem with respecting docBase in context file in TC 6.0.20? > To: users@tomcat.apache.org > Date: Wednesday, August 19, 2009, 3:19 PM > Problem: > > 1) /usr/tomcat/conf/Catalina/localhost/t.xml has: > <Context path="/t" docBase="webapps/a" /> > > 2) /usr/tomcat/webapps/a exists. > > 3) /usr/tomcat/webapps/t does not exist. > > 4) When tomcat starts, > org.apache.catalina.core.StandardContext:resourcesStart() > throws > java.lang.IllegalArgumentException: Document base > /usr/tomcat/webapps/t does not exist or is not a readable > directory > > Since I never gave it a docBase of /usr/tomcat/webapps/t, I > presume > the problem is that it expects one due to the presense of > /usr/tomcat/conf/catalina/localhost/t.xml ? > > How can I get it to not make such a presumption, and look > at the docBase > in the t.xml file? > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org