Hi,
I'm using castor to load XML-based configuration files into a WebSphere 6 custom service and a stand-alone Java app.
Under RAD / WAS 6.0.0, all works fine but when running under RAD 6.0.1 and WAS 6.0.2.9, I get the following error:
Parsing Error : Content is not allowed in prolog.
Line : 1
Column : 1
{file: [not available]; line: 1; column: 1}
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:707)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:563)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:784)
at com.ubs.ims.appserver.imp.ImpServer.loadConfig(ImpServer.java:115)
at com.ubs.ims.appserver.imp.ImpServer.run(ImpServer.java:57)
at com.ubs.ims.appserver.imp.ImpServer.main(ImpServer.java:50)
The XML is very simple, and I've validated it using various XML editors:
<?xml version="1.0"?>
<impconfig>
<discoveryFile>c:/temp/discovery.xml</discoveryFile>
<pollPeriod>5</pollPeriod>
<discoveryPeriod>5</discoveryPeriod>
<jmxNamespace>IMP</jmxNamespace>
<httpPort>33000</httpPort>
<soapPort>33001</soapPort>
<soapContextRoot>IMP</soapContextRoot>
</impconfig>
I assume that this is because IBM have included a newer release of xerces in the JRE included in the later releases of RAD / WAS.
If I include the xerces supplied with castor, it doesn't get used because the JRE version is included in the boot classpath.
Now, I don't want to risk causing something else to break in WAS by overriding the version of xerces that WAS uses, and (because I'm not running as a web app) I don't have access to the WAS facilities for defining additional class loaders.
Does anyone have any suggestions on how I might get this working?
Gary Bennett | UBS | IMS Development & Consulting
1 Golden Lane, London EC1Y 0RR, UK
Visit our website at http://www.ubs.com
This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments.
------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] -------------------------------------------------

