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 Jun Xie <jx...@innovationsforum.de> on 2003/04/16 15:31:00 UTC
Error: No Deserializer found
Hi All,
I have read reports about this issue in internet, but could not find the
answer. Maybe you can help me.
I installed Tomcat4.1 and SOAP2.3.1 on winXP. I got the right response
if I tested with http://localhost:8008/soap/servlet/rpcrouter, and I
could deploy the sample addressbook. But when I did the following test,
it failed. Thank you very much.
>set
CLASSPATH=c:\soap-pack\soap.jar;c:\soap-pack\activation.jar;c:\soap-pack
\mail.ja
r;c:\soap-pack\xerces.jar;C:\Programme\Apache Group\Tomcat
4.1\common\endorsed\x
ercesImpl.jar;C:\Programme\Apache Group\Tomcat
4.1\common\endorsed\xmlParserAPI.
jar;..\..;C:\j2sdk1.4.1_02\lib\tools.jar
>C:\downloads\soap-bin-2.3.1\soap-2_3_1\samples\addressbook>java
org.apache.soap.
server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter
list
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
msg=No Des
erializer found to deserialize a ':return' using encoding style
'http://schemas.
xmlsoap.org/soap/encoding/'.;
targetException=java.lang.IllegalArgumentException
: No Deserializer found to deserialize a ':return' using encoding style
'http://
schemas.xmlsoap.org/soap/encoding/'.]
at org.apache.soap.rpc.Call.invoke(Call.java:244)
at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManag
erClient.java:127)
at
org.apache.soap.server.ServiceManagerClient.list(ServiceManagerClient
.java:149)
at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
.java:235)
Re: AW: Error: No Deserializer found
Posted by Scott Nichol <sn...@scottnichol.com>.
You *must* have both xmlParserAPIs.jar *and* xercesImpl.jar in your
classpath. You should *not* mix xmlParserAPIs.jar with xerces.jar.
On 16 Apr 2003 at 17:10, Jun Xie wrote:
> Hello Scott,
>
> Thank you for your reply. When I followed your tip, I got the error:
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/xerces/fra
> mework/XMLParser
> at org.apache.soap.rpc.Call.<init>(Call.java:85)
> at org.apache.soap.rpc.Call.<init>(Call.java:97)
> at org.apache.soap.rpc.Call.<init>(Call.java:91)
> at
> org.apache.soap.server.ServiceManagerClient.<init>(ServiceManagerClie
> nt.java:79)
> at
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
> .java:214)
>
> Then I put the xerces.jar at the end of the classpath, but got error
> again:
>
> Exception in thread "main" java.lang.VerifyError: (class:
> org/apache/soap/util/x
> ml/XercesParserLiaison, method: read signature:
> (Ljava/lang/String;Ljava/io/Read
> er;)Lorg/w3c/dom/Document;) Incompatible object argument for function
> call
> at org.apache.soap.rpc.Call.<init>(Call.java:85)
> at org.apache.soap.rpc.Call.<init>(Call.java:97)
> at org.apache.soap.rpc.Call.<init>(Call.java:91)
> at
> org.apache.soap.server.ServiceManagerClient.<init>(ServiceManagerClie
> nt.java:79)
> at
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
> .java:214)
>
> any idea? (I use xerces 1.2.0)
>
> Thanks
> ---
> Jun
>
> -----Ursprüngliche Nachricht-----
> Von: Scott Nichol [mailto:snicholnews@scottnichol.com]
> Gesendet: Mittwoch, 16. April 2003 16:14
> An: soap-user@ws.apache.org
> Betreff: Re: Error: No Deserializer found
>
> Try removing the xerces.jar from your classpath and adding the
> xercesImpl.jar that's in the Tomcat directories.
>
> On 16 Apr 2003 at 15:31, Jun Xie wrote:
>
> > Hi All,
> >
> >
> >
> > I have read reports about this issue in internet, but could not find
> the
> > answer. Maybe you can help me.
> >
> >
> >
> > I installed Tomcat4.1 and SOAP2.3.1 on winXP. I got the right response
> > if I tested with http://localhost:8008/soap/servlet/rpcrouter, and I
> > could deploy the sample addressbook. But when I did the following
> test,
> > it failed. Thank you very much.
> >
> >
> >
> > >set
> >
> >
> CLASSPATH=c:\soap-pack\soap.jar;c:\soap-pack\activation.jar;c:\soap-pack
> > \mail.ja
> >
> > r;c:\soap-pack\xerces.jar;C:\Programme\Apache Group\Tomcat
> > 4.1\common\endorsed\x
> >
> > ercesImpl.jar;C:\Programme\Apache Group\Tomcat
> > 4.1\common\endorsed\xmlParserAPI.
> >
> > jar;..\..;C:\j2sdk1.4.1_02\lib\tools.jar
> >
> >
> >
> > >C:\downloads\soap-bin-2.3.1\soap-2_3_1\samples\addressbook>java
> > org.apache.soap.
> >
> > server.ServiceManagerClient
> http://localhost:8080/soap/servlet/rpcrouter
> > list
> >
> > Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
> > msg=No Des
> >
> > erializer found to deserialize a ':return' using encoding style
> > 'http://schemas.
> >
> > xmlsoap.org/soap/encoding/'.;
> > targetException=java.lang.IllegalArgumentException
> >
> > : No Deserializer found to deserialize a ':return' using encoding
> style
> > 'http://
> >
> > schemas.xmlsoap.org/soap/encoding/'.]
> >
> > at org.apache.soap.rpc.Call.invoke(Call.java:244)
> >
> > at
> > org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManag
> >
> > erClient.java:127)
> >
> > at
> > org.apache.soap.server.ServiceManagerClient.list(ServiceManagerClient
> >
> > .java:149)
> >
> > at
> > org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
> >
> > .java:235)
> >
> >
>
>
> Scott Nichol
>
> Do not reply directly to this e-mail address,
> as it is filtered to only receive e-mail from
> specific mailing lists.
>
>
>
>
Scott Nichol
Do not reply directly to this e-mail address,
as it is filtered to only receive e-mail from
specific mailing lists.
Re: Error: No Deserializer found
Posted by Scott Nichol <sn...@scottnichol.com>.
Try removing the xerces.jar from your classpath and adding the
xercesImpl.jar that's in the Tomcat directories.
On 16 Apr 2003 at 15:31, Jun Xie wrote:
> Hi All,
>
>
>
> I have read reports about this issue in internet, but could not find the
> answer. Maybe you can help me.
>
>
>
> I installed Tomcat4.1 and SOAP2.3.1 on winXP. I got the right response
> if I tested with http://localhost:8008/soap/servlet/rpcrouter, and I
> could deploy the sample addressbook. But when I did the following test,
> it failed. Thank you very much.
>
>
>
> >set
>
> CLASSPATH=c:\soap-pack\soap.jar;c:\soap-pack\activation.jar;c:\soap-pack
> \mail.ja
>
> r;c:\soap-pack\xerces.jar;C:\Programme\Apache Group\Tomcat
> 4.1\common\endorsed\x
>
> ercesImpl.jar;C:\Programme\Apache Group\Tomcat
> 4.1\common\endorsed\xmlParserAPI.
>
> jar;..\..;C:\j2sdk1.4.1_02\lib\tools.jar
>
>
>
> >C:\downloads\soap-bin-2.3.1\soap-2_3_1\samples\addressbook>java
> org.apache.soap.
>
> server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter
> list
>
> Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
> msg=No Des
>
> erializer found to deserialize a ':return' using encoding style
> 'http://schemas.
>
> xmlsoap.org/soap/encoding/'.;
> targetException=java.lang.IllegalArgumentException
>
> : No Deserializer found to deserialize a ':return' using encoding style
> 'http://
>
> schemas.xmlsoap.org/soap/encoding/'.]
>
> at org.apache.soap.rpc.Call.invoke(Call.java:244)
>
> at
> org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManag
>
> erClient.java:127)
>
> at
> org.apache.soap.server.ServiceManagerClient.list(ServiceManagerClient
>
> .java:149)
>
> at
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
>
> .java:235)
>
>
Scott Nichol
Do not reply directly to this e-mail address,
as it is filtered to only receive e-mail from
specific mailing lists.