Hello Tomcat Users,

I still cannot get Tomcat 4.1.8 to find my class files. I've trimmed the thread and am posting again in the hope that someone will see my error. I have reverted back to using jakarta-tomcat-4.0.3 And there I have only been able to access class files from jakarta-tomcat-4.0.3/classes and not from WEB-INF/classes.

Here is the version of my java 1.4.1 DP10.

java -version java version "1.4.1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-24) Java HotSpot(TM) Client VM (build 1.4.1_01-12, mixed mode)

Since Tony states that he is using 1.4.1 and 4.1.18, I installed 4.1.18. Running Tomcat standalone on 10.2.3 I have the same situation as before. My class files are not being found. I've put them everywhere I could think to test.

/usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/529_jsp_021103/WEB- INF/classes
/usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/WEB-INF/classes
/usr/local/jakarta-tomcat-4.1.18/common/classes
/usr/local/jakarta-tomcat-4.1.18/shared/classes
/usr/local/jakarta-tomcat-4.1.18/classes


Any additional suggestions for testing would be greatly appreciated.

Here is what I see when I start Tomcat.


Using CATALINA_BASE:   /usr/local/jakarta-tomcat-4.1.18
Using CATALINA_HOME:   /usr/local/jakarta-tomcat-4.1.18
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.18/temp
Using JAVA_HOME:       /usr

I am under the impression that Tomcat follows a specific hierarchy when searching for class files and consequently it is not necessary to set the CLASSPATH. However I set it as follows to see if it would help Tomcat find my classes. No.

CLASSPATH=/usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/ 529_jsp_021103/WEB-INF/classes:/usr/local/jakarta-tomcat-4.1.18/ webapps/ROOT/WEB-INF/classes:.

Tomcat does find the java. classes. The following is in my jsp file:

<%@ page import="Plans021103"%>
<%@ page import="SidebarTr"%>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.io.*" %>
<%@ page import="java.util.regex.*" %>

Only Plans021103 and SidebarTr are not found. Here is the beginning of the specific errors I see.

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 12 in the jsp file: /529_jsp_021103/529Wrapper.jsp

Generated servlet error:
    [javac] Compiling 1 source file

/usr/local/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/ 529_jsp_021103/_529Wrapper_jsp.java:7: '.' expected
import Plans021103; (the caret is under the semi-colon)
^
/usr/local/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/ 529_jsp_021103/_529Wrapper_jsp.java:8: '.' expected
import SidebarTr; (the caret is under the semi-colon)
^
/usr/local/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/ 529_jsp_021103/_529Wrapper_jsp.java:60: cannot resolve symbol
symbol : class Plans021103
location: class org.apache.jsp._529Wrapper_jsp
Plans021103 plans = new Plans021103(); (the caret is under the first uppercase P)


I trust that there will be something in the above that jumps out at you.

Warren


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to