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 yogesh palavalli <yo...@varros.com> on 2001/03/22 17:13:34 UTC
Any one from Apache/SOAP group can you help us? -> Java Exception while executing SOAP Client
Hello,
I see lot of people with the same problem. I think either we all are very
bad at reading the document or the document for using the samples is not
sufficient. SO, please any one from development group of SOAP/Apache can you
help us in this problem?
I will be very thankful to you.
yogesh.
Varros Telecom,
Addison TX 75001
-----Original Message-----
From: Andrea Grasserbauer [mailto:a.grasserbauer@coco.co.at]
Sent: Thursday, March 22, 2001 3:57 AM
To: soap-user@xml.apache.org; yogi@varros.com
Subject: Re: Java Exception while executing SOAP Client
hi,
could you tell me if you solved the faultcode problem and how?
thanks
andrea
----- Original Message -----
From: yogesh palavalli <yo...@varros.com>
To: <so...@xml.apache.org>
Sent: Wednesday, March 21, 2001 10:13 PM
Subject: RE: Java Exception while executing SOAP Client
> thanks, Silvio, yea I was able to solve that problem. Now I get
>
> 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.Il
> legalArgumentException: A
'http://schemas.xmlsoap.org/soap/envelope/:Fault'
> element must contain a:
> 'faultcode' element.]
>
> what is the problem now?
>
>
> thanks n regards,
> yogesh.
>
> -----Original Message-----
> From: Silvio Fiorito [mailto:silvio@ntr.net]
> Sent: Wednesday, March 21, 2001 1:13 PM
> To: soap-user@xml.apache.org
> Subject: RE: Java Exception while executing SOAP Client
>
>
> You need to include the root of your SOAP install dir in your CLASSPATH so
> that Java can find the samples.
>
> As stated in the installation docs:
> "Classpath: Add /foo/soap-2_0/lib/soap.jar to your classpath. If you want
to
> run the samples, you also need to add /foo/soap-2_0 to your classpath."
>
> Silvio
>
> -----Original Message-----
> From: yogesh palavalli [mailto:yogi@varros.com]
> Sent: Wednesday, March 21, 2001 11:26 AM
> To: Soap-User; SOAP@DISCUSS.DEVELOP.COM
> Subject: Java Exception while executing SOAP Client
>
>
> Hello people,
>
> I am getting this exception when I execute any soap client samples. This
is
> what I get
>
> java samples.addressbook.GetAddress
> http://localhost:8100/xml-soap/servlet/rpcrouter "John B. Good"
> output was: Exception in thread "main" java.lang.NoClassDefFoundError:
> samples/addressbook/GetAddress
> class path is
>
CLASSPATH=d:\javafiles\xerces.jar;d:\javafiles\soap.jar;d:\javafiles\mail.ja
> r;d:\javafiles\activation.jar;
>
> AM I MISSING SOMETHING? this exception comes to all soap samples, so I
> assume it is some setting problem, ANY help? IS it Java setting problem or
> soap setting problem?
>
> if you want more information, here it is
>
> I have deployed the soap service using soap admin and it is as follows
> -----begin info---
>
> 'urn:AddressFetcher' Service Deployment Descriptor
>
> Property Details ID urn:AddressFetcher
>
> Scope Application Provider Type java
>
> Provider Class samples.addressbook.AddressBook
>
> Use Static Class false
>
> Methods getAddressFromName, addEntry,
> getAllListings, putListings
>
> Type Mappings [TypeMapping
> encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,
>
> elementType=urn:xml-soap-address-demo:x:address,
> javaType=samples.addressbook.Address,
>
> java2XMLClassName=org.apache.soap.encoding.soapenc.BeanSerializer,
>
> xml2JavaClassName=org.apache.soap.encoding.soapenc.BeanSerializer]
> [eMapping
> encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,
>
> elementType=urn:xml-soap-address-demo:x:phone,
>
javaType=samples.addressbook.PhoneNumber,
>
> java2XMLClassName=org.apache.soap.encoding.soapenc.BeanSerializer,
>
> xml2JavaClassName=org.apache.soap.encoding.soapenc.BeanSerializer]
>
> Default Mapping Registry Class org.apache.soap.server.DOMFaultListener
>
> ----end info------
>
> when I try deploying from command line this is what I got
>
> command: java org.apache.soap.server.ServiceManagerClient
> http://localhost:8100/xml-soap/servlet/rpcrouter deploy
> DeploymentDescriptor.xml
>
> output: 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:244)
> at
>
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClien
> t.java:127)
> at
>
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java
> :140)
> at
>
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2
> 28)
>
>
> does it help to find what is wrong?
>
> need help on this, if you dont know at least point to some resource I can
> find the solution, that will be great help to me.
>
> thanks n Regards,
> yogesh.
> Varros Telecom
> Addison TX 75001
>
>
RE: Any one from Apache/SOAP group can you help us? -> Java Exception while executing SOAP Client
Posted by yogesh palavalli <yo...@varros.com>.
I will try thanks,
yogesh.
If you are using the 1.3.1 version of xerces, go back to version 1.2.3.
SOAP seems to have some problems with xerces 1.3.1.
Eugene
> -----Original Message-----
> From: yogesh palavalli [mailto:yogi@varros.com]
> Sent: Friday, March 23, 2001 12:14 AM
> To: SOAP@DISCUSS.DEVELOP.COM; soap-user@xml.apache.org
> Subject: Any one from Apache/SOAP group can you help us? -> Java
Exception
> while executing SOAP Client
>
> Hello,
>
> I see lot of people with the same problem. I think either we all are
very
> bad at reading the document or the document for using the samples is
not
> sufficient. SO, please any one from development group of SOAP/Apache
can
> you
> help us in this problem?
>
> I will be very thankful to you.
>
> yogesh.
> Varros Telecom,
> Addison TX 75001
>
> -----Original Message-----
> From: Andrea Grasserbauer [mailto:a.grasserbauer@coco.co.at]
> Sent: Thursday, March 22, 2001 3:57 AM
> To: soap-user@xml.apache.org; yogi@varros.com
> Subject: Re: Java Exception while executing SOAP Client
>
>
> hi,
>
> could you tell me if you solved the faultcode problem and how?
>
> thanks
> andrea
>
> ----- Original Message -----
> From: yogesh palavalli <yo...@varros.com>
> To: <so...@xml.apache.org>
> Sent: Wednesday, March 21, 2001 10:13 PM
> Subject: RE: Java Exception while executing SOAP Client
>
>
> > thanks, Silvio, yea I was able to solve that problem. Now I get
> >
> > 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.Il
> > legalArgumentException: A
> 'http://schemas.xmlsoap.org/soap/envelope/:Fault'
> > element must contain a:
> > 'faultcode' element.]
> >
> > what is the problem now?
> >
> >
> > thanks n regards,
> > yogesh.
> >
> > -----Original Message-----
> > From: Silvio Fiorito [mailto:silvio@ntr.net]
> > Sent: Wednesday, March 21, 2001 1:13 PM
> > To: soap-user@xml.apache.org
> > Subject: RE: Java Exception while executing SOAP Client
> >
> >
> > You need to include the root of your SOAP install dir in your
CLASSPATH
> so
> > that Java can find the samples.
> >
> > As stated in the installation docs:
> > "Classpath: Add /foo/soap-2_0/lib/soap.jar to your classpath. If you
> want
> to
> > run the samples, you also need to add /foo/soap-2_0 to your
classpath."
> >
> > Silvio
> >
> > -----Original Message-----
> > From: yogesh palavalli [mailto:yogi@varros.com]
> > Sent: Wednesday, March 21, 2001 11:26 AM
> > To: Soap-User; SOAP@DISCUSS.DEVELOP.COM
> > Subject: Java Exception while executing SOAP Client
> >
> >
> > Hello people,
> >
> > I am getting this exception when I execute any soap client samples.
This
> is
> > what I get
> >
> > java samples.addressbook.GetAddress
> > http://localhost:8100/xml-soap/servlet/rpcrouter "John B. Good"
> > output was: Exception in thread "main"
java.lang.NoClassDefFoundError:
> > samples/addressbook/GetAddress
> > class path is
> >
>
CLASSPATH=d:\javafiles\xerces.jar;d:\javafiles\soap.jar;d:\javafiles\mai
l.
> ja
> > r;d:\javafiles\activation.jar;
> >
> > AM I MISSING SOMETHING? this exception comes to all soap samples, so
I
> > assume it is some setting problem, ANY help? IS it Java setting
problem
> or
> > soap setting problem?
> >
> > if you want more information, here it is
> >
> > I have deployed the soap service using soap admin and it is as
follows
> > -----begin info---
> >
> > 'urn:AddressFetcher' Service Deployment Descriptor
> >
> > Property Details ID urn:AddressFetcher
> >
> > Scope Application Provider Type java
> >
> > Provider Class samples.addressbook.AddressBook
> >
> > Use Static Class false
> >
> > Methods getAddressFromName, addEntry,
> > getAllListings, putListings
> >
> > Type Mappings [TypeMapping
> > encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,
> >
> > elementType=urn:xml-soap-address-demo:x:address,
> >
javaType=samples.addressbook.Address,
> >
> > java2XMLClassName=org.apache.soap.encoding.soapenc.BeanSerializer,
> >
> > xml2JavaClassName=org.apache.soap.encoding.soapenc.BeanSerializer]
> > [eMapping
> > encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,
> >
> > elementType=urn:xml-soap-address-demo:x:phone,
> >
> javaType=samples.addressbook.PhoneNumber,
> >
> > java2XMLClassName=org.apache.soap.encoding.soapenc.BeanSerializer,
> >
> > xml2JavaClassName=org.apache.soap.encoding.soapenc.BeanSerializer]
> >
> > Default Mapping Registry Class
org.apache.soap.server.DOMFaultListener
> >
> > ----end info------
> >
> > when I try deploying from command line this is what I got
> >
> > command: java org.apache.soap.server.ServiceManagerClient
> > http://localhost:8100/xml-soap/servlet/rpcrouter deploy
> > DeploymentDescriptor.xml
> >
> > output: 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:244)
> > at
> >
>
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerC
li
> en
> > t.java:127)
> > at
> >
>
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.
ja
> va
> > :140)
> > at
> >
>
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.ja
va
> :2
> > 28)
> >
> >
> > does it help to find what is wrong?
> >
> > need help on this, if you dont know at least point to some resource
I
> can
> > find the solution, that will be great help to me.
> >
> > thanks n Regards,
> > yogesh.
> > Varros Telecom
> > Addison TX 75001
> >
> >
RE: Any one from Apache/SOAP group can you help us? -> Java Exception while executing SOAP Client
Posted by yogesh palavalli <yo...@varros.com>.
I will try thanks,
yogesh.
If you are using the 1.3.1 version of xerces, go back to version 1.2.3.
SOAP seems to have some problems with xerces 1.3.1.
Eugene
> -----Original Message-----
> From: yogesh palavalli [mailto:yogi@varros.com]
> Sent: Friday, March 23, 2001 12:14 AM
> To: SOAP@DISCUSS.DEVELOP.COM; soap-user@xml.apache.org
> Subject: Any one from Apache/SOAP group can you help us? -> Java
Exception
> while executing SOAP Client
>
> Hello,
>
> I see lot of people with the same problem. I think either we all are
very
> bad at reading the document or the document for using the samples is
not
> sufficient. SO, please any one from development group of SOAP/Apache
can
> you
> help us in this problem?
>
> I will be very thankful to you.
>
> yogesh.
> Varros Telecom,
> Addison TX 75001
>
> -----Original Message-----
> From: Andrea Grasserbauer [mailto:a.grasserbauer@coco.co.at]
> Sent: Thursday, March 22, 2001 3:57 AM
> To: soap-user@xml.apache.org; yogi@varros.com
> Subject: Re: Java Exception while executing SOAP Client
>
>
> hi,
>
> could you tell me if you solved the faultcode problem and how?
>
> thanks
> andrea
>
> ----- Original Message -----
> From: yogesh palavalli <yo...@varros.com>
> To: <so...@xml.apache.org>
> Sent: Wednesday, March 21, 2001 10:13 PM
> Subject: RE: Java Exception while executing SOAP Client
>
>
> > thanks, Silvio, yea I was able to solve that problem. Now I get
> >
> > 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.Il
> > legalArgumentException: A
> 'http://schemas.xmlsoap.org/soap/envelope/:Fault'
> > element must contain a:
> > 'faultcode' element.]
> >
> > what is the problem now?
> >
> >
> > thanks n regards,
> > yogesh.
> >
> > -----Original Message-----
> > From: Silvio Fiorito [mailto:silvio@ntr.net]
> > Sent: Wednesday, March 21, 2001 1:13 PM
> > To: soap-user@xml.apache.org
> > Subject: RE: Java Exception while executing SOAP Client
> >
> >
> > You need to include the root of your SOAP install dir in your
CLASSPATH
> so
> > that Java can find the samples.
> >
> > As stated in the installation docs:
> > "Classpath: Add /foo/soap-2_0/lib/soap.jar to your classpath. If you
> want
> to
> > run the samples, you also need to add /foo/soap-2_0 to your
classpath."
> >
> > Silvio
> >
> > -----Original Message-----
> > From: yogesh palavalli [mailto:yogi@varros.com]
> > Sent: Wednesday, March 21, 2001 11:26 AM
> > To: Soap-User; SOAP@DISCUSS.DEVELOP.COM
> > Subject: Java Exception while executing SOAP Client
> >
> >
> > Hello people,
> >
> > I am getting this exception when I execute any soap client samples.
This
> is
> > what I get
> >
> > java samples.addressbook.GetAddress
> > http://localhost:8100/xml-soap/servlet/rpcrouter "John B. Good"
> > output was: Exception in thread "main"
java.lang.NoClassDefFoundError:
> > samples/addressbook/GetAddress
> > class path is
> >
>
CLASSPATH=d:\javafiles\xerces.jar;d:\javafiles\soap.jar;d:\javafiles\mai
l.
> ja
> > r;d:\javafiles\activation.jar;
> >
> > AM I MISSING SOMETHING? this exception comes to all soap samples, so
I
> > assume it is some setting problem, ANY help? IS it Java setting
problem
> or
> > soap setting problem?
> >
> > if you want more information, here it is
> >
> > I have deployed the soap service using soap admin and it is as
follows
> > -----begin info---
> >
> > 'urn:AddressFetcher' Service Deployment Descriptor
> >
> > Property Details ID urn:AddressFetcher
> >
> > Scope Application Provider Type java
> >
> > Provider Class samples.addressbook.AddressBook
> >
> > Use Static Class false
> >
> > Methods getAddressFromName, addEntry,
> > getAllListings, putListings
> >
> > Type Mappings [TypeMapping
> > encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,
> >
> > elementType=urn:xml-soap-address-demo:x:address,
> >
javaType=samples.addressbook.Address,
> >
> > java2XMLClassName=org.apache.soap.encoding.soapenc.BeanSerializer,
> >
> > xml2JavaClassName=org.apache.soap.encoding.soapenc.BeanSerializer]
> > [eMapping
> > encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,
> >
> > elementType=urn:xml-soap-address-demo:x:phone,
> >
> javaType=samples.addressbook.PhoneNumber,
> >
> > java2XMLClassName=org.apache.soap.encoding.soapenc.BeanSerializer,
> >
> > xml2JavaClassName=org.apache.soap.encoding.soapenc.BeanSerializer]
> >
> > Default Mapping Registry Class
org.apache.soap.server.DOMFaultListener
> >
> > ----end info------
> >
> > when I try deploying from command line this is what I got
> >
> > command: java org.apache.soap.server.ServiceManagerClient
> > http://localhost:8100/xml-soap/servlet/rpcrouter deploy
> > DeploymentDescriptor.xml
> >
> > output: 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:244)
> > at
> >
>
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerC
li
> en
> > t.java:127)
> > at
> >
>
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.
ja
> va
> > :140)
> > at
> >
>
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.ja
va
> :2
> > 28)
> >
> >
> > does it help to find what is wrong?
> >
> > need help on this, if you dont know at least point to some resource
I
> can
> > find the solution, that will be great help to me.
> >
> > thanks n Regards,
> > yogesh.
> > Varros Telecom
> > Addison TX 75001
> >
> >
RE: Any one from Apache/SOAP group can you help us? -> Java Exception while executing SOAP Client
Posted by Eugene Huang <eu...@guppy.mpe.nus.edu.sg>.
If you are using the 1.3.1 version of xerces, go back to version 1.2.3.
SOAP seems to have some problems with xerces 1.3.1.
Eugene
> -----Original Message-----
> From: yogesh palavalli [mailto:yogi@varros.com]
> Sent: Friday, March 23, 2001 12:14 AM
> To: SOAP@DISCUSS.DEVELOP.COM; soap-user@xml.apache.org
> Subject: Any one from Apache/SOAP group can you help us? -> Java
Exception
> while executing SOAP Client
>
> Hello,
>
> I see lot of people with the same problem. I think either we all are
very
> bad at reading the document or the document for using the samples is
not
> sufficient. SO, please any one from development group of SOAP/Apache
can
> you
> help us in this problem?
>
> I will be very thankful to you.
>
> yogesh.
> Varros Telecom,
> Addison TX 75001
>
> -----Original Message-----
> From: Andrea Grasserbauer [mailto:a.grasserbauer@coco.co.at]
> Sent: Thursday, March 22, 2001 3:57 AM
> To: soap-user@xml.apache.org; yogi@varros.com
> Subject: Re: Java Exception while executing SOAP Client
>
>
> hi,
>
> could you tell me if you solved the faultcode problem and how?
>
> thanks
> andrea
>
> ----- Original Message -----
> From: yogesh palavalli <yo...@varros.com>
> To: <so...@xml.apache.org>
> Sent: Wednesday, March 21, 2001 10:13 PM
> Subject: RE: Java Exception while executing SOAP Client
>
>
> > thanks, Silvio, yea I was able to solve that problem. Now I get
> >
> > 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.Il
> > legalArgumentException: A
> 'http://schemas.xmlsoap.org/soap/envelope/:Fault'
> > element must contain a:
> > 'faultcode' element.]
> >
> > what is the problem now?
> >
> >
> > thanks n regards,
> > yogesh.
> >
> > -----Original Message-----
> > From: Silvio Fiorito [mailto:silvio@ntr.net]
> > Sent: Wednesday, March 21, 2001 1:13 PM
> > To: soap-user@xml.apache.org
> > Subject: RE: Java Exception while executing SOAP Client
> >
> >
> > You need to include the root of your SOAP install dir in your
CLASSPATH
> so
> > that Java can find the samples.
> >
> > As stated in the installation docs:
> > "Classpath: Add /foo/soap-2_0/lib/soap.jar to your classpath. If you
> want
> to
> > run the samples, you also need to add /foo/soap-2_0 to your
classpath."
> >
> > Silvio
> >
> > -----Original Message-----
> > From: yogesh palavalli [mailto:yogi@varros.com]
> > Sent: Wednesday, March 21, 2001 11:26 AM
> > To: Soap-User; SOAP@DISCUSS.DEVELOP.COM
> > Subject: Java Exception while executing SOAP Client
> >
> >
> > Hello people,
> >
> > I am getting this exception when I execute any soap client samples.
This
> is
> > what I get
> >
> > java samples.addressbook.GetAddress
> > http://localhost:8100/xml-soap/servlet/rpcrouter "John B. Good"
> > output was: Exception in thread "main"
java.lang.NoClassDefFoundError:
> > samples/addressbook/GetAddress
> > class path is
> >
>
CLASSPATH=d:\javafiles\xerces.jar;d:\javafiles\soap.jar;d:\javafiles\mai
l.
> ja
> > r;d:\javafiles\activation.jar;
> >
> > AM I MISSING SOMETHING? this exception comes to all soap samples, so
I
> > assume it is some setting problem, ANY help? IS it Java setting
problem
> or
> > soap setting problem?
> >
> > if you want more information, here it is
> >
> > I have deployed the soap service using soap admin and it is as
follows
> > -----begin info---
> >
> > 'urn:AddressFetcher' Service Deployment Descriptor
> >
> > Property Details ID urn:AddressFetcher
> >
> > Scope Application Provider Type java
> >
> > Provider Class samples.addressbook.AddressBook
> >
> > Use Static Class false
> >
> > Methods getAddressFromName, addEntry,
> > getAllListings, putListings
> >
> > Type Mappings [TypeMapping
> > encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,
> >
> > elementType=urn:xml-soap-address-demo:x:address,
> >
javaType=samples.addressbook.Address,
> >
> > java2XMLClassName=org.apache.soap.encoding.soapenc.BeanSerializer,
> >
> > xml2JavaClassName=org.apache.soap.encoding.soapenc.BeanSerializer]
> > [eMapping
> > encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,
> >
> > elementType=urn:xml-soap-address-demo:x:phone,
> >
> javaType=samples.addressbook.PhoneNumber,
> >
> > java2XMLClassName=org.apache.soap.encoding.soapenc.BeanSerializer,
> >
> > xml2JavaClassName=org.apache.soap.encoding.soapenc.BeanSerializer]
> >
> > Default Mapping Registry Class
org.apache.soap.server.DOMFaultListener
> >
> > ----end info------
> >
> > when I try deploying from command line this is what I got
> >
> > command: java org.apache.soap.server.ServiceManagerClient
> > http://localhost:8100/xml-soap/servlet/rpcrouter deploy
> > DeploymentDescriptor.xml
> >
> > output: 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:244)
> > at
> >
>
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerC
li
> en
> > t.java:127)
> > at
> >
>
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.
ja
> va
> > :140)
> > at
> >
>
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.ja
va
> :2
> > 28)
> >
> >
> > does it help to find what is wrong?
> >
> > need help on this, if you dont know at least point to some resource
I
> can
> > find the solution, that will be great help to me.
> >
> > thanks n Regards,
> > yogesh.
> > Varros Telecom
> > Addison TX 75001
> >
> >
RE: Any one from Apache/SOAP group can you help us? -> Java Exception while executing SOAP Client
Posted by Eugene Huang <eu...@guppy.mpe.nus.edu.sg>.
If you are using the 1.3.1 version of xerces, go back to version 1.2.3.
SOAP seems to have some problems with xerces 1.3.1.
Eugene
> -----Original Message-----
> From: yogesh palavalli [mailto:yogi@varros.com]
> Sent: Friday, March 23, 2001 12:14 AM
> To: SOAP@DISCUSS.DEVELOP.COM; soap-user@xml.apache.org
> Subject: Any one from Apache/SOAP group can you help us? -> Java
Exception
> while executing SOAP Client
>
> Hello,
>
> I see lot of people with the same problem. I think either we all are
very
> bad at reading the document or the document for using the samples is
not
> sufficient. SO, please any one from development group of SOAP/Apache
can
> you
> help us in this problem?
>
> I will be very thankful to you.
>
> yogesh.
> Varros Telecom,
> Addison TX 75001
>
> -----Original Message-----
> From: Andrea Grasserbauer [mailto:a.grasserbauer@coco.co.at]
> Sent: Thursday, March 22, 2001 3:57 AM
> To: soap-user@xml.apache.org; yogi@varros.com
> Subject: Re: Java Exception while executing SOAP Client
>
>
> hi,
>
> could you tell me if you solved the faultcode problem and how?
>
> thanks
> andrea
>
> ----- Original Message -----
> From: yogesh palavalli <yo...@varros.com>
> To: <so...@xml.apache.org>
> Sent: Wednesday, March 21, 2001 10:13 PM
> Subject: RE: Java Exception while executing SOAP Client
>
>
> > thanks, Silvio, yea I was able to solve that problem. Now I get
> >
> > 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.Il
> > legalArgumentException: A
> 'http://schemas.xmlsoap.org/soap/envelope/:Fault'
> > element must contain a:
> > 'faultcode' element.]
> >
> > what is the problem now?
> >
> >
> > thanks n regards,
> > yogesh.
> >
> > -----Original Message-----
> > From: Silvio Fiorito [mailto:silvio@ntr.net]
> > Sent: Wednesday, March 21, 2001 1:13 PM
> > To: soap-user@xml.apache.org
> > Subject: RE: Java Exception while executing SOAP Client
> >
> >
> > You need to include the root of your SOAP install dir in your
CLASSPATH
> so
> > that Java can find the samples.
> >
> > As stated in the installation docs:
> > "Classpath: Add /foo/soap-2_0/lib/soap.jar to your classpath. If you
> want
> to
> > run the samples, you also need to add /foo/soap-2_0 to your
classpath."
> >
> > Silvio
> >
> > -----Original Message-----
> > From: yogesh palavalli [mailto:yogi@varros.com]
> > Sent: Wednesday, March 21, 2001 11:26 AM
> > To: Soap-User; SOAP@DISCUSS.DEVELOP.COM
> > Subject: Java Exception while executing SOAP Client
> >
> >
> > Hello people,
> >
> > I am getting this exception when I execute any soap client samples.
This
> is
> > what I get
> >
> > java samples.addressbook.GetAddress
> > http://localhost:8100/xml-soap/servlet/rpcrouter "John B. Good"
> > output was: Exception in thread "main"
java.lang.NoClassDefFoundError:
> > samples/addressbook/GetAddress
> > class path is
> >
>
CLASSPATH=d:\javafiles\xerces.jar;d:\javafiles\soap.jar;d:\javafiles\mai
l.
> ja
> > r;d:\javafiles\activation.jar;
> >
> > AM I MISSING SOMETHING? this exception comes to all soap samples, so
I
> > assume it is some setting problem, ANY help? IS it Java setting
problem
> or
> > soap setting problem?
> >
> > if you want more information, here it is
> >
> > I have deployed the soap service using soap admin and it is as
follows
> > -----begin info---
> >
> > 'urn:AddressFetcher' Service Deployment Descriptor
> >
> > Property Details ID urn:AddressFetcher
> >
> > Scope Application Provider Type java
> >
> > Provider Class samples.addressbook.AddressBook
> >
> > Use Static Class false
> >
> > Methods getAddressFromName, addEntry,
> > getAllListings, putListings
> >
> > Type Mappings [TypeMapping
> > encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,
> >
> > elementType=urn:xml-soap-address-demo:x:address,
> >
javaType=samples.addressbook.Address,
> >
> > java2XMLClassName=org.apache.soap.encoding.soapenc.BeanSerializer,
> >
> > xml2JavaClassName=org.apache.soap.encoding.soapenc.BeanSerializer]
> > [eMapping
> > encodingStyle=http://schemas.xmlsoap.org/soap/encoding/,
> >
> > elementType=urn:xml-soap-address-demo:x:phone,
> >
> javaType=samples.addressbook.PhoneNumber,
> >
> > java2XMLClassName=org.apache.soap.encoding.soapenc.BeanSerializer,
> >
> > xml2JavaClassName=org.apache.soap.encoding.soapenc.BeanSerializer]
> >
> > Default Mapping Registry Class
org.apache.soap.server.DOMFaultListener
> >
> > ----end info------
> >
> > when I try deploying from command line this is what I got
> >
> > command: java org.apache.soap.server.ServiceManagerClient
> > http://localhost:8100/xml-soap/servlet/rpcrouter deploy
> > DeploymentDescriptor.xml
> >
> > output: 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:244)
> > at
> >
>
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerC
li
> en
> > t.java:127)
> > at
> >
>
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.
ja
> va
> > :140)
> > at
> >
>
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.ja
va
> :2
> > 28)
> >
> >
> > does it help to find what is wrong?
> >
> > need help on this, if you dont know at least point to some resource
I
> can
> > find the solution, that will be great help to me.
> >
> > thanks n Regards,
> > yogesh.
> > Varros Telecom
> > Addison TX 75001
> >
> >