Colleagues:
I just installed SOAP-2.2 under Tomcat. While I've done this before under
WebLogic on Windows 2K Server, I am having a problem I can't figure out
under Linux.
Here is my environment:
CLASSPATH=/home/dulino/lib/xerces.jar:/home/dulino/lib/mail.jar:/home/dulino/lib/activation.jar:/home/dulino/lib/bsf.jar:/home/dulino/lib/soap.jar:/home/dulino/lib/soap-2_2/:
SOAP servlet and admin client got deployed to Tomcat correctly. I verified
that. Now, when I try running the stockquote example I get the following:
**************************************
This test assumes a server URL of
http://localhost:8080/soap/servlet/rpcrouter
Deploying the stockquote service...
(No such file or directory)ava.io.FileNotFoundException:
DeploymentDescriptor.xml
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:64)
at java.io.FileReader.<init>(FileReader.java:38)
at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:227)
Verify that it's there
Usage: java org.apache.soap.server.ServiceManagerClient [-auth
username:password] url operation arguments
where
username and password is the HTTP Basic authentication info
url is the Apache SOAP router's URL whose services are managed
operation and arguments are:
deploy deployment-descriptor-file.xml
list
query service-name
undeploy service-name
Running the stockquote test
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
msg=A 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must
contain a: 'faultcode' element.;
targetException=java.lang.IllegalArgumentException: A
'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
'faultcode' element.]
at org.apache.soap.rpc.Call.invoke(Call.java:246)
at samples.stockquote.GetQuote.main(GetQuote.java:100)
Undeploy it now
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
msg=A 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must
contain a: 'faultcode' element.;
targetException=java.lang.IllegalArgumentException: A
'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
'faultcode' element.]
at org.apache.soap.rpc.Call.invoke(Call.java:246)
at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClient.java:129)
at
org.apache.soap.server.ServiceManagerClient.undeploy(ServiceManagerClient.java:147)
at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:235)
Verify that it's gone
Usage: java org.apache.soap.server.ServiceManagerClient [-auth
username:password] url operation arguments
where
username and password is the HTTP Basic authentication info
url is the Apache SOAP router's URL whose services are managed
operation and arguments are:
deploy deployment-descriptor-file.xml
list
query service-name
undeploy service-name
************************************
And the directory listing is as follows:
************************************
-rw-r--r-- 1 dulino dulino 398 May 29 15:57
DeploymentDescriptor.xml
-rw-r--r-- 1 dulino dulino 2816 May 29 15:57 GetQuote.class
-rw-r--r-- 1 dulino dulino 4687 May 29 15:57 GetQuote.java
-rw-r--r-- 1 dulino dulino 3752 May 29 15:57 GetQuoteSMTP.class
-rw-r--r-- 1 dulino dulino 6142 May 29 15:57 GetQuoteSMTP.java
-rw-r--r-- 1 dulino dulino 1441 May 29 15:57 README
-rw-r--r-- 1 dulino dulino 1726 May 29 15:57
StockQuoteService.class
-rw-r--r-- 1 dulino dulino 4030 May 29 15:57
StockQuoteService.java
-rw-r--r-- 1 dulino dulino 825 May 29 15:57 testit.cmd
-rwsr-sr-x 1 dulino dulino 812 May 29 15:57 testit.sh*
***********************************
Any help would be greatly appreciated.
--
Regards,
Oleg Dulin
http://www.olegdulin.com/