Apache SOAP 2.2 and jBoss 2.4.4 with Catalina 4.0.1
akirchhofer Apr 29, 2002 10:45 AMHello all,
I tried to build a deployment descriptor for Apache SOAP 2.2 which I deployed on jBoss 2.4.4 with Catalina 4.0.1. I built up a small stateless sessionbean with just one bean method: giveBackaHello; just to try out the environment. I deployed it and wrote the Apache SOAP deployment descriptor - but now I don't know how to procceed... maybe there's anybody out there, who could give me a hint...
My deployment descriptor seems like that:
<?xml version="1.0"?>
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
id="urn:com.tsystems.webservices.helloservice">
<isd: provider type="org.apache.soap.providers.StatelessEJBProvider"
scope="Application"
methods="giveBackaHello">
<isd:option key="JNDIName" value="sayhello/SayHello"/>
<isd:option key="FullHomeInterfaceName" value="com.tsystems.webservices.sayhello.SayHelloHome" />
<isd:option key="ContextProviderURL" value="localhost:1099" />
<isd:option key="FullContextFactoryName" value="org.jnp.interfaces.NamingContextFactory" />
</isd: provider>
<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListener>
</isd:service>
... now I dont't know if localhost:1099 is that right or if one of the other values is false...
using rmi://localhost:1099 I'll get:
[ERROR,Default] =============================================
[ERROR,Default] In TemplateProvider.locate()
[ERROR,Default] URI: urn:com.tsystems.webservices.helloservice
[ERROR,Default] DD.ServiceClass: org.apache.soap.providers.StatelessEJBProvider
[ERROR,Default] DD.ProviderClass: org.apache.soap.providers.StatelessEJBProvider
[ERROR,Default] Call.MethodName: giveBackaHello
[INFO,Default] Exception caught: javax.naming.ServiceUnavailableException: rmi [Root exception is java.net.UnknownHostException: rmi]
[INFO,Default] Error encountered: Error in connecting to EJB
[INFO,Default] Successful Web Service call...
...on the other hand, if I try it just with localhost:1099 I'll get something like this:
[ERROR,Default] =============================================
[ERROR,Default] In TemplateProvider.locate()
[ERROR,Default] URI: urn:com.tsystems.webservices.helloservice
[ERROR,Default] DD.ServiceClass: org.apache.soap.providers.StatelessEJBProvider
[ERROR,Default] DD.ProviderClass: org.apache.soap.providers.StatelessEJBProvider
[ERROR,Default] Call.MethodName: giveBackaHello
[INFO,Default] Exception caught: javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: com.tsystems.webservices.sayhello.SayHelloHome (no security manager: RMI class loader disabled)]
[INFO,Default] Error encountered: Error in connecting to EJB
[INFO,Default] Successful Web Service call...
... or do I have an error in reasoning?
Could it maybe be, that I first have to create an instance of the stateless session bean and the Apache servlet just uses the home interface to create another replication of this instance (I thougt that it uses the home interface and the context information to create a bean instance - InitialContext() or something like that...)
Maybe someone has an idea - every comment is very appreciated...
bye,
Andy