[jdom-interest] Exception when trying to parse in a servlet..
Abhishek Balaria
abhishek at qbizm.com
Tue Aug 15 08:39:39 PDT 2000
Hi,
I am trying to parse a document from within a servlet and getting the
following exception. I am using ApacheJServ/1.1.1 on linux. I have
jdom.jar, xerces.jar and xml.jar in my classpath.. It works fine when i
do it with a normal desktop application but doesn't work from a servlet.
My code is:
Document doc = builder.build(new URL(xmlDoc));
I checked the sources and the line that might cause it is...in
DOMBuilder.java
String publicID = domDocType.getPublicId();
Following is the trace
----------------------
[15/08/2000 17:23:40:375 GMT+02:00] java.lang.NoSuchMethodError
at org.jdom.input.DOMBuilder.buildTree(DOMBuilder.java:386)
at org.jdom.input.DOMBuilder.buildTree(DOMBuilder.java:264)
at org.jdom.input.DOMBuilder.build(DOMBuilder.java:174)
at org.jdom.input.DOMBuilder.build(DOMBuilder.java:220)
at
com.hqbs.hook.hqVisualResult.parseConfig(hqVisualResult.java:53)
at
com.hqbs.hook.hqVisualResult.writeToFile(hqVisualResult.java:120)
at com.hqbs.hook.hqVisualResult.genData(hqVisualResult.java:159)
at com.qbizm.hqbs.qb.hqQb.genData(hqQb.java:51)
at
com.qbizm.hqbs.runtime.hqQbProcessor.genData(hqQbProcessor.java:205)
at
com.qbizm.hqbs.runtime.hqQbProcessor.process(hqQbProcessor.java:171)
at
com.qbizm.hqbs.runtime.hqProcessDispatcher.process(hqProcessDispatcher.java:76)
at
com.qbizm.hqbs.runtime.hqEventDispatcher.process(hqEventDispatcher.java:482)
at
com.qbizm.hqbs.ioprocessing.hqIOProcessor.process(hqIOProcessor.java:160)
at
com.qbizm.hqbs.ioprocessing.hqListener.process(hqListener.java:64)
at
com.qbizm.hqbs.ioprocessing.connector.hqHttpConnector.process(hqHttpConnector.java:156)
at
com.qbizm.hqbs.ioprocessing.connector.hqHttpServlet.process(hqHttpServlet.java:208)
at
com.qbizm.hqbs.ioprocessing.connector.hqHttpServlet.doPost(hqHttpServlet.java:197)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:278)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:311)
at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:317)
at
org.apache.jserv.JServConnection.run(JServConnection.java:188)
at java.lang.Thread.run(Thread.java:484)
Thanks..
Abhishek
More information about the jdom-interest
mailing list