PQ86743: JSP COMMENT LINES THAT CONTAIN DASHES IMMEDIATELY FOLLOWING THE <%-- ARE CAUSING A "PARSEEXCEPTION: UNTERMINTAED <%-- TAG"

 A fix is available

Obtain the fix for this APAR



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 <&#37;--
  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 <&#37;-- 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 information
APAR number PQ86743
Reported component name WEBSPHERE FOR Z
Reported component ID 5655I3500
Reported release 500
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Special Attention NoSpecatt
Submitted date 2004-03-26
Closed date 2004-05-21
Last modified date 2004-06-03

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
BBOUBINF          

Publications Referenced

Fix information
Fixed component name WEBSPHERE FOR Z
Fixed component ID 5655I3500

Applicable component levels
R500 PSY UQ88747    UP04/05/27 P F405

  Fix is available
Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.


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