Originally posted by Padmanabh Sahasrabudhe:
I had a web service deployed in my local environment. I made a checkin in CVS repository.
I had deleted the local files for jars conflict resolution and made a fresh update from CVS. The jar conflict resolved but I have a new problem. When I go to the service url I get following exception on the browser. any pointers?
org.apache.axis.InternalException: org.apache.axis.ConfigurationException: org.xml.sax.SAXException: Fatal Error: URI=null Line=1: Document root element is missing.
org.xml.sax.SAXException: Fatal Error: URI=null Line=1: Document root element is missing.
at org.apache.axis.utils.XMLUtils$ParserErrorHandler.fatalError(XMLUtils.java:723)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3379)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3364)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:668)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
at [...]
I had the same error on a different kind of XML document and I discovered the cause.
Some application prepend 0xFF 0xFF 0x3C to the XML declaration, to let the parser understand that the document is serialized in Unicode.
Crimson does not like it very much.
Either you change parser or strip this Unicode declaration form you file/stream.