(Fatal Error) Start of root element expected.
843834Oct 27 2005 — edited Nov 8 2005I am trying to parse a XML file for a particular schema. When I run it from the command prompt it works fine and creates the required Java Objects using JAXB but when i try to deploy the application in OC4J 10.1.2 container it gives me an error :- javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: <Line 1, Column 1>: XML-20108: (Fatal Error) Start of root element expected.]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:306)
at com.sun.xml.bind.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:134)
I also prin out the xml file to make sure atleast its getting it and it does pick up the correct file while runnin from the container.
Can anybody suggest why its working outside the container and within.