You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by "Sellers, Christopher" <ch...@wilcom.com> on 2001/04/02 18:36:31 UTC

RE: java.lang.NoSuchMethodError

We figured this out.  It was related to the J2EE.  There's an old version of
the org.w3c.dom in the j2ee.jar.  Somehow this jar was being loaded before
the xerces.jar.  We haven't figured out exactly how this is happening
because the j2ee.jar does not appear in our classpath.  To fix the problem
for now, we just uninstalled the J2EE.  This is acceptable because we are
using WebLogic.  WebLogic includes all the necessary J2EE classes in its own
jar.  Thanks for the help.

Christopher Sellers
(918) 573-5186
Williams Communications



-----Original Message-----
From: William Brogden [mailto:wbrogden@bga.com]
Sent: Friday, March 30, 2001 7:04 PM
To: soap-user@xml.apache.org
Subject: Re: java.lang.NoSuchMethodError




"Sellers, Christopher" wrote:
> 
> I'm sure this is a common problem but I can't find the answer anywhere.
> I've deployed a simple java class that just returns the word 'hello' but
no
> matter what I do, I always get the error below.  I think it might have
> something to do with my method parameters being empty.  Can anyone tell me
> how to call a java method with no parameters using the apache soap api?
> 
> Here's what I've been trying:
> 
>         URL url = new URL("http://arcdev4:7001/soap/servlet/rpcrouter");
>         Call call = new Call();
>         call.setTargetObjectURI("urn:HelloWorld");
>         call.setMethodName("justSayHello");
>         Response resp = call.invoke(url, "");
> 
> Here's the error I'm getting:
> 
>         java.lang.NoSuchMethodError
>                 at org.apache.soap.util.xml.QName.<init>(QName.java:80)
>                 at org.apache.soap.util.xml.QName.matches(QName.java:146)
>                 at org.apache.soap.Envelope.unmarshall(Envelope.java:236)

The method is one in the most recent version of the XML parser
having to do with namespaces. This method did not appear in the earlier
version which your JVM is somehow finding before the current Xerces.jar

In my case this was due to an earlier .jar file in the 
 JAVA_HOME\jre\lib\ext directory

-- 
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

---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org