PQ47194: SERVLET URI VALUE LOST,IF PERFORMING IMPORTXML WITHOUT URI-PATH.


APAR

APAR status
Closed as program error.

Error description
The servlet URI value are lost , while performing import xml to
change servlet attribute without URI-Path tag.
.
.
ex.)
 1. get current parameter of destination servlet.
   # cd <WASROOT>/bin
   # ./XMLConfig.sh -export servlet_pre.xml -partial
     servlet_export.xml -adminNodeName was01
.
 2. XML import for parameter change
   # ./XMLConfig.sh -import loadstartup.xml -adminNodeName was01
.
 3. get current parameter of destinagion servlet.
   # ./XMLConfig.sh -export servlet_post.xml -partial
      servlet_export.xml   -adminNodeName was01
.
 <sample of inport xml>
 --<Import XML nemed loadstartup.xml in upper sequence>---------<?xml version="1.0"?><!DOCTYPE websphere-sa-config SYSTEM "$XMLConfigDTDLocation$$dse
p$xmlconfig.dtd" ><websphere-sa-config>
 <node name="was01" action="locate">
  <application-server name="Default Server" action="locate">
  <servlet-engine name="Default Servlet Engine" action="locate">
    <web-application name="default_app" action="locate">
     <servlet name="snoop" action="update">
      <load-at-startup>false</load-at-startup>
     </servlet>
    </web-application>
   </servlet-engine>
  </application-server>

---------------------------------------------------------------
the servlet of snoop lost following tags.
 <uri-paths>
       <uri value="/servlet/snoop"/>
       <uri value="/servlet/snoop2"/>
 </uri-paths>
.
Local fix
The Immediate work around would be do not exclude URI-Path tags
while importing xml for changing servlet attribute.
 (there is no problem on no-fixpak and fixpak1)
Problem summary
The servlet URI value are lost , while performing import xml to
change servlet attribute without URI-Path tag.
 1. get current parameter of destination servlet.
    # cd <WASROOT>/bin
    # ./XMLConfig.sh -export servlet_pre.xml -partial
      servlet_export.xml -adminNodeName was01



 2. XML import for parameter change
   # ./XMLConfig.sh -import loadstartup.xml -adminNodeName was01
.
 3. get current parameter of destinagion servlet.
   # ./XMLConfig.sh -export servlet_post.xml -partial
      servlet_export.xml   -adminNodeName was01
 <sample of inport xml>
 --<Import XML nemed loadstartup.xml in upper sequence>---------<?xml version="1.0"?><!DOCTYPE websphere-sa-config SYSTEM "$XMLConfigDTDLocation$$dse
p$xmlconfig.dtd" ><websphere-sa-config>
 <node name="was01" action="locate">
  <application-server name="Default Server" action="locate">
  <servlet-engine name="Default Servlet Engine" action="locate">
     <web-application name="default_app" action="locate">
      <servlet name="snoop" action="update">
       <load-at-startup>false</load-at-startup>
      </servlet>
     </web-application>
    </servlet-engine>
   </application-server>

 ---------------------------------------------------------------
 the servlet of snoop lost following tags.
 <uri-paths>
       <uri value="/servlet/snoop"/>
       <uri value="/servlet/snoop2"/>
 </uri-paths>
Problem conclusion
The work around would be do not exclude URI-Path tags
while importing xml for changing servlet attribute.
(there is no problem on no-fixpak and fixpak1 for 3.5)
Cause: If <uri-paths> tags are not specified (since it is
optional), instead of retaining old values, it is making
the value null.
  Fix: Fixed the code in ServletConfig.java file.
Temporary fix
Comments
APAR information
APAR numberPQ47194
Reported component nameWAS ADVANCED AI
Reported component ID5648C8400
Reported release350
StatusCLOSED PER
PENoPE
HIPERNoHIPER
Submitted date2001-03-24
Closed date2001-04-11
Last modified date2001-04-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 AI
Fixed component ID5648C8400

Applicable component levels
R350 PSYUP











Document Information

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