Thank you for the suggestion. I added this to my classpath, but still no love. Here is my path and classpath: C:\OpenSource\jakarta-tomcat-3.2.1\bin>path PATH=c:\java\jdk1.3\bin C:\OpenSource\jakarta-tomcat-3.2.1\bin>echo %classpath% ;C:\IBMCON~1\CICS\Classes\CTGCLI~1.JAR;C:\IBM Connectors\classes;C:\Testing\infobus;C:\Jav a\jdk1.3\jre\lib\rt.jar;;.;c:\java\jdk1.3\lib\tools.jar;c:\opensource\jakarta-tomcat-3.2.1 \webapps\examples\jsp\test I tried compiling the generated servlet code on my own, but I still get these same errors. I think my configuration is OK, maybe it's something wrong with the syntax in the JSP page? Any other suggestions?? ------Original Message------ From: "Wayne E. Porter" <[EMAIL PROTECTED]> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> Sent: February 22, 2001 9:51:11 PM GMT Subject: RE: Newbiee - JSP Example ? I solved a similar problem by adding JAVA_HOME/lib/tools.jar (where for me JAVA_HOME = d:/jdk1.3) to the classpath in the system's environment variables. -----Original Message----- From: tomcat user [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 22, 2001 2:36 PM To: [EMAIL PROTECTED] Subject: Newbiee - JSP Example ? I'm using the following: Tomcat 3.2.1 w/out Apache JDK1.3 WinNT4.0 I'm a new user of Tomcat and I would like a little help in getting my simple example working. Here is my problem. I have a simple .jsp that is trying to get a value from a getter of a java bean. I have all this code in the examples.war under TOMCAT_HOME\webapps. I have my test.jsp located under TOMCAT_HOME\webapps\examples\jsp\test. My Test.java/class is located under TOMCAT_HOME\webapps\examples\WEB-INF\classes. NOTE: right now, I'm just trying to get my bean class loaded, before I attempt my getter. Here is my url: http://localhost:8080/examples/jsp/test/test.jsp after running this, I get this output: org.apache.jasper.JasperException: Unable to compile class for JSPC:\OpenSource\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fj sp_0002ftest_0002ftest_0002ejsptest_jsp_0.java:63: Class jsp.test.Test not found. Test happy = null; ^ C:\OpenSource\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fjsp_ 0002ftest_0002ftest_0002ejsptest_jsp_0.java:66: Class jsp.test.Test not found. happy= (Test) ^ C:\OpenSource\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fjsp_ 0002ftest_0002ftest_0002ejsptest_jsp_0.java:71: Class jsp.test.Test not found. happy = (Test) Beans.instantiate(this.getClass().getClassLoader(), "Test"); ***************************** Test.jsp: <!-- A JSP to test --> <jsp:useBean id="happy" scope="page" class="Test" /> <html> <head> <title>Test Bean</title> </head> <B>The result is: </B> </html> Test.java public class Test { private final String happy = "happy"; public String getHappy() { return this.happy; } } ______________________________________________ FREE Personalized Email at Mail.com Sign up at http://www.mail.com/?sr=signup --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ______________________________________________ FREE Personalized Email at Mail.com Sign up at http://www.mail.com/?sr=signupTitle: RE: Newbiee - JSP Example ?
I solved a similar problem by adding JAVA_HOME/lib/tools.jar (where for me JAVA_HOME = d:/jdk1.3) to the classpath in the system's environment variables.
-----Original Message-----
From: tomcat user [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 2:36 PM
To: [EMAIL PROTECTED]
Subject: Newbiee - JSP Example ?
I'm using the following:
Tomcat 3.2.1 w/out Apache
JDK1.3
WinNT4.0
I'm a new user of Tomcat and I would like a little help in getting my simple
example working.
Here is my problem. I have a simple .jsp that is trying to get a value from
a getter of a java bean. I have all this code in the examples.war under
TOMCAT_HOME\webapps. I have my test.jsp located under
TOMCAT_HOME\webapps\examples\jsp\test. My Test.java/class is located under
TOMCAT_HOME\webapps\examples\WEB-INF\classes. NOTE: right now, I'm just
trying to get my bean class loaded, before I attempt my getter.
Here is my url: http://localhost:8080/examples/jsp/test/test.jsp after
running this, I get this output:
org.apache.jasper.JasperException: Unable to compile class for
JSPC:\OpenSource\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fjsp_0002ftest_0002ftest_0002ejsptest_jsp_0.java:63:
Class jsp.test.Test not found.
Test happy = null;
^
C:\OpenSource\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fjsp_0002ftest_0002ftest_0002ejsptest_jsp_0.java:66:
Class jsp.test.Test not found.
happy= (Test)
^
C:\OpenSource\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fjsp_0002ftest_0002ftest_0002ejsptest_jsp_0.java:71:
Class jsp.test.Test not found.
happy = (Test) Beans.instantiate(this.getClass().getClassLoader(), "Test");
*****************************
Test.jsp:
<!-- A JSP to test -->
<jsp:useBean id="happy" scope="page" class="Test" />
<html>
<head>
<title>Test Bean</title>
</head>
<B>The result is: </B>
</html>
Test.java
public class Test {
private final String happy = "happy";
public String getHappy() {
return this.happy;
}
}
______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
