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 "Nortje, Andrew" <an...@ccsc.com> on 2002/03/11 21:54:40 UTC

EJB & SOAP

Hi SOAP Users
 
I'm real new to Apache SOAP and SOAP/XML in general so forgive the basic
questions. 
 
I have installed Apache SOAP and run some of the demo's, all working fine. I
am now trying to setup a SOAP rpc service for an existing EJB installation I
have running under JBoss and Tomcat.
 
What is somewhat confusing is:
-          The deployment descriptor for the sample ejb has only one create
method defined, what about the hello() 'business' method, why is it not in
the descriptor?
-          Where does one define the JNDI name of your EJB, there's place to
define the URL and factory for the JNDI but no place for the JNDI name of
the EJB.
 
Anyway I deployed my SAOP service fine knowing there are probably some
errors in the deployment descriptor and get the following error:
 
[ERROR,Default] =============================================
[ERROR,Default] In TemplateProvider.locate()
[ERROR,Default] URI: urn:ContactManagement
[ERROR,Default] DD.ServiceClass:
org.apache.soap.providers.StatelessEJBProvider
[ERROR,Default] DD.ProviderClass: com.jazzman.contact.ContactManagementBean
[ERROR,Default] Call.MethodName: getContacts
[INFO,Default] Exception caught: javax.naming.ServiceUnavailableException:
http
[Root exception is java.net.UnknownHostException: http]
 
Here is my deployment descriptor
 
<?xml version="1.0"?>
 
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
id="urn:ContactManagement">
  <isd:provider 
    type="org.apache.soap.providers.StatelessEJBProvider" 
    scope="Application" 
    methods="create getContacts addContact">
 
    <isd:java class="com.jazzman.contact.ContactManagementBean"/>
    <isd:option key="FullHomeInterfaceName"
value="com.jazzman.contact.ContactManagementHome"/>
    <isd:option key="ContextProviderURL" value="http://localhost:1099"/>
    <isd:option key="FullContextFactoryName"
value="org.jnp.interfaces.NamingContextFactory"/>
  </isd:provider>
  
 
<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListene
r>
 
</isd:service>
 
Any ideas what I'm doing wrong or where I can look for answers.
 
Thanks in advance.
 
Andrew
 

RE: EJB & SOAP

Posted by Gayatri Irani <gi...@cimetrics.com>.
Hi.
 
The deployment descriptor looks ok other than the following one line:
<isd:java class="com.jazzman.contact.ContactManagementBean"/> 
 
should be replaced by
 
<isd:option key="JNDIName" value="<your JNDI name>"/>
 
Hope this works, all the best!
 
---------------------------------------------------------------
Gayatri Irani
Principal Software Developer
Cimetrics Inc.
 <http://www.cimetrics.com> www.cimetrics.com
girani@cimetrics.com
Work: 617.350.7550, Cell:508.740.2888
-----Original Message-----
From: Nortje, Andrew [mailto:anortje@ccsc.com] 
Sent: Monday, March 11, 2002 3:55 PM
To: 'soap-user@xml.apache.org'
Subject: EJB & SOAP
 
Hi SOAP Users
 
I'm real new to Apache SOAP and SOAP/XML in general so forgive the basic
questions. 
 
I have installed Apache SOAP and run some of the demo's, all working
fine. I am now trying to setup a SOAP rpc service for an existing EJB
installation I have running under JBoss and Tomcat.
 
What is somewhat confusing is:
-        The deployment descriptor for the sample ejb has only one
create method defined, what about the hello() 'business' method, why is
it not in the descriptor?
-        Where does one define the JNDI name of your EJB, there's place
to define the URL and factory for the JNDI but no place for the JNDI
name of the EJB.
 
Anyway I deployed my SAOP service fine knowing there are probably some
errors in the deployment descriptor and get the following error:
 
[ERROR,Default] =============================================
[ERROR,Default] In TemplateProvider.locate()
[ERROR,Default] URI: urn:ContactManagement
[ERROR,Default] DD.ServiceClass:
org.apache.soap.providers.StatelessEJBProvider
[ERROR,Default] DD.ProviderClass:
com.jazzman.contact.ContactManagementBean
[ERROR,Default] Call.MethodName: getContacts
[INFO,Default] Exception caught:
javax.naming.ServiceUnavailableException: http
[Root exception is java.net.UnknownHostException: http]
 
Here is my deployment descriptor
 
<?xml version="1.0"?>
 
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
id="urn:ContactManagement">
  <isd:provider 
    type="org.apache.soap.providers.StatelessEJBProvider" 
    scope="Application" 
    methods="create getContacts addContact">
 
    <isd:java class="com.jazzman.contact.ContactManagementBean"/>
    <isd:option key="FullHomeInterfaceName"
value="com.jazzman.contact.ContactManagementHome"/>
    <isd:option key="ContextProviderURL" value="http://localhost:1099"/>
    <isd:option key="FullContextFactoryName"
value="org.jnp.interfaces.NamingContextFactory"/>
  </isd:provider>
  
 
<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultLis
tener>
 
</isd:service>
 
Any ideas what I'm doing wrong or where I can look for answers.
 
Thanks in advance.
 
Andrew
 

RE: EJB & SOAP

Posted by Gayatri Irani <gi...@cimetrics.com>.
Hi.
 
The deployment descriptor looks ok other than the following one line:
<isd:java class="com.jazzman.contact.ContactManagementBean"/> 
 
should be replaced by
 
<isd:option key="JNDIName" value="<your JNDI name>"/>
 
Hope this works, all the best!
 
---------------------------------------------------------------
Gayatri Irani
Principal Software Developer
Cimetrics Inc.
 <http://www.cimetrics.com> www.cimetrics.com
girani@cimetrics.com
Work: 617.350.7550, Cell:508.740.2888
-----Original Message-----
From: Nortje, Andrew [mailto:anortje@ccsc.com] 
Sent: Monday, March 11, 2002 3:55 PM
To: 'soap-user@xml.apache.org'
Subject: EJB & SOAP
 
Hi SOAP Users
 
I'm real new to Apache SOAP and SOAP/XML in general so forgive the basic
questions. 
 
I have installed Apache SOAP and run some of the demo's, all working
fine. I am now trying to setup a SOAP rpc service for an existing EJB
installation I have running under JBoss and Tomcat.
 
What is somewhat confusing is:
-        The deployment descriptor for the sample ejb has only one
create method defined, what about the hello() 'business' method, why is
it not in the descriptor?
-        Where does one define the JNDI name of your EJB, there's place
to define the URL and factory for the JNDI but no place for the JNDI
name of the EJB.
 
Anyway I deployed my SAOP service fine knowing there are probably some
errors in the deployment descriptor and get the following error:
 
[ERROR,Default] =============================================
[ERROR,Default] In TemplateProvider.locate()
[ERROR,Default] URI: urn:ContactManagement
[ERROR,Default] DD.ServiceClass:
org.apache.soap.providers.StatelessEJBProvider
[ERROR,Default] DD.ProviderClass:
com.jazzman.contact.ContactManagementBean
[ERROR,Default] Call.MethodName: getContacts
[INFO,Default] Exception caught:
javax.naming.ServiceUnavailableException: http
[Root exception is java.net.UnknownHostException: http]
 
Here is my deployment descriptor
 
<?xml version="1.0"?>
 
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
id="urn:ContactManagement">
  <isd:provider 
    type="org.apache.soap.providers.StatelessEJBProvider" 
    scope="Application" 
    methods="create getContacts addContact">
 
    <isd:java class="com.jazzman.contact.ContactManagementBean"/>
    <isd:option key="FullHomeInterfaceName"
value="com.jazzman.contact.ContactManagementHome"/>
    <isd:option key="ContextProviderURL" value="http://localhost:1099"/>
    <isd:option key="FullContextFactoryName"
value="org.jnp.interfaces.NamingContextFactory"/>
  </isd:provider>
  
 
<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultLis
tener>
 
</isd:service>
 
Any ideas what I'm doing wrong or where I can look for answers.
 
Thanks in advance.
 
Andrew