• 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 load JSP

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

First, a quick word about my environment. I've got Liferay6 running on Tomcat6. I've installed them from the Liferay+Tomcat bundle from Liferay's website. All of this is running on Ubuntu 10.10.

I am trying to develop a sample portlet for Liferay. I'm new to jsp, Liferay, and web programming altogether, so really all I am trying to accomplish is to get thing to compute 2+3 and print 5.

I have created a portlet (I run Liferay's create.sh which creates a directory structure with all the files necessary), and that portlet works. I can navigate to the browser and see it work. Here is the working view.jsp file:



After verifying that this loads in the browser, I simply added one line to the end of the file:


This causes a very big error. After some investigation, I found that including any jsp at all on the page caused this error. In fact, including empty <% %> tags on the page produces same error, even if there is no java code in them. When I remove the empty tags, the portlet works again.

Here is what the tomcat/logs/catalina.out looks like. First, I deploy the portlet, and everything appears hunky dory:



No fun at all.

Some internet searching tells me that the JasperException: Unable to load class for JSP is caused by syntax errors in the jsp file but, as I mentioned before, even one pair of empty jsp tags causes this error. The file at /java/liferay/tomcat-6.0.26/work/Catalina/localhost/iCOE-test-v2-portlet/org/apache/jsp/view_jsp.java appears in all respects to be syntactically correct.

I am really at a loss here, and any help with this is appreciated. As I said, while I am a decent java programmer, my experience with programming for the web is practically zero, so it is very possible that I have forgotten a small detail.

Thanks in advance,
Griff
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
when you try to type <%= 2+3 %> at the end of the jsp will cause error, can you do these experiment ?

1. type some comments in line 13 after details and see if there's error
2. type <%="Testing" %> in line 20 and see if there's error

Eric
 
First, you drop a couch from the plane, THEN you surf it. Here, take this tiny ad with you:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic