Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JasperException: Unable to compile class for JSPC

 
Manish Jaswal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Harpreet Singh janda
Ranch Hand
Posts: 317
Eclipse IDE
  • Mark post as helpful
  • send pies
  • 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
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • 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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic