• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JasperException: Unable to compile class for JSPC

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am getting the following exception while running a web application on Tomcat 3.2.1.

org.apache.jasper.JasperException: Unable to compile class for JSPC:\jakarta\tomcat\jakarta-tomcat-3.2.1\work\localhost_8080%2FMessageWeb\_0002ftest_0002fjsp_0002fError_0002ejspError_jsp_0.java:15: Class test.msg.exceptions.MsgException not found in import.
import test.msg.exceptions.MsgException;

.
.
.
Earlier this application was working fine, but when I removed the old test server and created a new one, I am getting this exception.


Please help.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The class you're trying to import doesn't exist on the classpath.

Also, please see the JavaRanch naming policy and change your display name to conform with this policy. Thanks!
 
Manish Jaswal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The class that i am using is in classes folder of WEB-INF. I am using this class in JSP. But I am not able to use any of the classes that I have created in javasource folder.
 
Ranch Hand
Posts: 317
Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As the class is part of a package so it should be in proper folder structure means yours class should be under:
classes\test\msg\exceptions folder under WEB-INF.
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Make sure when you deploy it the Java classes have been compiled and are properly deployed (under /WEB-INF/classes, in package hierarchy, as mentioned).
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic