PQ86743: JSP COMMENT LINES THAT CONTAIN DASHES IMMEDIATELY FOLLOWING THE <%-- ARE CAUSING A "PARSEEXCEPTION: UNTERMINTAED <%-- TAG" | |||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||
![]() APAR status Closed as program error. Error description Customer has the following type of commenting in their existing JSPs: <%-------------------------------------- This is comment !!! ---------------------------------------%> When the customer attempts to run this code, they get the following error: Trace: 2004/03/17 11:53:43.028 01 t=8DCA18 c=22.1 key=P8 FunctionName: com.ibm.ws.webcontainer.srt.WebGroup SourceId: com.ibm.ws.webcontainer.srt.WebGroup Category: ERROR ExtendedMessage: Servlet Error - Unterminated <%-- tag : org.apache.jasper.compiler.ParseException: Unterminated <%-- tag at org.apache.jasper.compiler.Parser$Comment.accept(Parser. java:452) The JSP 2.0 Specification document states that "The body of the content is completely ignored." in it's Section 1.5.1 that discusses these comments. The customer would like their example to be allowed since the Specification document says anything can be included within the comment line (i.e., that a space is not required to follow the <%--). See also APAR Item PQ86731.Local fix Add a space immediately following the <%--.Problem summary **************************************************************** * USERS AFFECTED: All users of WebSphere Application Server * * V5.0 for z/OS * **************************************************************** * PROBLEM DESCRIPTION: Problem Description: * * --------------------------------------- * * Customer has the following type of * * commenting in their existing JSPs: * * <%------------------------------- * * This is comment !!! * * -------------------------------%> * * * * When the customer attempts to compile * * this JSP, they get the following error: * * * * Trace: 2004/03/17 11:53:43.028 01 * * t=8DCA18 c=22.1 key=P8 * * FunctionName: com.ibm.ws * * .webcontainer.srt.WebGroup * * SourceId: com.ibm.ws.webcontainer * * .srt.WebGroup * * Category: ERROR * * ExtendedMessage: Servlet Error - * * Unterminated <%-- tag : * * org.apache.jasper.compiler * * .ParseException: Unterminated * * <%-- tag at org.apache.jasper * * .compiler.Parser$Comment. * * accept(Parser.java:452) * **************************************************************** * RECOMMENDATION: * **************************************************************** WebSphere Application Server for z/OS and OS/390's JSP processor org.apache.jasper.compiler.Parser expects a comment of the form: <%-- This is a comment --%> instead of the form utilized by the customer: <%------------------------------- This is comment !!! -------------------------------%> (That is, without an intervening blank between the tag <%-- and the start of the comment.) This results in an org.apache.jasper.compiler.ParseException being thrown and may result in a status code 500 being received at the client (Error 500: Unterminated <%-- tag)Problem conclusion WebSphere Application Server for z/OS and OS/390's JSP processor org.apache.jasper.compiler.Parser is modified to process JSP comments of either the form: <%-- This is a comment --%> or the form: <%------------------------------- This is comment !!! -------------------------------%> APAR PQ86743 is associated with SERVICE LEVEL W502009 of WebSphere Application Server V5.0 for z/OS.Temporary fix Comments
APAR is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: Modules/Macros
Publications Referenced
|
Document Information |
Current web document: swg1PQ86743.html
Product categories: Software > Application Servers >
Distributed Application & Web Servers > WebSphere Application
Server for z/OS
Operating system(s):
Software version: 500
Software edition:
Reference #: PQ86743
IBM Group: Software Group
Modified date: Jun 3, 2004
(C) Copyright IBM Corporation 2000, 2009. All Rights Reserved.