Hi, Jonathan,

You say "I run this from the same directory the file resides". Does this
mean you run this from the C:\web\soap-2_2\samples\stockquote\ directory?
In that case, because of the java.lang.NoClassDefFoundError error I think
the virtual machine can not find the GetQuote class in the directory
C:\web\soap-2_2\samples\stockquote\samples\stockquote\ (see the
samples\stockquote directory I appended!)

Try this again in the C:\web\soap-2_2\ directory.

Michel

-----Original Message-----
From: Jonathan Porterfield [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 1 maart 2002 21:00
To: [EMAIL PROTECTED]
Subject: RE: Setup problems


Okay, I installed Xerces 2.0, and am now able to list services.

However, one new question...

I have deployed the stockquote sample.
   java org.apache.soap.server.ServiceManagerClient
http://localhost:8080/soap/servlet/rpcrouter list
   Deployed Services:
        urn:xmltoday-delayed-quotes

However, regardless of the fact that I run this from the same directory the
file resides, and have added it to the classpath, when I try to use it I
get:
   java samples.stockquote.GetQuote
http://localhost:8080/soap/servlet/rpcrouter IBM
   Exception in thread "main" java.lang.NoClassDefFoundError:
samples/stockquote/GetQuote

   C:\web\xerces-2_0_0\xercesImpl.jar;
   C:\web\xerces-2_0_0\xmlParserAPIs.jar;
   C:\web\XERCES\xerces-1_3_1\xerces.jar;
   C:\web\soap-2_2\lib\soap.jar;
   C:\web\jaf-1.0.1\activation.jar;
   C:\web\jakarta-ant-1.3\lib\ant.jar;
   c:\web\xalan-j_2_0_1\bin\xalan.jar;
   C:\web\javamail-1.2\mail.jar;
   C:\web\javamail-1.2\pop3.jar;
   c:\jdk1.3\JavaSoft\Jaxp1.0.1\parser.jar;
   C:\web\soap-2_2\samples\stockquote\GetQuote.class

Thanks in advance for any help
-J


-----Original Message-----
From: Jonathan Porterfield [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 11:35 AM
To: [EMAIL PROTECTED]
Subject: Setup problems



Hey soapies,

I'm probably missing something simple here, but I've spun my wheels for long
enough...

Background:
==========================
- DID have a previous version installed, however, I removed the webapp/soap
directory, and the work/localhost/soap directory. Installed the new SOAP
version using the "soap.war" file.
- Can bring up the web-based admin. Everything seems to look good here.
- Can deploy a sample service using the command line
C:\web\soap-2_2\samples\stockquote > java
org.apache.soap.server.ServiceManagerClient
http://localhost:8080/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml

- After running this, I can see in the browser admin that the service is
deployed.

Problem:
==========================
When I try to do anything beyond this I get major errors. For instance when
I try to list the services from the command line I get the following:

C:\web\soap-2_2\samples\stockquote>java
org.apache.soap.server.ServiceManagerClient
http://localhost:8080/soap/servlet/rpcrouter list

Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
msg=Unable to resolve namespace URI for 'ns2'.;
targetException=java.lang.IllegalArgumentException: Unable to resolve
namespace URI for 'ns2'.]
        at org.apache.soap.rpc.Call.invoke(Call.java:246)
        at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClien
t.java:129)
        at
org.apache.soap.server.ServiceManagerClient.list(ServiceManagerClient.java:1
51)
        at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2
37)

environment:
==========================
OS = Win2k Server
App Serv = Tomcat 4.0

CLASSPATH (in this order)
C:\web\XERCES\xerces-1_3_1\xerces.jar;
C:\web\soap-2_2\lib\soap.jar;
C:\web\jaf-1.0.1\activation.jar;
C:\web\jakarta-ant-1.3\lib\ant.jar;
c:\web\xalan-j_2_0_1\bin\xalan.jar;
C:\web\javamail-1.2\mail.jar;
C:\web\javamail-1.2\pop3.jar;
c:\jdk1.3\JavaSoft\Jaxp1.0.1\parser.jar

Reply via email to