This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Tomcat and the fly likes why cann't find the class????? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply 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: 4725

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?????
 
Similar Threads
Doubt on some rules from stydy guide
classpath question
The value for the useBean class attribute Bean.Airf.AirfData is invalid
Construtor Doubt
method invocation