[jdom-interest] java.lang.NoSuchMethodError when using tomcat
Mark_Brown at aoncons.com
Mark_Brown at aoncons.com
Wed Nov 15 07:33:09 PST 2000
I know this one. I just had the same problem when trying to build jdom. Jason
pointed out to me that a different version of DOM was being used (ie. DOM 1).
Check the path for your servlet engine. It must be picking up a jar file from
jaxp or xml.jar or something other than the Xerces 1.2 jar file.
Mark Brown
Philipp Zuderell <philipp.zuderell at tanner.de> on 11/15/2000 08:35:47 AM
To: jdom-interest at jdom.org
cc: (bcc: Mark Brown/IT/Aon Consulting)
Subject: [jdom-interest] java.lang.NoSuchMethodError when using tomcat
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
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
More information about the jdom-interest
mailing list