[jdom-interest] Parsing error
Corcos Igal
CorcosI at BanqueLaurentienne.ca
Tue Mar 20 13:57:24 PST 2001
Can anyone help me out with the following:
I have a servlet which parses an XML file using SAXBuilder and simply
outputs it's contents.
When I run the servlet locally using JBuilder 4 and Tomcat everything is ok.
However, when I try to run it on a Weblogic server, I get the following
error:
Tue Mar 20 16:58:42 GMT-05:00 2001:<E> <T3Services> org.jdom.JDOMException:
Error on line 2 of document
file:///disk2/weblogic/dev8//dist/com/blc/MainServlet: The markup in the
document following the root element must be well-formed.
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at org.jdom.JDOMException.<init>(JDOMException.java:114)
at org.jdom.input.SAXBuilder.build(Compiled Code)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:533)
at
com.blc.Application.Aggregation.Xml.XMLTranslator.parseXMLRequest(Compiled
Code)
at
com.blc.Application.Aggregation.MainServlet.MainServlet.service(MainServlet.
java:71)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:86)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:296)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:245)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:501)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:260)
at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
Root cause: The markup in the document following the root element must be
well-formed.
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at org.xml.sax.SAXException.<init>(SAXException.java:38)
at org.xml.sax.SAXParseException.<init>(SAXParseException.java:46)
at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1060)
at
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocume
ntScanner.java:626)
at
org.apache.xerces.framework.XMLDocumentScanner.abortMarkup(Compiled Code)
at
org.apache.xerces.framework.XMLDocumentScanner$TrailingMiscDispatcher.dispat
ch(Compiled Code)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(Compiled
Code)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:952)
at org.jdom.input.SAXBuilder.build(Compiled Code)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:533)
at
com.blc.Application.Aggregation.Xml.XMLTranslator.parseXMLRequest(Compiled
Code)
at
com.blc.Application.Aggregation.MainServlet.MainServlet.service(MainServlet.
java:71)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:86)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:296)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:245)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:501)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:260)
at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
The only difference I can see between the two environments is that the
server has jdk1.2.1 while JBuilder 4 uses jdk1.3. Both environments have
jdom-b6 and xerces v1.3.
Has anyone experienced similar issues?
I would really appreciate any help.
Thanks.
-Igal
More information about the jdom-interest
mailing list