Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problems with JSP and Tag Libraries in JBoss using Tomcat 5.5.9

843838Mar 2 2006
Hi,

I am experiencing a really weird situation here. When running a deployed EJB3 ear application in a JBoss 4.0.3sp1 application using Tomcat service 5.5.9, Jasper is unable to compile any JSP file using Tag Libraries. To be more precise, when generating the Java source file (looking in the 'work' directory) everything in the file after the first occurance of a Tag Library usage is commented out (with "//"), causing the Java source to be invalid and outputs an error when accessing the page via a browser saying:

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

Generated servlet error:
Syntax error, insert "}" to complete ClassBody

Generated servlet error:
Syntax error, insert "}" to complete Block

Generated servlet error:
Syntax error, insert "finally" to complete TryStatement

Generated servlet error:
Syntax error, insert "}" to complete MethodBody"

etc... where every error row is a suggestion of steps to take to make the source file valid. (of course).

The Tag Library jar files are located in the web application WEB-INF/lib folder as they should be. The descriptive Tag Library Definition files (tld:s) are located in the WEB-INF folder and every JSP file references these tld files directly via this path (WEB-INF/).

Any hints are most appreciated!!

Cheers!
/Henrik
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 30 2006
Added on Mar 2 2006
0 comments
157 views