William Brogden <[EMAIL PROTECTED]>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" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> 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
> > [EMAIL PROTECTED]
> >
> > > -----Message d'origine-----
> > > De : Stephan Wiesner [mailto:[EMAIL PROTECTED]]
> > > Envoy� : mardi 24 juillet 2001 11:24
> > > � : [EMAIL PROTECTED]
> > > 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" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > 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
> > >

--
[EMAIL PROTECTED]

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


Reply via email to