Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

(Fatal Error) Start of root element expected.

843834Oct 27 2005 — edited Nov 8 2005
I 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 6 2005
Added on Oct 27 2005
1 comment
1,391 views