PQ52742: AFTER 3.5.4/PQ42532, USING XMLCONFIG TO IMPORT A WEBAPP FAILS W/CLASSPATH IS DEFINED.


APAR

APAR status
Closed as program error.

Error description
Using XMLConfig to import a Web Application fails when no
classpath is defined.
.
1) Create A Web Application without a classpath.
2) Run an XML Export.
3) Via the WebSphere Gui delete the Web Application that was
   just created.
4) Run an XML Import, syntax for command is:
   XMLConfig -adminNodeName nodename - import exportfilename.xml
.
The following errors will be generated:4) Run an XML Import, syntax for command is:XMLConfig -adminNodeName nodename - import exportfilename.xml.
[01.09.20 22:58:43:470 GMT-06:00] 1ad9030 WebApplicatio X Failed to create WebApplication : TestWebAppXMLC0041E: Repository Exception com.ibm.ejs.sm.exception.RequiredAttributeMissingException:The following errors will be generated:[01.09.20 22:58:43:470 GMT-06:00], 1ad9030 WebApplicatio X Failedtocreate WebApplication : TestWebAppXMLC0041E: RepositoryException
Required ServletGroup name attribute was not specified. [01.09.20 22:58:43:550 GMT-06:00] 1ad9030 WebApplicatio X XMLC0036E:com.ibm.ejs.sm.exception.RequiredAttributeMissingException:RequiredServletGroup name attribute was not specified.[01.09.20 22:58:43:550 GMT-06:00], 1ad9030 WebApplicatio X
Unable to get Web Application Attributes in order to calculate root URI. Root URI will be set to nullXMLC0046E: Exception java.lang.NullPointerException [01.09.20 22:58:43:552 GMT-06:00] 1ad9030 ServletConfig A XMLC0053I:XMLC0036E:Unable to get Web Application Attributes in order to calculateroot URI.Root URI will be set to nullXMLC0046E: Exceptionjava.lang.NullPointerException[01.09.20 22:58:43:552 GMT-06:00], 1ad9030 ServletConfig A
Importing Servlet : Error Reporting Facility [01.09.20 22:58:43:554 GMT-06:00] 1ad9030 WebApplicatio X Failed to create WebApplication : TestWebAppXMLC0074I: Ending Child Processing. Exception : java.lang.NullPointerException
XMLC0053I:Importing Servlet : Error Reporting Facility[01.09.20 22:58:43:554 GMT-06:00], 1ad9030 WebApplicatio X Failedtocreate WebApplication : TestWebAppXMLC0074I: Ending ChildProcessing.Exception : java.lang.NullPointerException
Local fix
After generating an XML Export of the Web Application you want
to import, edit the XML Export file.
Search on the Web Application name.
.
Change the following classpath tag from:<classpath/>
.
TO:Change the following classpath tag from:.
<classpath></classpath>
TO:
Problem summary
****************************************************************
* USERS AFFECTED: All WebSphere Application Server 3.5         *
*                 XMLConfig users.                             *
****************************************************************
* PROBLEM DESCRIPTION: Using XMLConfig to import a Web Appl    *
*                      fails when no classpath is defined.     *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
Since "classpath" attribute is a REQUIRED attribute for
ServletGroupAttributes, it needs to be initialized properly
in the client code.
Problem conclusion
Fixed code in WebApplicationConfig.java file.
Temporary fix
 pq52742.jar
Comments
efix files are located in \\wasdoc0\apars\pq52742, please follow
the instructions as per readme.txt file.
APAR information
APAR numberPQ52742
Reported component nameWAS ADVANCED SU
Reported component ID5648C8402
Reported release350
StatusCLOSED PER
PENoPE
HIPERNoHIPER
Submitted date2001-09-25
Closed date2001-10-11
Last modified date2001-10-11

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:APAR is sysrouted FROM one or more of the following:


Modules/Macros
XMLCONF
APAR is sysrouted TO one or more of the following:Modules/Macros

Fix information
Fixed component nameWAS ADVANCED SU
Fixed component ID5648C8402

Applicable component levels
R350 PSYUP











Document Information

Product categories: Software, Application Servers, Distributed Application & Web Servers, WebSphere Application Server, General
Software version: 350
Reference #: PQ52742
IBM Group: Software Group
Modified date: 2001-10-11