You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Ankur Kapadia <an...@hotmail.com> on 2001/02/03 00:32:05 UTC
need help on the addressbook example
hello everyone,
im pretty new to soap
and when i try to run the apache addressbook example
i have the following soap exception
please advice me on how can i solve this problem
java.lang.NoSuchMethodError at
org.apache.soap.util.xml.QName.(QName.java:80) at
org.apache.soap.util.xml.QName.matches(QName.java:146) at
org.apache.soap.Envelope.unmarshall(Envelope.java:210) at
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:18
2) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at
org.apache.tomcat.core.Handler.service(Handler.java:286) at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210) at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
thanks for your help
Ankur K Kapadia.
Re: need help on the addressbook example
Posted by William Brogden <wb...@bga.com>.
Well, since I just went through exactly the same thing.....
Whats happening is that the servlet engine is finding another
XML parser library before it finds the Xerces.jar library.
QName.matches is calling a method that requires the Xerces
library.
Not only must you ensure that Xerces.jar is at the start of
the CLASSPATH, but you must also be sure there is not another
XML parser in the locations that Java looks at before CLASSPATH.
In my case this was JDK\jre\lib\ext and the offending library
was jaxp.jar and parser.jar
> Ankur Kapadia wrote:
>
> hello everyone,
> im pretty new to soap
> and when i try to run the apache addressbook example
> i have the following soap exception
> please advice me on how can i solve this problem
>
> java.lang.NoSuchMethodError at
> org.apache.soap.util.xml.QName.(QName.java:80) at
> org.apache.soap.util.xml.QName.matches(QName.java:146) at
> org.apache.soap.Envelope.unmarshall(Envelope.java:210) at
> org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:18
> 2) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> at
> org.apache.tomcat.core.Handler.service(Handler.java:286) at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
> 7) at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:210) at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> at java.lang.Thread.run(Thread.java:484)
>
> thanks for your help
> Ankur K Kapadia.
--
WBB - wbrogden@lanw.com
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP
ISBN 0-7821-2809-2
Re: need help on the addressbook example
Posted by William Brogden <wb...@bga.com>.
Well, since I just went through exactly the same thing.....
Whats happening is that the servlet engine is finding another
XML parser library before it finds the Xerces.jar library.
QName.matches is calling a method that requires the Xerces
library.
Not only must you ensure that Xerces.jar is at the start of
the CLASSPATH, but you must also be sure there is not another
XML parser in the locations that Java looks at before CLASSPATH.
In my case this was JDK\jre\lib\ext and the offending library
was jaxp.jar and parser.jar
> Ankur Kapadia wrote:
>
> hello everyone,
> im pretty new to soap
> and when i try to run the apache addressbook example
> i have the following soap exception
> please advice me on how can i solve this problem
>
> java.lang.NoSuchMethodError at
> org.apache.soap.util.xml.QName.(QName.java:80) at
> org.apache.soap.util.xml.QName.matches(QName.java:146) at
> org.apache.soap.Envelope.unmarshall(Envelope.java:210) at
> org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:18
> 2) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> at
> org.apache.tomcat.core.Handler.service(Handler.java:286) at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
> 7) at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:210) at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> at java.lang.Thread.run(Thread.java:484)
>
> thanks for your help
> Ankur K Kapadia.
--
WBB - wbrogden@lanw.com
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP
ISBN 0-7821-2809-2