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 Oleg Dulin <du...@acm.org> on 2001/06/25 00:37:24 UTC

Can't run samples

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/


Re: Can't run samples

Posted by Oleg Dulin <du...@acm.org>.
Thanks, that helped !

On Mon, 25 Jun 2001, Sanjiva Weerawarana wrote:

> Let me guess: you're using Xerces 1.3.1?
>
> If so you need to switch to an up or down version; Xerces 1.3.1 is
> buggy (as noted in the docs and the FAQ and the troubleshooting table).
>
> SAnjiva.
>
> ----- Original Message -----
> From: "Oleg Dulin" <du...@acm.org>
> To: <so...@xml.apache.org>
> Sent: Sunday, June 24, 2001 7:38 PM
> Subject: Re: Can't run samples
>
>
> > > 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.
> >
> > Looks like I solved the "file not found problem". ... God, I hate
> > Windows...
> >
> > testit.sh had ^M characters all over the place and so did
> > DeploymentDescriptor.xml
> >
> > But now I get a different problem... I need help.. Transcript follows:
> >
> > ***************************
> > This test assumes a server URL of
> > http://localhost:8080/soap/servlet/rpcrouter
> > Deploying the addressbook service...
> > 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(ServiceManagerClien
> t.java:129)
> > at
> >
> org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java
> :142)
> > at
> >
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2
> 30)
> >
> > Verify that it's there
> > 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(ServiceManagerCli
> ent.java:129)
> > at
> >
> org.apache.soap.server.ServiceManagerClient.list(ServiceManagerClient.java:1
> 51)
> > at
> >
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2
> 37)
> >
> > Getting info for Mr Good
> > Caught SOAPException (SOAP-ENV:Client): A
> > 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
> > 'faultcode' element.
> >
> > Adding John Doe
> > Caught SOAPException (SOAP-ENV:Client): A
> > 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
> > 'faultcode' element.
> >
> > Query Mr Doe to make sure it was added
> > Caught SOAPException (SOAP-ENV:Client): A
> > 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
> > 'faultcode' element.
> >
> > Adding an XML file of listings
> > Caught SOAPException (SOAP-ENV:Client): A
> > 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
> > 'faultcode' element.
> >
> > Get everyone!
> > Caught SOAPException (SOAP-ENV:Client): A
> > 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
> > 'faultcode' element.
> >
> > 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(ServiceManagerClien
> t.java:129)
> > at
> >
> org.apache.soap.server.ServiceManagerClient.undeploy(ServiceManagerClient.ja
> va:147)
> > at
> >
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2
> 35)
> >
> > Verify that it's gone
> > 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)
> >
> >
> > --
> > Regards,
> > Oleg Dulin
> > http://www.olegdulin.com/
>
>

--
Regards,
Oleg Dulin
http://www.olegdulin.com/


Re: Can't run samples

Posted by Oleg Dulin <du...@acm.org>.
Thanks, that helped !

On Mon, 25 Jun 2001, Sanjiva Weerawarana wrote:

> Let me guess: you're using Xerces 1.3.1?
>
> If so you need to switch to an up or down version; Xerces 1.3.1 is
> buggy (as noted in the docs and the FAQ and the troubleshooting table).
>
> SAnjiva.
>
> ----- Original Message -----
> From: "Oleg Dulin" <du...@acm.org>
> To: <so...@xml.apache.org>
> Sent: Sunday, June 24, 2001 7:38 PM
> Subject: Re: Can't run samples
>
>
> > > 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.
> >
> > Looks like I solved the "file not found problem". ... God, I hate
> > Windows...
> >
> > testit.sh had ^M characters all over the place and so did
> > DeploymentDescriptor.xml
> >
> > But now I get a different problem... I need help.. Transcript follows:
> >
> > ***************************
> > This test assumes a server URL of
> > http://localhost:8080/soap/servlet/rpcrouter
> > Deploying the addressbook service...
> > 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(ServiceManagerClien
> t.java:129)
> > at
> >
> org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java
> :142)
> > at
> >
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2
> 30)
> >
> > Verify that it's there
> > 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(ServiceManagerCli
> ent.java:129)
> > at
> >
> org.apache.soap.server.ServiceManagerClient.list(ServiceManagerClient.java:1
> 51)
> > at
> >
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2
> 37)
> >
> > Getting info for Mr Good
> > Caught SOAPException (SOAP-ENV:Client): A
> > 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
> > 'faultcode' element.
> >
> > Adding John Doe
> > Caught SOAPException (SOAP-ENV:Client): A
> > 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
> > 'faultcode' element.
> >
> > Query Mr Doe to make sure it was added
> > Caught SOAPException (SOAP-ENV:Client): A
> > 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
> > 'faultcode' element.
> >
> > Adding an XML file of listings
> > Caught SOAPException (SOAP-ENV:Client): A
> > 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
> > 'faultcode' element.
> >
> > Get everyone!
> > Caught SOAPException (SOAP-ENV:Client): A
> > 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
> > 'faultcode' element.
> >
> > 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(ServiceManagerClien
> t.java:129)
> > at
> >
> org.apache.soap.server.ServiceManagerClient.undeploy(ServiceManagerClient.ja
> va:147)
> > at
> >
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2
> 35)
> >
> > Verify that it's gone
> > 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)
> >
> >
> > --
> > Regards,
> > Oleg Dulin
> > http://www.olegdulin.com/
>
>

--
Regards,
Oleg Dulin
http://www.olegdulin.com/


Re: Can't run samples

Posted by Sanjiva Weerawarana <sa...@watson.ibm.com>.
Let me guess: you're using Xerces 1.3.1?

If so you need to switch to an up or down version; Xerces 1.3.1 is
buggy (as noted in the docs and the FAQ and the troubleshooting table).

SAnjiva.

----- Original Message -----
From: "Oleg Dulin" <du...@acm.org>
To: <so...@xml.apache.org>
Sent: Sunday, June 24, 2001 7:38 PM
Subject: Re: Can't run samples


> > 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.
>
> Looks like I solved the "file not found problem". ... God, I hate
> Windows...
>
> testit.sh had ^M characters all over the place and so did
> DeploymentDescriptor.xml
>
> But now I get a different problem... I need help.. Transcript follows:
>
> ***************************
> This test assumes a server URL of
> http://localhost:8080/soap/servlet/rpcrouter
> Deploying the addressbook service...
> 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(ServiceManagerClien
t.java:129)
> at
>
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java
:142)
> at
>
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2
30)
>
> Verify that it's there
> 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(ServiceManagerCli
ent.java:129)
> at
>
org.apache.soap.server.ServiceManagerClient.list(ServiceManagerClient.java:1
51)
> at
>
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2
37)
>
> Getting info for Mr Good
> Caught SOAPException (SOAP-ENV:Client): A
> 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
> 'faultcode' element.
>
> Adding John Doe
> Caught SOAPException (SOAP-ENV:Client): A
> 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
> 'faultcode' element.
>
> Query Mr Doe to make sure it was added
> Caught SOAPException (SOAP-ENV:Client): A
> 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
> 'faultcode' element.
>
> Adding an XML file of listings
> Caught SOAPException (SOAP-ENV:Client): A
> 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
> 'faultcode' element.
>
> Get everyone!
> Caught SOAPException (SOAP-ENV:Client): A
> 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
> 'faultcode' element.
>
> 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(ServiceManagerClien
t.java:129)
> at
>
org.apache.soap.server.ServiceManagerClient.undeploy(ServiceManagerClient.ja
va:147)
> at
>
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2
35)
>
> Verify that it's gone
> 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)
>
>
> --
> Regards,
> Oleg Dulin
> http://www.olegdulin.com/


Re: Can't run samples

Posted by Sanjiva Weerawarana <sa...@watson.ibm.com>.
Let me guess: you're using Xerces 1.3.1?

If so you need to switch to an up or down version; Xerces 1.3.1 is
buggy (as noted in the docs and the FAQ and the troubleshooting table).

SAnjiva.

----- Original Message -----
From: "Oleg Dulin" <du...@acm.org>
To: <so...@xml.apache.org>
Sent: Sunday, June 24, 2001 7:38 PM
Subject: Re: Can't run samples


> > 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.
>
> Looks like I solved the "file not found problem". ... God, I hate
> Windows...
>
> testit.sh had ^M characters all over the place and so did
> DeploymentDescriptor.xml
>
> But now I get a different problem... I need help.. Transcript follows:
>
> ***************************
> This test assumes a server URL of
> http://localhost:8080/soap/servlet/rpcrouter
> Deploying the addressbook service...
> 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(ServiceManagerClien
t.java:129)
> at
>
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java
:142)
> at
>
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2
30)
>
> Verify that it's there
> 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(ServiceManagerCli
ent.java:129)
> at
>
org.apache.soap.server.ServiceManagerClient.list(ServiceManagerClient.java:1
51)
> at
>
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2
37)
>
> Getting info for Mr Good
> Caught SOAPException (SOAP-ENV:Client): A
> 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
> 'faultcode' element.
>
> Adding John Doe
> Caught SOAPException (SOAP-ENV:Client): A
> 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
> 'faultcode' element.
>
> Query Mr Doe to make sure it was added
> Caught SOAPException (SOAP-ENV:Client): A
> 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
> 'faultcode' element.
>
> Adding an XML file of listings
> Caught SOAPException (SOAP-ENV:Client): A
> 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
> 'faultcode' element.
>
> Get everyone!
> Caught SOAPException (SOAP-ENV:Client): A
> 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
> 'faultcode' element.
>
> 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(ServiceManagerClien
t.java:129)
> at
>
org.apache.soap.server.ServiceManagerClient.undeploy(ServiceManagerClient.ja
va:147)
> at
>
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2
35)
>
> Verify that it's gone
> 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)
>
>
> --
> Regards,
> Oleg Dulin
> http://www.olegdulin.com/


I think I know what the problem is -- ^M

Posted by Oleg Dulin <du...@acm.org>.
I checked http://schemas.xmlsoap.org/soap/envelope and found that it also
has ^M . I have a suspicion these characters are confusing Xerces under
Linux.

This is very frustrating. I can't run anything because namespaces don't
get resolved correctly (see my previous post).

Any help would be greatly appreciated.


--
Regards,
Oleg Dulin
http://www.olegdulin.com/


I think I know what the problem is -- ^M

Posted by Oleg Dulin <du...@acm.org>.
I checked http://schemas.xmlsoap.org/soap/envelope and found that it also
has ^M . I have a suspicion these characters are confusing Xerces under
Linux.

This is very frustrating. I can't run anything because namespaces don't
get resolved correctly (see my previous post).

Any help would be greatly appreciated.


--
Regards,
Oleg Dulin
http://www.olegdulin.com/


Re: Can't run samples

Posted by Oleg Dulin <du...@acm.org>.
> 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.

Looks like I solved the "file not found problem". ... God, I hate
Windows...

testit.sh had ^M characters all over the place and so did
DeploymentDescriptor.xml

But now I get a different problem... I need help.. Transcript follows:

***************************
This test assumes a server URL of
http://localhost:8080/soap/servlet/rpcrouter
Deploying the addressbook service...
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.deploy(ServiceManagerClient.java:142)
	at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:230)

Verify that it's there
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(ServiceManagerClient.java:129)
	at
org.apache.soap.server.ServiceManagerClient.list(ServiceManagerClient.java:151)
	at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:237)

Getting info for Mr Good
Caught SOAPException (SOAP-ENV:Client): A
'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
'faultcode' element.

Adding John Doe
Caught SOAPException (SOAP-ENV:Client): A
'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
'faultcode' element.

Query Mr Doe to make sure it was added
Caught SOAPException (SOAP-ENV:Client): A
'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
'faultcode' element.

Adding an XML file of listings
Caught SOAPException (SOAP-ENV:Client): A
'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
'faultcode' element.

Get everyone!
Caught SOAPException (SOAP-ENV:Client): A
'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
'faultcode' element.

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
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(ServiceManagerClient.java:129)
	at
org.apache.soap.server.ServiceManagerClient.list(ServiceManagerClient.java:151)
	at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:237)


--
Regards,
Oleg Dulin
http://www.olegdulin.com/


Re: Can't run samples

Posted by Oleg Dulin <du...@acm.org>.
> 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.

Looks like I solved the "file not found problem". ... God, I hate
Windows...

testit.sh had ^M characters all over the place and so did
DeploymentDescriptor.xml

But now I get a different problem... I need help.. Transcript follows:

***************************
This test assumes a server URL of
http://localhost:8080/soap/servlet/rpcrouter
Deploying the addressbook service...
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.deploy(ServiceManagerClient.java:142)
	at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:230)

Verify that it's there
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(ServiceManagerClient.java:129)
	at
org.apache.soap.server.ServiceManagerClient.list(ServiceManagerClient.java:151)
	at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:237)

Getting info for Mr Good
Caught SOAPException (SOAP-ENV:Client): A
'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
'faultcode' element.

Adding John Doe
Caught SOAPException (SOAP-ENV:Client): A
'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
'faultcode' element.

Query Mr Doe to make sure it was added
Caught SOAPException (SOAP-ENV:Client): A
'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
'faultcode' element.

Adding an XML file of listings
Caught SOAPException (SOAP-ENV:Client): A
'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
'faultcode' element.

Get everyone!
Caught SOAPException (SOAP-ENV:Client): A
'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
'faultcode' element.

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
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(ServiceManagerClient.java:129)
	at
org.apache.soap.server.ServiceManagerClient.list(ServiceManagerClient.java:151)
	at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:237)


--
Regards,
Oleg Dulin
http://www.olegdulin.com/