• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

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

 
Ranch Hand
Posts: 483
  • 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.

 
Ranch Hand
Posts: 74
  • 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: 483
  • 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
  • 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: 483
  • 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
  • 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: 483
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you please tell me how to do that?
 
Ranch Hand
Posts: 67
PHP Java Ubuntu
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!