Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Websphere 4 XMLConfig import problems

Status
Not open for further replies.

UnixBreeze

Technical User
Oct 15, 2002
3
US
Hi,
I am in the beginning stages of writing some scripts to update Application server properties in WebSphere. I have a lot of JVM arguments to add and as new ones come down the pipe I plan on the following.

1) Do a partial export of the application server(s) with XMLConfig.

2) Manually edit the exported xml with the new properties added.

3) Use XMLConfig - import to re-import the app server config with the new (additional) properties.

I haven't gotten past my first test run. I can do an partial export of one particular app server, but when I take the xml file that the export creates and try to re-import it (without any mods at all) XMLConfig throws the following fit:

FatalError: On line 1, Column: 6,037
Message: Character reference "" is an invalid XML character.
XMLC0139W: You may be using an incompatible XML config file.

Since this is an xml file XMLConfig generated, I would think it would be a compatabile file to import as well.

Bottom line question is: How do I get around this problem to re-import partially exported xml?

Also, here's what the first two lines of the partially exported xml looks like.

<?xml version=&quot;1.0&quot;?>
<!DOCTYPE websphere-sa-config SYSTEM &quot;file:///$XMLConfigDTDLocation$$dsep$xmlconfig.dtd&quot; >

Thanks in advance.
 
What version of WAS are you running?

I had this problem when I did the export from the XMLConfig to do the importing - if you go in the AdminConsole GUI you may have better luck.

It is because the DTD is not being referenced correctly. I know that if you change the DTD reference line to the actually location of your DTD then it works. I can't remember exactly the syntax. Try an export from the AdminConsole GUI and see what the DTD is from that.

Hope this helps,

Einstein47
(&quot;There are no atheists when restoring from backup.&quot;)
 
Thanks for the idea Eintstein. I forgot to try the export with the admin console. After a little more trouble-shooting I found that I could both export and import other app servers on the same node just fine. Turns out the one I was having problems with had some weird combination of characters in one of the JVM arguments and they were acting as a control character. Luckily, I didn't need that property anyway. Once I removed it everything worked fine.
 
Hi FatalError: On line 1, Column: 6,037
Message: Character reference &quot;&quot; is an invalid XML character.
XMLC0139W: You may be using an incompatible XML config file.

The &quot;&quot; is a blank space remove it and it work

By Micky
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top