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]