PQ78710: ENTIES INCLUDES IN WEB.XML CAUSE EXCEPTION IN WSAS 4.06

APAR status
Closed as program error.

Error description
When the web.xml file on WSAS4.06 includes:
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.2//EN"
 "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"
[
    <!ENTITY servlet_mapping PUBLIC "servlet_mapping"
"file:./test.xml">  ]>
It causes the following error:
java.lang.NullPointerException

 at org.apache.xerces.framework.XMLParser.parse
           (XMLParser.java:1111)
 at java.lang.reflect.Method.invoke(Native Method)
 at com.ibm.etools.j2ee.xml.bridge.GeneralXmlDocumentReader.invo
           keMethod(GeneralXmlDocumentReader.java:228)
 at
com.ibm.etools.j2ee.xml.bridge.GeneralXmlDocumentReader.parse
           (GeneralXmlDocumentReader.java:240)
 at
com.ibm.etools.j2ee.xml.bridge.GeneralXmlDocumentReader.parse
           Document(GeneralXmlDocumentReader.java:250)
 at
com.ibm.etools.j2ee.xml.DeploymentDescriptorImportExport.prim
           ImportFrom(DeploymentDescriptorImportExport.java:238)
 at com.ibm.etools.j2ee.xml.DeploymentDescriptorImportExport.

primImportFrom(DeploymentDescriptorImportExport.java:227)
 at com.ibm.etools.j2ee.xml.WarDeploymentDescriptorImportExport.

importFrom(WarDeploymentDescriptorImportExport.java:47)
 at com.ibm.etools.webapplication.impl.WebAppResourceFactory.
           importXML(WebAppResourceFactory.java:26)
 at com.ibm.etools.j2ee.common.impl.XMLResourceFactory.load
           (XMLResourceFactory.java:62)
 at com.ibm.etools.j2ee.common.impl.XMLResourceFactory.load
           (XMLResourceFactory.java:80)

Which happens to be an issue with WSAS runtime code parsing
web.xml and needs to be fixed in the runtime xerces (in
<WSAS_ROOT>/lib folder.
Local fix Problem summary
****************************************************************
* USERS AFFECTED: WebSphere Application Server Users           *
*                 using version 4.0.6.                         *
****************************************************************
* PROBLEM DESCRIPTION: Entries included in WEB.XML cause       *
*                      exception in WebSphere Application      *
*                      Server 4.06                             *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
When the web.xml file on WebSphere Application Server 4.06
includes:
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"
[<!ENTITY servlet_mapping PUBLIC "servlet_mapping"
"file:./test.xml">  ]>
It causes the following error:
java.lang.NullPointerException
at org.apache.xerces.framework.XMLParser.parse
(XMLParser.java:1111)
Problem conclusion
This problem will be fixed in the next fixpack for 4.0(4.0.8)
Temporary fix Comments
APAR information
APAR number PQ78710
Reported component name WEBSPHERE AE NT
Reported component ID 5630A2201
Reported release 400
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Submitted date 2003-09-19
Closed date 2004-09-20
Last modified date 2004-09-20

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
PREREQ          

Fix information

Applicable component levels
R400 PSY    UP


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > General
Operating system(s):
Software version: 400
Software edition:
Reference #: PQ78710
IBM Group: Software Group
Modified date: Sep 20, 2004