[jdom-interest] java.lang.NoSuchMethodError when using tomcat
Philipp Zuderell
philipp.zuderell at tanner.de
Wed Nov 15 05:35:47 PST 2000
Hi all,
I have written an application that parses an XML-file using jdom and
DOMBuilder.
When I changed the application into a Servlet, I get the following error
Message when I try to build the document from the XML-file:
Error: 500
Location: /examples/servlet/ResponseCreator
Internal Servlet Error:
java.lang.NoSuchMethodError: org.w3c.dom.DocumentType: method
getPublicId()Ljava/lang/String; not found
at org.jdom.input.DOMBuilder.buildTree(DOMBuilder.java, Compiled Code)
at org.jdom.input.DOMBuilder.buildTree(DOMBuilder.java, Compiled Code)
at org.jdom.input.DOMBuilder.build(DOMBuilder.java:191)
at org.jdom.input.DOMBuilder.build(DOMBuilder.java:216)
at HandleXML.XMLCreator(HandleXML.java:52)
at ResponseCreator.doPost(ResponseCreator.java:43)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
at
org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Unknown Source)
I have no clue what the error might be as the same code works fine when
run as an application.
I use jdom beta4 (tried beta5, too) and tomcat 3.1 embedded with apache
1.3.14.
Thanks for reading this, any help is appreciated.
Philipp
More information about the jdom-interest
mailing list