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. They 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 <%--).
Local fix
Add a space immediately prior to the --%>.
Problem summary
****************************************************************
* USERS AFFECTED: JSP writers who use more than two dashes to *
* start or end comment tags. *
****************************************************************
* PROBLEM DESCRIPTION: When JSPs contain intended comment *
* tags using more than two consecutive *
* dashes as part of comment delimiters, *
* the JSP compiler generates exceptions. *
****************************************************************
* RECOMMENDATION: *
****************************************************************
JSP comment tags with more than two consecutive dashes result
in exceptions.
Problem conclusion
The parse was not restoring the marker when a dash following
two dashes was encountered.
Temporary fix
This is a zOS internal DE-APAR. zOS will pick up the
code changes and then build their fix, and then
give feedback.
Comments
Code changes have been checked into CMVC. zOS will pick
up the changes.
APAR information |
APAR number |
PQ86731 |
Reported component name |
WAS BASE 5.0 |
Reported component ID |
5630A3600 |
Reported release |
00W |
Status |
CLOSED PER |
PE |
NoPE |
HIPER |
NoHIPER |
Special Attention |
NoSpecatt |
Submitted date |
2004-03-26 |
Closed date |
2004-06-15 |
Last modified date |
2004-11-05 |
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
Publications Referenced
Applicable component levels |
R00A PSY |
UP |
R00H PSY |
UP |
R00I PSY |
UP |
R00P PSY |
UP |
R00S PSY |
UP |
R00W PSY |
UP |
R10A PSY |
UP |
R10H PSY |
UP |
R10I PSY |
UP |
R10P PSY |
UP |
R10S PSY |
UP |
R10W PSY |
UP |
|