I've just fixed this problem on my server. It's about the different context between tomcat 5.0.x and 5.5.x
<Host ...> in server.xml of tomcat 5.5.x, you should not input appBase="...", delete this attribute out. Then in /conf/Catalina/[Host]/ROOT.xml <Context ...>, put the docBase="..." here. Then everything should work fine. David Smith-2 wrote: > > Another on this list had the same problem. I'm starting to wonder if > Jasper has a problem loading non-traditional package names (ie those not > starting in java, javax, org, edu, com, etc., ...). > > --David > > Kathy Lo wrote: > >> Dear, >> >> I encounter a strange problem. >> >> I developed a web application using tomcat 5.5.17 and jdk-1.5.0_06 in >> Linux Fedora Core 4. >> >> I wrote some JSP files in the following directory structure >> >> /usr/apache-tomcat-5.5.17/webapps/test/index.jsp >> /usr/apache-tomcat-5.5.17/webapps/test/error/get_ref_fail.jsp >> /usr/apache-tomcat-5.5.17/webapps/test/ok/gen_file_ok.jsp >> >> In all of these JSP file, i imported "utils.*" package and use >> "UserSession" class inside this package. >> >> "utils" package is located in the following directory >> >> /usr/apache-tomcat-5.5.17/webapps/test/WEB-INF/classes/utils/UserSession.class >> >> >> >> And, i edit server.xml to set the URL of this web application as >> following >> >> <Context path="" docBase="/usr/apache-tomcat-5.5.17/webapps/test" >> workDir="/usr/apache-tomcat-5.5.17/webapps/test/work" reloadable=yes >> /> >> >> When I load the web application, index.jsp can be compiled and loaded >> correctly. When I load get_ref_fail.jsp using the following URL >> >> www.abc.org/error/get_ref_fail.jsp, or, www.abc.org/ok/gen_file_ok.jsp >> >> "Unable to compile JSP" error occurred and the server reported that it >> cannot resolve "UserSession" class. >> >> This problem is only occurred when I load JSP from /error or /ok >> subdirectory. When I load JSP from root directory (i.e. >> /usr/apache-tomcat-5.5.17/webapps/test), this problem disappear. >> >> How I can solve this problem? >> >> Please help me! >> > > > --------------------------------------------------------------------- > 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/Urgent%21-Compile-JSP-Problem-tf2103451.html#a5875585 Sent from the Tomcat - User forum 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]