PQ79076: XMLConfig import does not remove <environment> fileld tag. | |||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||
APAR status Closed as program error. Error description Problem: XMLConfig import script is not removing the environment config from repository. Here is my test analysis. Step tooks for recreating the problem: 1. Open admin console 2. Go to Default Server - General tab and add entry for Environment field, Name: test Value: c:\temp\text.txt Click ok Click apply for chanage. 3. Did fullexport and I see that environment field was added in repository? <node action="update" name="ibm-was"> <application-server action="update" name="Default Server"> <executable>java</executable> <command-line-arguments/> <environment> <entry>test=c:\temp\test.txt</entry> </environment> 4. Then run the import script to remove the environment filed configuration. Example: Import script <?xml version="1.0"?> <!DOCTYPE websphere-sa-config SYSTEM "file:///$XMLConfigDTDLocation$$dsep$xmlconfig.dtd"> <websphere-sa-config> <node action="locate" name="$node$"> <application-server action="update" name="$appserver$"> <environment> </environment> </application-server> </node> </websphere-sa-config> 5. Script run successfully C:\WebSphere4\AppServer\bin>XMLConfig -import serverimport2.xml -adminNodeName ibm-was -substitute " node=ibm-was;appserver=Default Server" 9/30/03 16:46:58:500 EDT 6527a46a NodeConfig A XMLC0053I: Importing Node : ibm-was 9/30/03 16:46:58:641 EDT 6527a46a ApplicationSe A XMLC0053I: Importing ApplicationServer : Default Server C:\WebSphere4\AppServer\bin> 6. I close the console and re-open the console environment filed did not deleted (remove from config). 7. I did another fullexport and looked the field and entry was still in config. - <node action="update" name="ibm-was"> - <application-server action="update" name="Default Server"> <executable>java</executable> <command-line-arguments /> - <environment> <entry>test=c:\temp\test.txt</entry> </environment>Local fix To resolve the problem, open admin console and delete the fieldProblem summary **************************************************************** * USERS AFFECTED: All XMLConfig users of WebSphere * * Application Server release 4.0 * **************************************************************** * PROBLEM DESCRIPTION: XMLConfig import does not remove * * <environment> field tag. * **************************************************************** * RECOMMENDATION: * **************************************************************** XMLConfig doesn't remove <environment> entries, as such there is no "remove" action associated with these elements.Problem conclusion Fixed code such that specifing empty tag like <environment/> will completely remove the entries and if this tag is not specified then its last updated values will be retained.Temporary fix PQ79076_eFix.jarComments
APAR is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: Modules/Macros
|
Document Information |
Product categories: Software > Application Servers >
Distributed Application & Web Servers > WebSphere Application
Server > General
Operating system(s):
Software version: 400
Software edition:
Reference #: PQ79076
IBM Group: Software Group
Modified date: Oct 21, 2003
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.