File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes org.apache.jasper.JasperException: Unable to compile class for JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "org.apache.jasper.JasperException: Unable to compile class for JSP" Watch "org.apache.jasper.JasperException: Unable to compile class for JSP" New topic
Author

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

Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
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

Joined: Jun 09, 2008
Posts: 74
Hi,

Can you give us the JSP code so that we can check for the error.?
Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
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

Joined: Jun 09, 2008
Posts: 74
I have tested these 2 jsp's on tomcat and they are working with out any error.

Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
Wow! That's wierd!!! Could it it be because of the servlet code?
chandra kambham
Ranch Hand

Joined: Jun 09, 2008
Posts: 74
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

Joined: Mar 04, 2009
Posts: 477
Could you please tell me how to do that?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10288
    
168

See this http://www.coderanch.com/t/458427/JBoss/JSP-Exception-only-JBoss-not


[My Blog] [JavaRanch Journal]
shivdhwaj pandey
Ranch Hand

Joined: Nov 12, 2011
Posts: 67

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


with regards,
Shivdhway Pandey
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.apache.jasper.JasperException: Unable to compile class for JSP