tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philipp Zuderell <philipp.zuder...@tanner.de>
Subject problems getting jdom to work
Date Wed, 15 Nov 2000 11:19:09 GMT
Hi all,

I can't get jdom to work.

I'm using jdom beta5 and tomcat 3.1 embedded with
apache 1.3.14. The sample servlets work just fine, and
my own servlet works too, unless it comes to the XML
parsing part.
I have included jdom.jar in the jakarta-tomcat\lib\ directory
and modified the tomcat.bat file. My .class-files reside in the same
directory as the sample servlets  (
jakarta-tomcat\webapps\examples\Web-inf\classes\ ).
As a java-application, the program works perfectly, but as
a servlet, I get the following Error:500:

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,
Compiled Code)
        at java.lang.Thread.run(Unknown Source)

Thanks a lot for any help you can provide

Philipp



Mime
View raw message