File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

org.apache.jasper.JasperException: Unable to compile class for JSP

 
Somnath Mallick
Ranch Hand
Posts: 482
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,

I have written a JSP/Servlet code in Eclipse and using JBoss to run it. But when i run the project on the server i get the following error. I have done some Google but haven't found anything of use:



Could you please tell me what could be wrong. I have learnt that there must be something wrong with my JSP files. But I couldn't find out what's wrong! Please help.

 
chandra kambham
Ranch Hand
Posts: 74
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can you give us the JSP code so that we can check for the error.?
 
Somnath Mallick
Ranch Hand
Posts: 482
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two jsp's in the the project

Login.jsp



HomePage.jsp


Its just a rough draft. But the thing is the Servlet-JSP code isn't working.

 
chandra kambham
Ranch Hand
Posts: 74
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have tested these 2 jsp's on tomcat and they are working with out any error.

 
Somnath Mallick
Ranch Hand
Posts: 482
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow! That's wierd!!! Could it it be because of the servlet code?
 
chandra kambham
Ranch Hand
Posts: 74
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can also verify the generated .java files for this JSP so that you can find what;s the line that is causing this error.
 
Somnath Mallick
Ranch Hand
Posts: 482
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you please tell me how to do that?
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
 
shivdhwaj pandey
Ranch Hand
Posts: 67
Java PHP Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am also facing same problem
when I run my project simple add subtract things are working in JSP
but when I created a package and then tried to create a object of the class which is in package
under java resources in eclipse doesnt compile

Comes. I am using tomcat under eclipse juno on ubuntu 12.04 lts
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic