Thanks Peng,
I have been doing exactly that and more, and that is the problem, it
should work, but doesn't. If you get a chance, please read through the
entire thread to see if you can find anything that I might be doing
wrong.
Warren
On Monday, February 24, 2003, at 03:07 AM, Peng Tuck Kwok wrote:
Hi Warren, classes can go into two places in a webapp, let's say I have
a myapp as an example
myapp
|WEB-INF
|-classes
|-lib
You can put all your classes (if they are not in jar in classes, follow
whatever package structure you need) in the classes directory.
also :
you can put all your classes in the lib directory if they are in a jar
file. Tomcat should be able to find your classes now.
Warrren Burholt wrote:
Hello Tony,
Thank you for your interest in my problem.
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
Hi Warren,
What are values for JAVA_HOME, CATALINA_HOME, CATALINA_BASE, and
your CLASSPATH?
Regards,
Tony
On Saturday, Feb 22, 2003, at 17:40 Europe/Berlin, Warrren Burholt
wrote:
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.
Warren
From: Anthony Marlowe <[EMAIL PROTECTED]>
Date: Sat Feb 22, 2003 6:39:20 AM America/Montreal
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Subject: Re: Mac os x and class files
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
Hi,
I would like to know your Mac OS X configuration. I have Tomcat
4.1.18 running standalone and in conjunction with JBoss 3.0.6 with
Apples 1.4.n DP10 and OS X 10.2.4. With no problem what so ever.
This all works with 1.3.1 also with no problem. In addition I have
mod_jk2 installed and running Apache 2.0.44 with no problem.
By the way I do not use the light version, I have also replace the
LE version in JBoss to the full version. For your infor JBoss
with Jetty works correctly.
Regards,
Tony
On Saturday, Feb 22, 2003, at 04:44 Europe/Berlin, Warrren Burholt
wrote:
I'm using JDK 1.4. I'll go back to 1.3 although my 4.0.3 has the
exact same problem with finding classes whether I'm using 1.3 or
1.4After I have 1.3 running, if the problem persists in
4.1.18 (and not the 1.4 version!), at least I will know that the
preview version is not the cause. And I did mean 4.1.18,
although I see I have it name