WebSphere Application Server - Xerces didn't find my extended xml inside a Jar

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > November 2005 > Xerces didn't find my extended xml inside a Jar





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Xerces didn't find my extended xml inside a Jar

2005-11-30, 5:56 pm

Hello,

I am having a problem with Xerces finding for a extended xml (with ENTITY foo SYSTEM "file.xml"), where file.xml is inside a resources.jar , inside an EAR.
Everything is running in WAS6.0.

The XML looks this way:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE menu [
<!ENTITY menuitem SYSTEM "user-menu1.xml">
]>
<menu>
&menuitem;
</menu

---
And user-menu1.xml this way:

<menuitem>
<nameproperty>menu.selfcare.security.profile</nameproperty>
<url>/cbill/user/protected/util/user/prepareProfile.do?method=execute</url>
<position>content</position>
<roles>
<role>sistema</role>
</roles>
</menuitem>


The xerces claims the xml is not valid.

Any help will be much appreciated.

Thanks
Breno Leitão
CPqD IT & Telecom

2005-11-30, 5:56 pm

I think the user-menu1.xml was not in the same classloader as xerces. But I don't know how to prove it.
Paul Ilechko

2005-11-30, 5:56 pm

bhleitao@cpqd.com.br wrote:
> I think the user-menu1.xml was not in the same classloader as xerces. But I don't know how to prove it.


Use the classloader viewer in the admin console

http://publib.boulder.ibm.com/infoc...oad_viewer.html
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com