Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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;
..................
..............
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic