[jdom-interest] Problem with org.jdom.input.DOMBuilder in beta5

Robert Lynch rmlynch at best.com
Wed Jan 3 18:00:29 PST 2001


Hiya-

I am working through "Java and XML" and just tried the "XML-RPC
Configuration servlet" example, starts around p.351 of the book. 
Running the servlet reveals a problem with input.DOMBuilder, I
think. Tomcat 3.2 output:
======
Error: 500

Location: /servlet/XmlRpcConfigurationServlet

Internal Servlet Error:

java.lang.NoSuchMethodError
        at org.jdom.input.DOMBuilder.buildTree(DOMBuilder.java)
        at org.jdom.input.DOMBuilder.buildTree(DOMBuilder.java)
        at org.jdom.input.DOMBuilder.build(DOMBuilder.java)
        at
com.oreilly.xml.XmlRpcConfiguration.parseConfiguration(XmlRpcConfiguration.java:224)
        at
com.oreilly.xml.XmlRpcConfiguration.(XmlRpcConfiguration.java:117)
        at
com.oreilly.xml.XmlRpcConfiguration.(XmlRpcConfiguration.java:96)
        at
XmlRpcConfigurationServlet.doGet(XmlRpcConfigurationServlet.java:91)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java)
        at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java)
        at org.apache.tomcat.core.Handler.service(Handler.java)
        at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java)
        at java.lang.Thread.run(Thread.java:484)
===
I looked at the latest revision (1.19) of input.DOMBuilder the
CVS, and it seems to have the same buildTree problem, i.e.:
====
    public Document build(InputStream in) throws JDOMException {
        Document doc = new Document(null);
        try {
            DOMAdapter adapter =
               
(DOMAdapter)Class.forName(adapterClass).newInstance();

            org.w3c.dom.Document domDoc = adapter.getDocument(in,
validate);

            // Start out at root level
            buildTree(domDoc, doc, null, true); <-- method
doesn't exist
...
====

FWIW. Bob L.
-- 
Robert Lynch-Berkeley CA USA-rmlynch at best.com



More information about the jdom-interest mailing list