This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
leo tien
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4727
Mac Ruby VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic