wood burning stoves*
The moose likes Tomcat and the fly likes why cann't find the class????? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "why cann Watch "why cann New topic
Author

why cann't find the class?????

leo tien
Greenhorn

Joined: Nov 04, 2002
Posts: 11
I use Tomcat 4.0.6,,
i put my Test.java to ROOT/mysite/WEB-INF/classes
but when i run the test.jsp....the screen display as below:
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.

An error occurred at line: 1 in the jsp file: /mysites/test2.jsp
Generated servlet error:
C:\Program Files\Apache Tomcat 4.0\work\Standalone\localhost\_\mysites\test2$jsp.java:56: Class org.apache.jsp.testcounter not found.
testcounter counter = null;
..................
..............
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

I use Tomcat 4.0.6,,
i put my Test.java to ROOT/mysite/WEB-INF/classes
but when i run the test.jsp....the screen display as below:
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.

That's because you are using JDK1.4. Apparently the warning is harmless and doesn't make a difference to the outcome.

An error occurred at line: 1 in the jsp file: /mysites/test2.jsp
Generated servlet error:
C:\Program Files\Apache Tomcat 4.0\work\Standalone\localhost\_\mysites\test2$jsp.java:56: Class org.apache.jsp.testcounter not found.

This error would be because you need to provide a CLASSPATH to the directory that holds org\apache\jsp\testcounter
It looks like you made your own testcounter and tried adding it to apache's jsp package - I'd recommend creating your own packages.
Good luck!
[ March 09, 2003: Message edited by: Marc Peabody ]

A good workman is known by his tools.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why cann't find the class?????