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 Harshad Nanal <ha...@mahindrabt.com> on 2001/05/06 08:03:22 UTC
[Fwd: SOAP and EJBs]
Hi
I could progress further using soap2.1
I had error in connecting to weblogic - that is rectified.
My client had a mismatching method of ejb being called. (ejb had
hello(sting s) and I was calling hello()) That is also rectified.
Now I get error called as
Fault Code = SOAP-ENV:Server
Fault String = java.lang.IllegalArgumentException: No Serializer found
to serialize a 'org.apache.soap.rpc.Parameter' using encoding style
'null'.
on tomcat server it logs upto Template.Invoke
Can you please help me further
Re: [Fwd: SOAP and EJBs]
Posted by Harshad Nanal <ha...@mahindrabt.com>.
Hi All
I could solve the error
Error was :
Fault Code = SOAP-ENV:Server
>
> Fault String = java.lang.IllegalArgumentException: No Serializer found
> to serialize a 'org.apache.soap.rpc.Parameter' using encoding style
> 'null'.
>
Solution is : Apache tools samples/ejb/testejb code does not include the
statement
call.setEncodingStyleURI( Constants.NS_URI_SOAP_ENC );
on adding this statement, I made a successful call to stateless EJB on
weblogic 5.1 from tomcat 3.2.1/ soap2.1/xerces1.2.3
Thanks to all for your support.
Harshad Nanal wrote:
>
> Hi
>
> I could progress further using soap2.1
>
> I had error in connecting to weblogic - that is rectified.
> My client had a mismatching method of ejb being called. (ejb had
> hello(sting s) and I was calling hello()) That is also rectified.
>
> Now I get error called as
> Fault Code = SOAP-ENV:Server
>
> Fault String = java.lang.IllegalArgumentException: No Serializer found
> to serialize a 'org.apache.soap.rpc.Parameter' using encoding style
> 'null'.
>
> on tomcat server it logs upto Template.Invoke
>
> Can you please help me further
>
> ------------------------------------------------------------------------
>
> Subject: Re: SOAP and EJBs
> Date: Thu, 3 May 2001 14:12:15 +0200
> From: Saint-Martin Cécile <cs...@symetrx.com>
> Reply-To: soap-user@xml.apache.org
> To: <so...@xml.apache.org>
> References: <E3...@KRAKATOA> <01...@MESSAC> <3A...@mahindrabt.com>
>
> I tried your dd and i had no error.
> You should download last version of Apache SOAP.
>
> Cécile Saint-Martin
> csaintmartin@symetrx.com
>
> ----- Original Message -----
> From: "Harshad Nanal" <ha...@mahindrabt.com>
> To: <so...@xml.apache.org>
> Sent: Thursday, May 03, 2001 1:49 PM
> Subject: Re: SOAP and EJBs
>
> > I am trying the same thing with weblogic 5.2 server ( set up is correct
> > and tested with addressbook example)
> > When i try to deploy the service i get following error on the command
> > prompt
> >
> > D:\soap20\samples\ejb>java org.apache.soap.server.ServiceManagerClient
> > http://lo
> > calhost:8080/soap/servlet/rpcrouter deploy dd.xml
> > Exception in thread "main" java.lang.IllegalArgumentException: invalid
> > value for
> > type or scope or methods attribute in provider element of deployment
> > descriptor
> > at
> > org.apache.soap.server.DeploymentDescriptor.fromXML(DeploymentDescrip
> > tor.java:317)
> > at
> > org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
> > .java:188)
> >
> >
> > dd.xml is
> > <?xml version="1.0"?>
> > <isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
> > id="urn:testprovider">
> > <isd:provider type="org.apache.soap.providers.StatelessEJBProvider"
> > scope="Session" methods="create">
> > <isd:java class="HelloService"/>
> > <isd:option key="FullHomeInterfaceName" value="HelloServiceHome"/>
> > <isd:option key="ContextProviderURL" value="t3://localhost:8080"/>
> > <isd:option key="FullContextFactoryName"
> > value="weblogic.jndi.WLInitialContextFactory"/>
> > </isd:provider>
> >
> >
> <isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListene
> r>
> > </isd:service>
> >
> > I have also tried with isd:provider scope as Application / Session /
> > Request the error is same.
> >
> > There is no log on the weblogic server side.
> > Please Help
> > Harshad
> >
> >
> >
> > Saint-Martin Cécile wrote:
> > >
> > > We have done this with tomcat, give your deployment descriptor..
> > >
> > > Cécile Saint-Martin
> > > csaintmartin@symetrx.com
>
> ----------------------------------------------------------------------------
> ----
>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> > For additional commands, email: soap-user-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>
> ------------------------------------------------------------------------
>
> Harshad Nanal <ha...@mahindrabt.com>
> MBT
> E-Business
>
> Harshad Nanal
> MBT <ha...@mahindrabt.com>
> E-Business
> Sharda Center, Off Karve Road Erandwane Fax: 91 20 542 44 66
> Pune Home: 91 20 435 07 62
> 411041 Work: 91 20 401 81 00 extn 3086
> India
> Additional Information:
> Last Name Nanal
> First Name Harshad
> Version 2.1
>
> ------------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
Re: [Fwd: SOAP and EJBs]
Posted by Harshad Nanal <ha...@mahindrabt.com>.
Hi All
I could solve the error
Error was :
Fault Code = SOAP-ENV:Server
>
> Fault String = java.lang.IllegalArgumentException: No Serializer found
> to serialize a 'org.apache.soap.rpc.Parameter' using encoding style
> 'null'.
>
Solution is : Apache tools samples/ejb/testejb code does not include the
statement
call.setEncodingStyleURI( Constants.NS_URI_SOAP_ENC );
on adding this statement, I made a successful call to stateless EJB on
weblogic 5.1 from tomcat 3.2.1/ soap2.1/xerces1.2.3
Thanks to all for your support.
Harshad Nanal wrote:
>
> Hi
>
> I could progress further using soap2.1
>
> I had error in connecting to weblogic - that is rectified.
> My client had a mismatching method of ejb being called. (ejb had
> hello(sting s) and I was calling hello()) That is also rectified.
>
> Now I get error called as
> Fault Code = SOAP-ENV:Server
>
> Fault String = java.lang.IllegalArgumentException: No Serializer found
> to serialize a 'org.apache.soap.rpc.Parameter' using encoding style
> 'null'.
>
> on tomcat server it logs upto Template.Invoke
>
> Can you please help me further
>
> ------------------------------------------------------------------------
>
> Subject: Re: SOAP and EJBs
> Date: Thu, 3 May 2001 14:12:15 +0200
> From: Saint-Martin Cécile <cs...@symetrx.com>
> Reply-To: soap-user@xml.apache.org
> To: <so...@xml.apache.org>
> References: <E3...@KRAKATOA> <01...@MESSAC> <3A...@mahindrabt.com>
>
> I tried your dd and i had no error.
> You should download last version of Apache SOAP.
>
> Cécile Saint-Martin
> csaintmartin@symetrx.com
>
> ----- Original Message -----
> From: "Harshad Nanal" <ha...@mahindrabt.com>
> To: <so...@xml.apache.org>
> Sent: Thursday, May 03, 2001 1:49 PM
> Subject: Re: SOAP and EJBs
>
> > I am trying the same thing with weblogic 5.2 server ( set up is correct
> > and tested with addressbook example)
> > When i try to deploy the service i get following error on the command
> > prompt
> >
> > D:\soap20\samples\ejb>java org.apache.soap.server.ServiceManagerClient
> > http://lo
> > calhost:8080/soap/servlet/rpcrouter deploy dd.xml
> > Exception in thread "main" java.lang.IllegalArgumentException: invalid
> > value for
> > type or scope or methods attribute in provider element of deployment
> > descriptor
> > at
> > org.apache.soap.server.DeploymentDescriptor.fromXML(DeploymentDescrip
> > tor.java:317)
> > at
> > org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
> > .java:188)
> >
> >
> > dd.xml is
> > <?xml version="1.0"?>
> > <isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
> > id="urn:testprovider">
> > <isd:provider type="org.apache.soap.providers.StatelessEJBProvider"
> > scope="Session" methods="create">
> > <isd:java class="HelloService"/>
> > <isd:option key="FullHomeInterfaceName" value="HelloServiceHome"/>
> > <isd:option key="ContextProviderURL" value="t3://localhost:8080"/>
> > <isd:option key="FullContextFactoryName"
> > value="weblogic.jndi.WLInitialContextFactory"/>
> > </isd:provider>
> >
> >
> <isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListene
> r>
> > </isd:service>
> >
> > I have also tried with isd:provider scope as Application / Session /
> > Request the error is same.
> >
> > There is no log on the weblogic server side.
> > Please Help
> > Harshad
> >
> >
> >
> > Saint-Martin Cécile wrote:
> > >
> > > We have done this with tomcat, give your deployment descriptor..
> > >
> > > Cécile Saint-Martin
> > > csaintmartin@symetrx.com
>
> ----------------------------------------------------------------------------
> ----
>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> > For additional commands, email: soap-user-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>
> ------------------------------------------------------------------------
>
> Harshad Nanal <ha...@mahindrabt.com>
> MBT
> E-Business
>
> Harshad Nanal
> MBT <ha...@mahindrabt.com>
> E-Business
> Sharda Center, Off Karve Road Erandwane Fax: 91 20 542 44 66
> Pune Home: 91 20 435 07 62
> 411041 Work: 91 20 401 81 00 extn 3086
> India
> Additional Information:
> Last Name Nanal
> First Name Harshad
> Version 2.1
>
> ------------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org