This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat throwing jsp error where other application servers do not Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat throwing jsp error where other application servers do not" Watch "Tomcat throwing jsp error where other application servers do not" New topic
Author

Tomcat throwing jsp error where other application servers do not

jason adam
Chicken Farmer ()
Ranch Hand

Joined: May 08, 2001
Posts: 1932
I have a vendor's webapp I am trying to run through Tomcat. However, when certain pages are accessed, the following error appears:
org.apache.jasper.compiler.CompileException: /jsp/case/caseinjdata.jsp(12,0) Unterminated <%-- tag at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:784) at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:121) at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:243) at org.apache.jasper.compiler.Parser.parse(Parser.java:1133) at org.apache.jasper.compiler.Parser.parse(Parser.java:1091) at org.apache.jasper.compiler.Parser.parse(Parser.java:1087) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:213) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546) at ...
(number lines change for the first line depending on the page)
According to the vendor, they have not had this problem with WebLogic, WebSphere, JRun, etc. but they have not tested the product on Tomcat. A sample offending page is as follows:

(onLoade misspelled to keep the board from detecting it)
If something runs on the app servers, shouldn't it run on Tomcat, being the reference implementation for the jsp/servlet specifications?
Has anyone had a problem like this, or have any ideas on where the problem is occurring? Nothing appears wrong with their jsp code.
Thanks
jason adam
Chicken Farmer ()
Ranch Hand

Joined: May 08, 2001
Posts: 1932
Vendor responded saying their version of Tomcat (3.3.1) doesn't throw this error. Obviously something with 4.0.1. Odd.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Tomcat throwing jsp error where other application servers do not
 
Similar Threads
A Struts Internationalization Example Problem
org.apache.jasper.JasperException: File "/tags/struts-html" not found
Unable to Resolve JSTL taglib Declaration
problem in relative path in jsp page
Apache Tomcat Errors???