DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5166>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5166 CATALINA_BASE config issues for RUNNING.txt Summary: CATALINA_BASE config issues for RUNNING.txt Product: Tomcat 4 Version: Nightly Build Platform: All OS/Version: All Status: NEW Severity: Minor Priority: Other Component: Catalina AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Short version: RUNNING.txt says you can use CATALINA_BASE and CATALINA_HOME, but this doesn't work with the distribution config: - The webapps/admin.xml and webapps/manager.xml docBase has ../server relative to $CATALINA_BASE, causing those two webapps to fail. - The shared directory is not found, causing the JspServlet to not be found Long version: In RUNNING.txt, step (4) explains how to use CATALINA_BASE and CATALINA_HOME. Alas this doesn't work: # build Tomcat, no problem setenv MYSRC /home/mak/jakarta/jakarta-tomcat-4.0 (cd $MYSRC; cvs update -d; ant clean; ant dist) # copy dist and run, no problem setenv MYBASE /home/mak/tomcat-instance1 rm -fr $MYBASE cp -r $MYSRC/dist $MYBASE setenv CATALINA_HOME $MYBASE $CATALINA_HOME/bin/startup.sh # try $CATALINA_BASE, runs but produces errors in the log setenv MYBASE /home/mak/tomcat-instance2 rm -fr $MYBASE mkdir $MYBASE cp -r $MYSRC/dist/{conf,webapps} $MYBASE mkdir $MYBASE/{logs,work} setenv CATALINA_HOME $MYSRC/dist setenv CATALINA_BASE $MYBASE $CATALINA_HOME/bin/startup.sh This produces: Using CLASSPATH: /home/mak/jakarta/jakarta-tomcat-4.0/dist/bin/bootstrap.jar:/usr/j2se/lib/tools.jar:/usr/local/java/jsse1.0.2/lib/jcert.jar:/usr/local/java/jsse1.0.2/lib/jnet.jar:/usr/local/java/jsse1.0.2/lib/jsse.jar Using CATALINA_BASE: /home/mak/tomcat-instance2 Using CATALINA_HOME: /home/mak/jakarta/jakarta-tomcat-4.0/dist Using JAVA_HOME: /usr/j2se then logs: StandardWrapper[/examples:jsp]: Marking servlet jsp as unavailable StandardContext[/examples]: Servlet /examples threw load() exception javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.jasper.servlet.JspServlet or a class it depends on and later: StandardContext[/manager]: Error initializing resources: Document base /home/mak/tomcat-instance2/webapps/../server/webapps/manager does not exist or is not a readable directory Analysis: The error from /manager (and a similar one from /admin) are due to webapps/admin.xml and webapps/manager.xml having a docBase starting with "../server/", which is used relative to $CATALINA_BASE instead of $CATALINA_HOME. You can address this by making them absolute paths based on $CATALINA_HOME, or to copy/symlink the server/ directory into $CATALINA_BASE. The RUNNING.txt should mention this. The error about JspServlet is due to the shared/ directory. A workaround is to copy/symlink the $CATALINA_HOME/shared directory into $CATALINA_BASE. Assuming that $CATALINA_BASE is in fact the sensible place (I'd say so), RUNNING.txt should mention this. Incidentally, I noticed in a `grep '"shared"' catalina/src/share/org/apache/catalina/startup/*.java` that sometimes it is looked up relative to getCatalinaHome, sometimes relative to getCatalinaBase. Is this correct? -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>