tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Self <js...@nngov.com>
Subject A Classpath problem
Date Wed, 06 Feb 2002 20:27:28 GMT
I'm trying to run a jsp which requires a class called UserData. I put
the UserData.class file in $CATALINA_HOME/webapps/ROOT/WEB-INF/classes
and restarted Tomcat. But I get an error that tells me it doesn't know
what UserData is.

I notice that when I start up Tomcat it says "Using CLASSPATH:   
/usr/local/share/jakarta-tomcat-4.0.1/bin/bootstrap.jar:/usr/lib/j2sdk1.3/lib/tools.jar.

I have the following in my /etc/profile:

JAVA_PATH="/usr/lib/j2sdk1.3/jre/bin"
JAVA_HOME="/usr/lib/j2sdk1.3"
CATALINA_HOME="/usr/local/share/jakarta-tomcat-4.0.1"
CLASSPATH="/usr/local/share/jakarta-tomcat-4.0.1/webapps/ROOT/WEB-INF/classes"

The jsp that is looking for the class is this:
<jsp:useBean id="user" class="UserData" scope="session"/>
<jsp:setProperty name="user" property="*"/>
<html>
<body>
<a href="NextPage.jsp">Continue</a>
</body>
</html>

This is an exercise in a JSP tutorial I'm practicing on.
-- 
Jeff Self
Information Technology Analyst
Department of Personnel
City of Newport News
2400 Washington Ave.
Newport News, VA 23607
757-926-6930


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message