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 Stephan Wiesner <wi...@werum.de> on 2001/07/24 10:18:25 UTC

NoSuchMethodError

Tomcat works fine, I have deployed my service and I can list it, but it
doesn't work.
I can't run any of the examples that come with SOAP, too :-(
Always there is one 'NoSuchMethodError' error or another.
Xerces.jar is first on Classpath, with and without Tomcat.

Any help would be greatly appreciated.

Stephan


Xerces: 1.4.2
SOAP: 2.2
Tomcat 3.2.3


Exception in thread "main" 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:237)
        at org.apache.soap.rpc.Call.invoke(Call.java:230)
        at Client.main(Client.java:25)


The Code is a snippet from
http://www-106.ibm.com/developerworks/library/ws-peer2/#f1

import java.net.*;
import java.util.*;
import org.apache.soap.*; // Body, Envelope, Fault, Header
import org.apache.soap.rpc.*; // Call, Parameter, Response
public class Client
{
   public static void main( String[] args ) throws Exception
   {
     URL url = new URL( "http://localhost:8000/soap/servlet/rpcrouter" );
     String urn = "urn:demo1:exchange";
     Call call = new Call(); // prepare the service invocation
     call.setTargetObjectURI( urn );
     call.setMethodName( "getRate" );
     call.setEncodingStyleURI( Constants.NS_URI_SOAP_ENC );
     Vector params = new Vector();
     params.addElement( new Parameter( "country1", String.class, "USA",
null ) );
     params.addElement( new Parameter( "country2", String.class, "japan",
null ) );
     call.setParams( params );
     try
     {
       System.out.println( "invoke service\n" + "  URL= " + url + "\n  URN
=" +  urn );

       System.out.println("Aktueller Stand:\n"+call.toString());

       Response response = call.invoke( url, "" ); // invoke the service


Re: NoSuchMethodError, CLASSPATH-Problem , it works!!

Posted by Andreas Ullmann <An...@mathema.de>.
 William Brogden <wb...@bga.com>allready explained this:

"
IF you will read the tooldocs page entitled findingclasses.html you
will see that the JVM looks in two places BEFORE it looks at classpath.
It finds "Bootstrap" classses and "Extension" classes first.
 JAVA_HOME\jre\lib\ext  is where the extension classes live.

When this happened to me, I found an old XML parser in the ext
directory.
"

thx 2 William...

Andreas Ullmann


Stephan Wiesner wrote:

> Hey, thanks, now it works.
> I have the xerces.jar still in /lib/ext (still don't know why the CLASSPATH)
> doesn't work.
> But I removed everything I don't need from lib/ext. And now it works.
> Seems the problem was with 'xsltc.jar'.
>
> Stephan
>
> ----- Original Message -----
> From: "Saint-Martin Cecile" <cs...@symetrx.com>
> To: <so...@xml.apache.org>
> Sent: Tuesday, July 24, 2001 11:28 AM
> Subject: RE: NoSuchMethodError, CLASSPATH-Problem
>
> > Check that you haven't others .jar containing parsers in your classpath.
> > Wich JDK do you use (Sun or IBM)?
> >
> > SAINT-MARTIN Cecile
> > csaintmartin@symetrx.com
> >
> > > -----Message d'origine-----
> > > De : Stephan Wiesner [mailto:wiesner@werum.de]
> > > Envoyé : mardi 24 juillet 2001 11:24
> > > À : soap-user@xml.apache.org
> > > Objet : Re: NoSuchMethodError, CLASSPATH-Problem
> > >
> > >
> > > Still doesn't work :-(
> > > I have seen something else, though, might be the solution.
> > > I have xerces.jar in c:\xerces.jar (Xerces 1.4.1)
> > > My CLASSPATH says c:\xerces.jar;.;d:\.......
> > > Tomcat seems to accept it, saying:
> > > Using CLASSPATH: c:\xerces.jar;.;d:\......
> > > And Tomcat works.
> > > But SOAP doesn't work.
> > > It does work, however, if I copy xerces.jar into d:\jdk1.3\jre\lib\ext
> > > where I have my other JAR-files.
> > > So, if it is not used from c:\ (why not?), it must be used from
> > > the lib\ext
> > > directory and will propably not be the first parser used.
> > > So, what is wrong with my CLASSPATH? Can't figure it out :-(
> > >
> > > Stephan
> > >
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: "Nor Azmi Shaparuddin Bin Aris" <no...@medical-online.net>
> > > To: <so...@xml.apache.org>
> > > Sent: Tuesday, July 24, 2001 10:29 AM
> > > Subject: Re: NoSuchMethodError
> > >
> > >
> > > > I encountered the same error message while doing the test ...
> > > >
> > > > I was using Xerces 1.3.1 + SOAP 2.2 and Tomcat 3.2.2 but when I
> > > changed to
> > > > Xerces 1.4.1 the problem not longer exist.
> > > >
> > > > - TQ -
> > > >
> > > > Stephan Wiesner wrote:
> > > >
> > > > > Tomcat works fine, I have deployed my service and I can list
> > > it, but it
> > > > > doesn't work.
> > > > > I can't run any of the examples that come with SOAP, too :-(
> > > > > Always there is one 'NoSuchMethodError' error or another.
> > > > > Xerces.jar is first on Classpath, with and without Tomcat.
> > > > >
> > > > > Any help would be greatly appreciated.
> > > > >
> > > > > Stephan
> > > > >
> > > > > Xerces: 1.4.2
> > > > > SOAP: 2.2
> > > > > Tomcat 3.2.3
> > > > >
> > > > > Exception in thread "main" 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:237)
> > > > >         at org.apache.soap.rpc.Call.invoke(Call.java:230)
> > > > >         at Client.main(Client.java:25)
> > > > >
> > > > > The Code is a snippet from
> > > > > http://www-106.ibm.com/developerworks/library/ws-peer2/#f1
> > > > >
> > > > > import java.net.*;
> > > > > import java.util.*;
> > > > > import org.apache.soap.*; // Body, Envelope, Fault, Header
> > > > > import org.apache.soap.rpc.*; // Call, Parameter, Response
> > > > > public class Client
> > > > > {
> > > > >    public static void main( String[] args ) throws Exception
> > > > >    {
> > > > >      URL url = new URL(
> > > "http://localhost:8000/soap/servlet/rpcrouter" );
> > > > >      String urn = "urn:demo1:exchange";
> > > > >      Call call = new Call(); // prepare the service invocation
> > > > >      call.setTargetObjectURI( urn );
> > > > >      call.setMethodName( "getRate" );
> > > > >      call.setEncodingStyleURI( Constants.NS_URI_SOAP_ENC );
> > > > >      Vector params = new Vector();
> > > > >      params.addElement( new Parameter( "country1",
> > > String.class, "USA",
> > > > > null ) );
> > > > >      params.addElement( new Parameter( "country2", String.class,
> > > "japan",
> > > > > null ) );
> > > > >      call.setParams( params );
> > > > >      try
> > > > >      {
> > > > >        System.out.println( "invoke service\n" + "  URL= " + url +
> "\n
> > > URN
> > > > > =" +  urn );
> > > > >
> > > > >        System.out.println("Aktueller Stand:\n"+call.toString());
> > > > >
> > > > >        Response response = call.invoke( url, "" ); // invoke
> > > the service
> > >

--
Andreas.Ullmann@mathema.de

MATHEMA AG
Nägelsbachstraße 25 b
91052 E r l a n g e n
Telefon 09131/8903-0
Telefax 09131/8903-55
http://www.mathema.de



Re: NoSuchMethodError, CLASSPATH-Problem , it works!!

Posted by Andreas Ullmann <An...@mathema.de>.
 William Brogden <wb...@bga.com>allready explained this:

"
IF you will read the tooldocs page entitled findingclasses.html you
will see that the JVM looks in two places BEFORE it looks at classpath.
It finds "Bootstrap" classses and "Extension" classes first.
 JAVA_HOME\jre\lib\ext  is where the extension classes live.

When this happened to me, I found an old XML parser in the ext
directory.
"

thx 2 William...

Andreas Ullmann


Stephan Wiesner wrote:

> Hey, thanks, now it works.
> I have the xerces.jar still in /lib/ext (still don't know why the CLASSPATH)
> doesn't work.
> But I removed everything I don't need from lib/ext. And now it works.
> Seems the problem was with 'xsltc.jar'.
>
> Stephan
>
> ----- Original Message -----
> From: "Saint-Martin Cecile" <cs...@symetrx.com>
> To: <so...@xml.apache.org>
> Sent: Tuesday, July 24, 2001 11:28 AM
> Subject: RE: NoSuchMethodError, CLASSPATH-Problem
>
> > Check that you haven't others .jar containing parsers in your classpath.
> > Wich JDK do you use (Sun or IBM)?
> >
> > SAINT-MARTIN Cecile
> > csaintmartin@symetrx.com
> >
> > > -----Message d'origine-----
> > > De : Stephan Wiesner [mailto:wiesner@werum.de]
> > > Envoyé : mardi 24 juillet 2001 11:24
> > > À : soap-user@xml.apache.org
> > > Objet : Re: NoSuchMethodError, CLASSPATH-Problem
> > >
> > >
> > > Still doesn't work :-(
> > > I have seen something else, though, might be the solution.
> > > I have xerces.jar in c:\xerces.jar (Xerces 1.4.1)
> > > My CLASSPATH says c:\xerces.jar;.;d:\.......
> > > Tomcat seems to accept it, saying:
> > > Using CLASSPATH: c:\xerces.jar;.;d:\......
> > > And Tomcat works.
> > > But SOAP doesn't work.
> > > It does work, however, if I copy xerces.jar into d:\jdk1.3\jre\lib\ext
> > > where I have my other JAR-files.
> > > So, if it is not used from c:\ (why not?), it must be used from
> > > the lib\ext
> > > directory and will propably not be the first parser used.
> > > So, what is wrong with my CLASSPATH? Can't figure it out :-(
> > >
> > > Stephan
> > >
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: "Nor Azmi Shaparuddin Bin Aris" <no...@medical-online.net>
> > > To: <so...@xml.apache.org>
> > > Sent: Tuesday, July 24, 2001 10:29 AM
> > > Subject: Re: NoSuchMethodError
> > >
> > >
> > > > I encountered the same error message while doing the test ...
> > > >
> > > > I was using Xerces 1.3.1 + SOAP 2.2 and Tomcat 3.2.2 but when I
> > > changed to
> > > > Xerces 1.4.1 the problem not longer exist.
> > > >
> > > > - TQ -
> > > >
> > > > Stephan Wiesner wrote:
> > > >
> > > > > Tomcat works fine, I have deployed my service and I can list
> > > it, but it
> > > > > doesn't work.
> > > > > I can't run any of the examples that come with SOAP, too :-(
> > > > > Always there is one 'NoSuchMethodError' error or another.
> > > > > Xerces.jar is first on Classpath, with and without Tomcat.
> > > > >
> > > > > Any help would be greatly appreciated.
> > > > >
> > > > > Stephan
> > > > >
> > > > > Xerces: 1.4.2
> > > > > SOAP: 2.2
> > > > > Tomcat 3.2.3
> > > > >
> > > > > Exception in thread "main" 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:237)
> > > > >         at org.apache.soap.rpc.Call.invoke(Call.java:230)
> > > > >         at Client.main(Client.java:25)
> > > > >
> > > > > The Code is a snippet from
> > > > > http://www-106.ibm.com/developerworks/library/ws-peer2/#f1
> > > > >
> > > > > import java.net.*;
> > > > > import java.util.*;
> > > > > import org.apache.soap.*; // Body, Envelope, Fault, Header
> > > > > import org.apache.soap.rpc.*; // Call, Parameter, Response
> > > > > public class Client
> > > > > {
> > > > >    public static void main( String[] args ) throws Exception
> > > > >    {
> > > > >      URL url = new URL(
> > > "http://localhost:8000/soap/servlet/rpcrouter" );
> > > > >      String urn = "urn:demo1:exchange";
> > > > >      Call call = new Call(); // prepare the service invocation
> > > > >      call.setTargetObjectURI( urn );
> > > > >      call.setMethodName( "getRate" );
> > > > >      call.setEncodingStyleURI( Constants.NS_URI_SOAP_ENC );
> > > > >      Vector params = new Vector();
> > > > >      params.addElement( new Parameter( "country1",
> > > String.class, "USA",
> > > > > null ) );
> > > > >      params.addElement( new Parameter( "country2", String.class,
> > > "japan",
> > > > > null ) );
> > > > >      call.setParams( params );
> > > > >      try
> > > > >      {
> > > > >        System.out.println( "invoke service\n" + "  URL= " + url +
> "\n
> > > URN
> > > > > =" +  urn );
> > > > >
> > > > >        System.out.println("Aktueller Stand:\n"+call.toString());
> > > > >
> > > > >        Response response = call.invoke( url, "" ); // invoke
> > > the service
> > >

--
Andreas.Ullmann@mathema.de

MATHEMA AG
Nägelsbachstraße 25 b
91052 E r l a n g e n
Telefon 09131/8903-0
Telefax 09131/8903-55
http://www.mathema.de



Re: NoSuchMethodError, CLASSPATH-Problem , it works!!

Posted by Stephan Wiesner <wi...@werum.de>.
Hey, thanks, now it works.
I have the xerces.jar still in /lib/ext (still don't know why the CLASSPATH)
doesn't work.
But I removed everything I don't need from lib/ext. And now it works.
Seems the problem was with 'xsltc.jar'.

Stephan

----- Original Message -----
From: "Saint-Martin Cecile" <cs...@symetrx.com>
To: <so...@xml.apache.org>
Sent: Tuesday, July 24, 2001 11:28 AM
Subject: RE: NoSuchMethodError, CLASSPATH-Problem


> Check that you haven't others .jar containing parsers in your classpath.
> Wich JDK do you use (Sun or IBM)?
>
> SAINT-MARTIN Cecile
> csaintmartin@symetrx.com
>
> > -----Message d'origine-----
> > De : Stephan Wiesner [mailto:wiesner@werum.de]
> > Envoyé : mardi 24 juillet 2001 11:24
> > À : soap-user@xml.apache.org
> > Objet : Re: NoSuchMethodError, CLASSPATH-Problem
> >
> >
> > Still doesn't work :-(
> > I have seen something else, though, might be the solution.
> > I have xerces.jar in c:\xerces.jar (Xerces 1.4.1)
> > My CLASSPATH says c:\xerces.jar;.;d:\.......
> > Tomcat seems to accept it, saying:
> > Using CLASSPATH: c:\xerces.jar;.;d:\......
> > And Tomcat works.
> > But SOAP doesn't work.
> > It does work, however, if I copy xerces.jar into d:\jdk1.3\jre\lib\ext
> > where I have my other JAR-files.
> > So, if it is not used from c:\ (why not?), it must be used from
> > the lib\ext
> > directory and will propably not be the first parser used.
> > So, what is wrong with my CLASSPATH? Can't figure it out :-(
> >
> > Stephan
> >
> >
> >
> >
> > ----- Original Message -----
> > From: "Nor Azmi Shaparuddin Bin Aris" <no...@medical-online.net>
> > To: <so...@xml.apache.org>
> > Sent: Tuesday, July 24, 2001 10:29 AM
> > Subject: Re: NoSuchMethodError
> >
> >
> > > I encountered the same error message while doing the test ...
> > >
> > > I was using Xerces 1.3.1 + SOAP 2.2 and Tomcat 3.2.2 but when I
> > changed to
> > > Xerces 1.4.1 the problem not longer exist.
> > >
> > > - TQ -
> > >
> > > Stephan Wiesner wrote:
> > >
> > > > Tomcat works fine, I have deployed my service and I can list
> > it, but it
> > > > doesn't work.
> > > > I can't run any of the examples that come with SOAP, too :-(
> > > > Always there is one 'NoSuchMethodError' error or another.
> > > > Xerces.jar is first on Classpath, with and without Tomcat.
> > > >
> > > > Any help would be greatly appreciated.
> > > >
> > > > Stephan
> > > >
> > > > Xerces: 1.4.2
> > > > SOAP: 2.2
> > > > Tomcat 3.2.3
> > > >
> > > > Exception in thread "main" 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:237)
> > > >         at org.apache.soap.rpc.Call.invoke(Call.java:230)
> > > >         at Client.main(Client.java:25)
> > > >
> > > > The Code is a snippet from
> > > > http://www-106.ibm.com/developerworks/library/ws-peer2/#f1
> > > >
> > > > import java.net.*;
> > > > import java.util.*;
> > > > import org.apache.soap.*; // Body, Envelope, Fault, Header
> > > > import org.apache.soap.rpc.*; // Call, Parameter, Response
> > > > public class Client
> > > > {
> > > >    public static void main( String[] args ) throws Exception
> > > >    {
> > > >      URL url = new URL(
> > "http://localhost:8000/soap/servlet/rpcrouter" );
> > > >      String urn = "urn:demo1:exchange";
> > > >      Call call = new Call(); // prepare the service invocation
> > > >      call.setTargetObjectURI( urn );
> > > >      call.setMethodName( "getRate" );
> > > >      call.setEncodingStyleURI( Constants.NS_URI_SOAP_ENC );
> > > >      Vector params = new Vector();
> > > >      params.addElement( new Parameter( "country1",
> > String.class, "USA",
> > > > null ) );
> > > >      params.addElement( new Parameter( "country2", String.class,
> > "japan",
> > > > null ) );
> > > >      call.setParams( params );
> > > >      try
> > > >      {
> > > >        System.out.println( "invoke service\n" + "  URL= " + url +
"\n
> > URN
> > > > =" +  urn );
> > > >
> > > >        System.out.println("Aktueller Stand:\n"+call.toString());
> > > >
> > > >        Response response = call.invoke( url, "" ); // invoke
> > the service
> >


Re: NoSuchMethodError, CLASSPATH-Problem , it works!!

Posted by Stephan Wiesner <wi...@werum.de>.
Hey, thanks, now it works.
I have the xerces.jar still in /lib/ext (still don't know why the CLASSPATH)
doesn't work.
But I removed everything I don't need from lib/ext. And now it works.
Seems the problem was with 'xsltc.jar'.

Stephan

----- Original Message -----
From: "Saint-Martin Cecile" <cs...@symetrx.com>
To: <so...@xml.apache.org>
Sent: Tuesday, July 24, 2001 11:28 AM
Subject: RE: NoSuchMethodError, CLASSPATH-Problem


> Check that you haven't others .jar containing parsers in your classpath.
> Wich JDK do you use (Sun or IBM)?
>
> SAINT-MARTIN Cecile
> csaintmartin@symetrx.com
>
> > -----Message d'origine-----
> > De : Stephan Wiesner [mailto:wiesner@werum.de]
> > Envoyé : mardi 24 juillet 2001 11:24
> > À : soap-user@xml.apache.org
> > Objet : Re: NoSuchMethodError, CLASSPATH-Problem
> >
> >
> > Still doesn't work :-(
> > I have seen something else, though, might be the solution.
> > I have xerces.jar in c:\xerces.jar (Xerces 1.4.1)
> > My CLASSPATH says c:\xerces.jar;.;d:\.......
> > Tomcat seems to accept it, saying:
> > Using CLASSPATH: c:\xerces.jar;.;d:\......
> > And Tomcat works.
> > But SOAP doesn't work.
> > It does work, however, if I copy xerces.jar into d:\jdk1.3\jre\lib\ext
> > where I have my other JAR-files.
> > So, if it is not used from c:\ (why not?), it must be used from
> > the lib\ext
> > directory and will propably not be the first parser used.
> > So, what is wrong with my CLASSPATH? Can't figure it out :-(
> >
> > Stephan
> >
> >
> >
> >
> > ----- Original Message -----
> > From: "Nor Azmi Shaparuddin Bin Aris" <no...@medical-online.net>
> > To: <so...@xml.apache.org>
> > Sent: Tuesday, July 24, 2001 10:29 AM
> > Subject: Re: NoSuchMethodError
> >
> >
> > > I encountered the same error message while doing the test ...
> > >
> > > I was using Xerces 1.3.1 + SOAP 2.2 and Tomcat 3.2.2 but when I
> > changed to
> > > Xerces 1.4.1 the problem not longer exist.
> > >
> > > - TQ -
> > >
> > > Stephan Wiesner wrote:
> > >
> > > > Tomcat works fine, I have deployed my service and I can list
> > it, but it
> > > > doesn't work.
> > > > I can't run any of the examples that come with SOAP, too :-(
> > > > Always there is one 'NoSuchMethodError' error or another.
> > > > Xerces.jar is first on Classpath, with and without Tomcat.
> > > >
> > > > Any help would be greatly appreciated.
> > > >
> > > > Stephan
> > > >
> > > > Xerces: 1.4.2
> > > > SOAP: 2.2
> > > > Tomcat 3.2.3
> > > >
> > > > Exception in thread "main" 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:237)
> > > >         at org.apache.soap.rpc.Call.invoke(Call.java:230)
> > > >         at Client.main(Client.java:25)
> > > >
> > > > The Code is a snippet from
> > > > http://www-106.ibm.com/developerworks/library/ws-peer2/#f1
> > > >
> > > > import java.net.*;
> > > > import java.util.*;
> > > > import org.apache.soap.*; // Body, Envelope, Fault, Header
> > > > import org.apache.soap.rpc.*; // Call, Parameter, Response
> > > > public class Client
> > > > {
> > > >    public static void main( String[] args ) throws Exception
> > > >    {
> > > >      URL url = new URL(
> > "http://localhost:8000/soap/servlet/rpcrouter" );
> > > >      String urn = "urn:demo1:exchange";
> > > >      Call call = new Call(); // prepare the service invocation
> > > >      call.setTargetObjectURI( urn );
> > > >      call.setMethodName( "getRate" );
> > > >      call.setEncodingStyleURI( Constants.NS_URI_SOAP_ENC );
> > > >      Vector params = new Vector();
> > > >      params.addElement( new Parameter( "country1",
> > String.class, "USA",
> > > > null ) );
> > > >      params.addElement( new Parameter( "country2", String.class,
> > "japan",
> > > > null ) );
> > > >      call.setParams( params );
> > > >      try
> > > >      {
> > > >        System.out.println( "invoke service\n" + "  URL= " + url +
"\n
> > URN
> > > > =" +  urn );
> > > >
> > > >        System.out.println("Aktueller Stand:\n"+call.toString());
> > > >
> > > >        Response response = call.invoke( url, "" ); // invoke
> > the service
> >


Re: NoSuchMethodError, CLASSPATH-Problem

Posted by Stephan Wiesner <wi...@werum.de>.
That wouldn't explain why the xerces.jar in my CLASSPATH is not acceptet,
would it?
I mean, if it is first, it has to be used first? Or ist the /lib/ext read
first?
I use SUNs JDK1.3.1

Stephan

----- Original Message -----
From: "Saint-Martin Cecile" <cs...@symetrx.com>
To: <so...@xml.apache.org>
Sent: Tuesday, July 24, 2001 11:28 AM
Subject: RE: NoSuchMethodError, CLASSPATH-Problem


> Check that you haven't others .jar containing parsers in your classpath.
> Wich JDK do you use (Sun or IBM)?
>
> SAINT-MARTIN Cecile
> csaintmartin@symetrx.com
>
> > -----Message d'origine-----
> > De : Stephan Wiesner [mailto:wiesner@werum.de]
> > Envoyé : mardi 24 juillet 2001 11:24
> > À : soap-user@xml.apache.org
> > Objet : Re: NoSuchMethodError, CLASSPATH-Problem
> >
> >
> > Still doesn't work :-(
> > I have seen something else, though, might be the solution.
> > I have xerces.jar in c:\xerces.jar (Xerces 1.4.1)
> > My CLASSPATH says c:\xerces.jar;.;d:\.......
> > Tomcat seems to accept it, saying:
> > Using CLASSPATH: c:\xerces.jar;.;d:\......
> > And Tomcat works.
> > But SOAP doesn't work.
> > It does work, however, if I copy xerces.jar into d:\jdk1.3\jre\lib\ext
> > where I have my other JAR-files.
> > So, if it is not used from c:\ (why not?), it must be used from
> > the lib\ext
> > directory and will propably not be the first parser used.
> > So, what is wrong with my CLASSPATH? Can't figure it out :-(
> >
> > Stephan
> >
> >
> >
> >



Re: NoSuchMethodError, CLASSPATH-Problem

Posted by Stephan Wiesner <wi...@werum.de>.
That wouldn't explain why the xerces.jar in my CLASSPATH is not acceptet,
would it?
I mean, if it is first, it has to be used first? Or ist the /lib/ext read
first?
I use SUNs JDK1.3.1

Stephan

----- Original Message -----
From: "Saint-Martin Cecile" <cs...@symetrx.com>
To: <so...@xml.apache.org>
Sent: Tuesday, July 24, 2001 11:28 AM
Subject: RE: NoSuchMethodError, CLASSPATH-Problem


> Check that you haven't others .jar containing parsers in your classpath.
> Wich JDK do you use (Sun or IBM)?
>
> SAINT-MARTIN Cecile
> csaintmartin@symetrx.com
>
> > -----Message d'origine-----
> > De : Stephan Wiesner [mailto:wiesner@werum.de]
> > Envoyé : mardi 24 juillet 2001 11:24
> > À : soap-user@xml.apache.org
> > Objet : Re: NoSuchMethodError, CLASSPATH-Problem
> >
> >
> > Still doesn't work :-(
> > I have seen something else, though, might be the solution.
> > I have xerces.jar in c:\xerces.jar (Xerces 1.4.1)
> > My CLASSPATH says c:\xerces.jar;.;d:\.......
> > Tomcat seems to accept it, saying:
> > Using CLASSPATH: c:\xerces.jar;.;d:\......
> > And Tomcat works.
> > But SOAP doesn't work.
> > It does work, however, if I copy xerces.jar into d:\jdk1.3\jre\lib\ext
> > where I have my other JAR-files.
> > So, if it is not used from c:\ (why not?), it must be used from
> > the lib\ext
> > directory and will propably not be the first parser used.
> > So, what is wrong with my CLASSPATH? Can't figure it out :-(
> >
> > Stephan
> >
> >
> >
> >



RE: NoSuchMethodError, CLASSPATH-Problem

Posted by Saint-Martin Cecile <cs...@symetrx.com>.
Check that you haven't others .jar containing parsers in your classpath.
Wich JDK do you use (Sun or IBM)?

SAINT-MARTIN Cecile
csaintmartin@symetrx.com

> -----Message d'origine-----
> De : Stephan Wiesner [mailto:wiesner@werum.de]
> Envoyé : mardi 24 juillet 2001 11:24
> À : soap-user@xml.apache.org
> Objet : Re: NoSuchMethodError, CLASSPATH-Problem
>
>
> Still doesn't work :-(
> I have seen something else, though, might be the solution.
> I have xerces.jar in c:\xerces.jar (Xerces 1.4.1)
> My CLASSPATH says c:\xerces.jar;.;d:\.......
> Tomcat seems to accept it, saying:
> Using CLASSPATH: c:\xerces.jar;.;d:\......
> And Tomcat works.
> But SOAP doesn't work.
> It does work, however, if I copy xerces.jar into d:\jdk1.3\jre\lib\ext
> where I have my other JAR-files.
> So, if it is not used from c:\ (why not?), it must be used from
> the lib\ext
> directory and will propably not be the first parser used.
> So, what is wrong with my CLASSPATH? Can't figure it out :-(
>
> Stephan
>
>
>
>
> ----- Original Message -----
> From: "Nor Azmi Shaparuddin Bin Aris" <no...@medical-online.net>
> To: <so...@xml.apache.org>
> Sent: Tuesday, July 24, 2001 10:29 AM
> Subject: Re: NoSuchMethodError
>
>
> > I encountered the same error message while doing the test ...
> >
> > I was using Xerces 1.3.1 + SOAP 2.2 and Tomcat 3.2.2 but when I
> changed to
> > Xerces 1.4.1 the problem not longer exist.
> >
> > - TQ -
> >
> > Stephan Wiesner wrote:
> >
> > > Tomcat works fine, I have deployed my service and I can list
> it, but it
> > > doesn't work.
> > > I can't run any of the examples that come with SOAP, too :-(
> > > Always there is one 'NoSuchMethodError' error or another.
> > > Xerces.jar is first on Classpath, with and without Tomcat.
> > >
> > > Any help would be greatly appreciated.
> > >
> > > Stephan
> > >
> > > Xerces: 1.4.2
> > > SOAP: 2.2
> > > Tomcat 3.2.3
> > >
> > > Exception in thread "main" 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:237)
> > >         at org.apache.soap.rpc.Call.invoke(Call.java:230)
> > >         at Client.main(Client.java:25)
> > >
> > > The Code is a snippet from
> > > http://www-106.ibm.com/developerworks/library/ws-peer2/#f1
> > >
> > > import java.net.*;
> > > import java.util.*;
> > > import org.apache.soap.*; // Body, Envelope, Fault, Header
> > > import org.apache.soap.rpc.*; // Call, Parameter, Response
> > > public class Client
> > > {
> > >    public static void main( String[] args ) throws Exception
> > >    {
> > >      URL url = new URL(
> "http://localhost:8000/soap/servlet/rpcrouter" );
> > >      String urn = "urn:demo1:exchange";
> > >      Call call = new Call(); // prepare the service invocation
> > >      call.setTargetObjectURI( urn );
> > >      call.setMethodName( "getRate" );
> > >      call.setEncodingStyleURI( Constants.NS_URI_SOAP_ENC );
> > >      Vector params = new Vector();
> > >      params.addElement( new Parameter( "country1",
> String.class, "USA",
> > > null ) );
> > >      params.addElement( new Parameter( "country2", String.class,
> "japan",
> > > null ) );
> > >      call.setParams( params );
> > >      try
> > >      {
> > >        System.out.println( "invoke service\n" + "  URL= " + url + "\n
> URN
> > > =" +  urn );
> > >
> > >        System.out.println("Aktueller Stand:\n"+call.toString());
> > >
> > >        Response response = call.invoke( url, "" ); // invoke
> the service
>


RE: NoSuchMethodError, CLASSPATH-Problem

Posted by Saint-Martin Cecile <cs...@symetrx.com>.
Check that you haven't others .jar containing parsers in your classpath.
Wich JDK do you use (Sun or IBM)?

SAINT-MARTIN Cecile
csaintmartin@symetrx.com

> -----Message d'origine-----
> De : Stephan Wiesner [mailto:wiesner@werum.de]
> Envoyé : mardi 24 juillet 2001 11:24
> À : soap-user@xml.apache.org
> Objet : Re: NoSuchMethodError, CLASSPATH-Problem
>
>
> Still doesn't work :-(
> I have seen something else, though, might be the solution.
> I have xerces.jar in c:\xerces.jar (Xerces 1.4.1)
> My CLASSPATH says c:\xerces.jar;.;d:\.......
> Tomcat seems to accept it, saying:
> Using CLASSPATH: c:\xerces.jar;.;d:\......
> And Tomcat works.
> But SOAP doesn't work.
> It does work, however, if I copy xerces.jar into d:\jdk1.3\jre\lib\ext
> where I have my other JAR-files.
> So, if it is not used from c:\ (why not?), it must be used from
> the lib\ext
> directory and will propably not be the first parser used.
> So, what is wrong with my CLASSPATH? Can't figure it out :-(
>
> Stephan
>
>
>
>
> ----- Original Message -----
> From: "Nor Azmi Shaparuddin Bin Aris" <no...@medical-online.net>
> To: <so...@xml.apache.org>
> Sent: Tuesday, July 24, 2001 10:29 AM
> Subject: Re: NoSuchMethodError
>
>
> > I encountered the same error message while doing the test ...
> >
> > I was using Xerces 1.3.1 + SOAP 2.2 and Tomcat 3.2.2 but when I
> changed to
> > Xerces 1.4.1 the problem not longer exist.
> >
> > - TQ -
> >
> > Stephan Wiesner wrote:
> >
> > > Tomcat works fine, I have deployed my service and I can list
> it, but it
> > > doesn't work.
> > > I can't run any of the examples that come with SOAP, too :-(
> > > Always there is one 'NoSuchMethodError' error or another.
> > > Xerces.jar is first on Classpath, with and without Tomcat.
> > >
> > > Any help would be greatly appreciated.
> > >
> > > Stephan
> > >
> > > Xerces: 1.4.2
> > > SOAP: 2.2
> > > Tomcat 3.2.3
> > >
> > > Exception in thread "main" 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:237)
> > >         at org.apache.soap.rpc.Call.invoke(Call.java:230)
> > >         at Client.main(Client.java:25)
> > >
> > > The Code is a snippet from
> > > http://www-106.ibm.com/developerworks/library/ws-peer2/#f1
> > >
> > > import java.net.*;
> > > import java.util.*;
> > > import org.apache.soap.*; // Body, Envelope, Fault, Header
> > > import org.apache.soap.rpc.*; // Call, Parameter, Response
> > > public class Client
> > > {
> > >    public static void main( String[] args ) throws Exception
> > >    {
> > >      URL url = new URL(
> "http://localhost:8000/soap/servlet/rpcrouter" );
> > >      String urn = "urn:demo1:exchange";
> > >      Call call = new Call(); // prepare the service invocation
> > >      call.setTargetObjectURI( urn );
> > >      call.setMethodName( "getRate" );
> > >      call.setEncodingStyleURI( Constants.NS_URI_SOAP_ENC );
> > >      Vector params = new Vector();
> > >      params.addElement( new Parameter( "country1",
> String.class, "USA",
> > > null ) );
> > >      params.addElement( new Parameter( "country2", String.class,
> "japan",
> > > null ) );
> > >      call.setParams( params );
> > >      try
> > >      {
> > >        System.out.println( "invoke service\n" + "  URL= " + url + "\n
> URN
> > > =" +  urn );
> > >
> > >        System.out.println("Aktueller Stand:\n"+call.toString());
> > >
> > >        Response response = call.invoke( url, "" ); // invoke
> the service
>


Re: NoSuchMethodError, CLASSPATH-Problem

Posted by Stephan Wiesner <wi...@werum.de>.
Still doesn't work :-(
I have seen something else, though, might be the solution.
I have xerces.jar in c:\xerces.jar (Xerces 1.4.1)
My CLASSPATH says c:\xerces.jar;.;d:\.......
Tomcat seems to accept it, saying:
Using CLASSPATH: c:\xerces.jar;.;d:\......
And Tomcat works.
But SOAP doesn't work.
It does work, however, if I copy xerces.jar into d:\jdk1.3\jre\lib\ext
where I have my other JAR-files.
So, if it is not used from c:\ (why not?), it must be used from the lib\ext
directory and will propably not be the first parser used.
So, what is wrong with my CLASSPATH? Can't figure it out :-(

Stephan




----- Original Message -----
From: "Nor Azmi Shaparuddin Bin Aris" <no...@medical-online.net>
To: <so...@xml.apache.org>
Sent: Tuesday, July 24, 2001 10:29 AM
Subject: Re: NoSuchMethodError


> I encountered the same error message while doing the test ...
>
> I was using Xerces 1.3.1 + SOAP 2.2 and Tomcat 3.2.2 but when I changed to
> Xerces 1.4.1 the problem not longer exist.
>
> - TQ -
>
> Stephan Wiesner wrote:
>
> > Tomcat works fine, I have deployed my service and I can list it, but it
> > doesn't work.
> > I can't run any of the examples that come with SOAP, too :-(
> > Always there is one 'NoSuchMethodError' error or another.
> > Xerces.jar is first on Classpath, with and without Tomcat.
> >
> > Any help would be greatly appreciated.
> >
> > Stephan
> >
> > Xerces: 1.4.2
> > SOAP: 2.2
> > Tomcat 3.2.3
> >
> > Exception in thread "main" 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:237)
> >         at org.apache.soap.rpc.Call.invoke(Call.java:230)
> >         at Client.main(Client.java:25)
> >
> > The Code is a snippet from
> > http://www-106.ibm.com/developerworks/library/ws-peer2/#f1
> >
> > import java.net.*;
> > import java.util.*;
> > import org.apache.soap.*; // Body, Envelope, Fault, Header
> > import org.apache.soap.rpc.*; // Call, Parameter, Response
> > public class Client
> > {
> >    public static void main( String[] args ) throws Exception
> >    {
> >      URL url = new URL(
"http://localhost:8000/soap/servlet/rpcrouter" );
> >      String urn = "urn:demo1:exchange";
> >      Call call = new Call(); // prepare the service invocation
> >      call.setTargetObjectURI( urn );
> >      call.setMethodName( "getRate" );
> >      call.setEncodingStyleURI( Constants.NS_URI_SOAP_ENC );
> >      Vector params = new Vector();
> >      params.addElement( new Parameter( "country1", String.class, "USA",
> > null ) );
> >      params.addElement( new Parameter( "country2", String.class,
"japan",
> > null ) );
> >      call.setParams( params );
> >      try
> >      {
> >        System.out.println( "invoke service\n" + "  URL= " + url + "\n
URN
> > =" +  urn );
> >
> >        System.out.println("Aktueller Stand:\n"+call.toString());
> >
> >        Response response = call.invoke( url, "" ); // invoke the service


Re: NoSuchMethodError, CLASSPATH-Problem

Posted by Stephan Wiesner <wi...@werum.de>.
Still doesn't work :-(
I have seen something else, though, might be the solution.
I have xerces.jar in c:\xerces.jar (Xerces 1.4.1)
My CLASSPATH says c:\xerces.jar;.;d:\.......
Tomcat seems to accept it, saying:
Using CLASSPATH: c:\xerces.jar;.;d:\......
And Tomcat works.
But SOAP doesn't work.
It does work, however, if I copy xerces.jar into d:\jdk1.3\jre\lib\ext
where I have my other JAR-files.
So, if it is not used from c:\ (why not?), it must be used from the lib\ext
directory and will propably not be the first parser used.
So, what is wrong with my CLASSPATH? Can't figure it out :-(

Stephan




----- Original Message -----
From: "Nor Azmi Shaparuddin Bin Aris" <no...@medical-online.net>
To: <so...@xml.apache.org>
Sent: Tuesday, July 24, 2001 10:29 AM
Subject: Re: NoSuchMethodError


> I encountered the same error message while doing the test ...
>
> I was using Xerces 1.3.1 + SOAP 2.2 and Tomcat 3.2.2 but when I changed to
> Xerces 1.4.1 the problem not longer exist.
>
> - TQ -
>
> Stephan Wiesner wrote:
>
> > Tomcat works fine, I have deployed my service and I can list it, but it
> > doesn't work.
> > I can't run any of the examples that come with SOAP, too :-(
> > Always there is one 'NoSuchMethodError' error or another.
> > Xerces.jar is first on Classpath, with and without Tomcat.
> >
> > Any help would be greatly appreciated.
> >
> > Stephan
> >
> > Xerces: 1.4.2
> > SOAP: 2.2
> > Tomcat 3.2.3
> >
> > Exception in thread "main" 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:237)
> >         at org.apache.soap.rpc.Call.invoke(Call.java:230)
> >         at Client.main(Client.java:25)
> >
> > The Code is a snippet from
> > http://www-106.ibm.com/developerworks/library/ws-peer2/#f1
> >
> > import java.net.*;
> > import java.util.*;
> > import org.apache.soap.*; // Body, Envelope, Fault, Header
> > import org.apache.soap.rpc.*; // Call, Parameter, Response
> > public class Client
> > {
> >    public static void main( String[] args ) throws Exception
> >    {
> >      URL url = new URL(
"http://localhost:8000/soap/servlet/rpcrouter" );
> >      String urn = "urn:demo1:exchange";
> >      Call call = new Call(); // prepare the service invocation
> >      call.setTargetObjectURI( urn );
> >      call.setMethodName( "getRate" );
> >      call.setEncodingStyleURI( Constants.NS_URI_SOAP_ENC );
> >      Vector params = new Vector();
> >      params.addElement( new Parameter( "country1", String.class, "USA",
> > null ) );
> >      params.addElement( new Parameter( "country2", String.class,
"japan",
> > null ) );
> >      call.setParams( params );
> >      try
> >      {
> >        System.out.println( "invoke service\n" + "  URL= " + url + "\n
URN
> > =" +  urn );
> >
> >        System.out.println("Aktueller Stand:\n"+call.toString());
> >
> >        Response response = call.invoke( url, "" ); // invoke the service


Re: NoSuchMethodError

Posted by Nor Azmi Shaparuddin Bin Aris <no...@medical-online.net>.
I encountered the same error message while doing the test ...

I was using Xerces 1.3.1 + SOAP 2.2 and Tomcat 3.2.2 but when I changed to
Xerces 1.4.1 the problem not longer exist.

- TQ -

Stephan Wiesner wrote:

> Tomcat works fine, I have deployed my service and I can list it, but it
> doesn't work.
> I can't run any of the examples that come with SOAP, too :-(
> Always there is one 'NoSuchMethodError' error or another.
> Xerces.jar is first on Classpath, with and without Tomcat.
>
> Any help would be greatly appreciated.
>
> Stephan
>
> Xerces: 1.4.2
> SOAP: 2.2
> Tomcat 3.2.3
>
> Exception in thread "main" 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:237)
>         at org.apache.soap.rpc.Call.invoke(Call.java:230)
>         at Client.main(Client.java:25)
>
> The Code is a snippet from
> http://www-106.ibm.com/developerworks/library/ws-peer2/#f1
>
> import java.net.*;
> import java.util.*;
> import org.apache.soap.*; // Body, Envelope, Fault, Header
> import org.apache.soap.rpc.*; // Call, Parameter, Response
> public class Client
> {
>    public static void main( String[] args ) throws Exception
>    {
>      URL url = new URL( "http://localhost:8000/soap/servlet/rpcrouter" );
>      String urn = "urn:demo1:exchange";
>      Call call = new Call(); // prepare the service invocation
>      call.setTargetObjectURI( urn );
>      call.setMethodName( "getRate" );
>      call.setEncodingStyleURI( Constants.NS_URI_SOAP_ENC );
>      Vector params = new Vector();
>      params.addElement( new Parameter( "country1", String.class, "USA",
> null ) );
>      params.addElement( new Parameter( "country2", String.class, "japan",
> null ) );
>      call.setParams( params );
>      try
>      {
>        System.out.println( "invoke service\n" + "  URL= " + url + "\n  URN
> =" +  urn );
>
>        System.out.println("Aktueller Stand:\n"+call.toString());
>
>        Response response = call.invoke( url, "" ); // invoke the service


Re: NoSuchMethodError

Posted by Nor Azmi Shaparuddin Bin Aris <no...@medical-online.net>.
I encountered the same error message while doing the test ...

I was using Xerces 1.3.1 + SOAP 2.2 and Tomcat 3.2.2 but when I changed to
Xerces 1.4.1 the problem not longer exist.

- TQ -

Stephan Wiesner wrote:

> Tomcat works fine, I have deployed my service and I can list it, but it
> doesn't work.
> I can't run any of the examples that come with SOAP, too :-(
> Always there is one 'NoSuchMethodError' error or another.
> Xerces.jar is first on Classpath, with and without Tomcat.
>
> Any help would be greatly appreciated.
>
> Stephan
>
> Xerces: 1.4.2
> SOAP: 2.2
> Tomcat 3.2.3
>
> Exception in thread "main" 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:237)
>         at org.apache.soap.rpc.Call.invoke(Call.java:230)
>         at Client.main(Client.java:25)
>
> The Code is a snippet from
> http://www-106.ibm.com/developerworks/library/ws-peer2/#f1
>
> import java.net.*;
> import java.util.*;
> import org.apache.soap.*; // Body, Envelope, Fault, Header
> import org.apache.soap.rpc.*; // Call, Parameter, Response
> public class Client
> {
>    public static void main( String[] args ) throws Exception
>    {
>      URL url = new URL( "http://localhost:8000/soap/servlet/rpcrouter" );
>      String urn = "urn:demo1:exchange";
>      Call call = new Call(); // prepare the service invocation
>      call.setTargetObjectURI( urn );
>      call.setMethodName( "getRate" );
>      call.setEncodingStyleURI( Constants.NS_URI_SOAP_ENC );
>      Vector params = new Vector();
>      params.addElement( new Parameter( "country1", String.class, "USA",
> null ) );
>      params.addElement( new Parameter( "country2", String.class, "japan",
> null ) );
>      call.setParams( params );
>      try
>      {
>        System.out.println( "invoke service\n" + "  URL= " + url + "\n  URN
> =" +  urn );
>
>        System.out.println("Aktueller Stand:\n"+call.toString());
>
>        Response response = call.invoke( url, "" ); // invoke the service


RE: NoSuchMethodError

Posted by "Matthew J. Duftler" <du...@watson.ibm.com>.
Hi Stephan,

The JSPs which make up the web-based admin interface work because they don't
have to parse the incoming request. That is, they don't hit the
non-namespace-aware implementation of the DOM interfaces.

Thanks,
-Matt

> -----Original Message-----
> From: Stephan Wiesner [mailto:wiesner@werum.de]
> Sent: Tuesday, July 24, 2001 4:18 AM
> To: soap-user@xml.apache.org
> Subject: NoSuchMethodError
>
>
> Tomcat works fine, I have deployed my service and I can list it, but it
> doesn't work.
> I can't run any of the examples that come with SOAP, too :-(
> Always there is one 'NoSuchMethodError' error or another.
> Xerces.jar is first on Classpath, with and without Tomcat.
>
> Any help would be greatly appreciated.
>
> Stephan
>
>
> Xerces: 1.4.2
> SOAP: 2.2
> Tomcat 3.2.3
>
>
> Exception in thread "main" 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:237)
>         at org.apache.soap.rpc.Call.invoke(Call.java:230)
>         at Client.main(Client.java:25)
>
>
> The Code is a snippet from
> http://www-106.ibm.com/developerworks/library/ws-peer2/#f1
>
> import java.net.*;
> import java.util.*;
> import org.apache.soap.*; // Body, Envelope, Fault, Header
> import org.apache.soap.rpc.*; // Call, Parameter, Response
> public class Client
> {
>    public static void main( String[] args ) throws Exception
>    {
>      URL url = new URL( "http://localhost:8000/soap/servlet/rpcrouter" );
>      String urn = "urn:demo1:exchange";
>      Call call = new Call(); // prepare the service invocation
>      call.setTargetObjectURI( urn );
>      call.setMethodName( "getRate" );
>      call.setEncodingStyleURI( Constants.NS_URI_SOAP_ENC );
>      Vector params = new Vector();
>      params.addElement( new Parameter( "country1", String.class, "USA",
> null ) );
>      params.addElement( new Parameter( "country2", String.class, "japan",
> null ) );
>      call.setParams( params );
>      try
>      {
>        System.out.println( "invoke service\n" + "  URL= " + url + "\n  URN
> =" +  urn );
>
>        System.out.println("Aktueller Stand:\n"+call.toString());
>
>        Response response = call.invoke( url, "" ); // invoke the service
>


RE: NoSuchMethodError

Posted by "Matthew J. Duftler" <du...@watson.ibm.com>.
Hi Stephan,

The JSPs which make up the web-based admin interface work because they don't
have to parse the incoming request. That is, they don't hit the
non-namespace-aware implementation of the DOM interfaces.

Thanks,
-Matt

> -----Original Message-----
> From: Stephan Wiesner [mailto:wiesner@werum.de]
> Sent: Tuesday, July 24, 2001 4:18 AM
> To: soap-user@xml.apache.org
> Subject: NoSuchMethodError
>
>
> Tomcat works fine, I have deployed my service and I can list it, but it
> doesn't work.
> I can't run any of the examples that come with SOAP, too :-(
> Always there is one 'NoSuchMethodError' error or another.
> Xerces.jar is first on Classpath, with and without Tomcat.
>
> Any help would be greatly appreciated.
>
> Stephan
>
>
> Xerces: 1.4.2
> SOAP: 2.2
> Tomcat 3.2.3
>
>
> Exception in thread "main" 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:237)
>         at org.apache.soap.rpc.Call.invoke(Call.java:230)
>         at Client.main(Client.java:25)
>
>
> The Code is a snippet from
> http://www-106.ibm.com/developerworks/library/ws-peer2/#f1
>
> import java.net.*;
> import java.util.*;
> import org.apache.soap.*; // Body, Envelope, Fault, Header
> import org.apache.soap.rpc.*; // Call, Parameter, Response
> public class Client
> {
>    public static void main( String[] args ) throws Exception
>    {
>      URL url = new URL( "http://localhost:8000/soap/servlet/rpcrouter" );
>      String urn = "urn:demo1:exchange";
>      Call call = new Call(); // prepare the service invocation
>      call.setTargetObjectURI( urn );
>      call.setMethodName( "getRate" );
>      call.setEncodingStyleURI( Constants.NS_URI_SOAP_ENC );
>      Vector params = new Vector();
>      params.addElement( new Parameter( "country1", String.class, "USA",
> null ) );
>      params.addElement( new Parameter( "country2", String.class, "japan",
> null ) );
>      call.setParams( params );
>      try
>      {
>        System.out.println( "invoke service\n" + "  URL= " + url + "\n  URN
> =" +  urn );
>
>        System.out.println("Aktueller Stand:\n"+call.toString());
>
>        Response response = call.invoke( url, "" ); // invoke the service
>