Hi everybody. First of all : sorry for my english (which might
be hard to understand), i'm french.
Then, here's my problem
:
I'm Using a JBoss/Tomcat bundle as EJB/JSP/Servlet server. I
deployed a simple application with a "HelloWorld" EJB. I can use this EJB
through JSP pages, as i tested it.
But now, i'm trying to
access this EJB from a c++ client using SOAP (PocketSoap client
lib).
So i installed Apache SOAP in JBoss (i deployed the soap.war)
and i can access the admin and the soap rpc router (who doesn't talk
via GET ...).
Now i'm trying to write a c++ sample to acces my
EJB, and it doesn't work....
Here's what i did (the application
with my "Hello World EJB is deployed, and i can acces this EJB via
JSPs) :
- i created the soap deployment file (the problem might be
in it, since i am a little confused with "providers" etc...)
:
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
id="urn:SoapTest"> <isd:provider
type="org.apache.soap.providers.StatelessEJBProvider"
scope="Application" methods="Hello create"> <isd:option
key="JNDIName" value="EJBHelloWorld" /> <isd:option
key="FullHomeInterfaceName"
value="EJBHelloWorldHome"/> <isd:option key="ContextProviderURL"
value="jnp://localhost:1099"/> <isd:option
key="FullContextFactoryName" value="org.jnp.interfaces.NamingContextFactory"/> </isd:provider>
<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListener> </isd:service>
-
then i deployed this SOAP service using the java command line (i can see
it deployed with the Admin tool)
Here are the errors i have, which i can't figure out :
In
JBoss console :
[ERROR,Default]
============================================= [ERROR,Default] In
TemplateProvider.locate() [ERROR,Default] URI:
urn:SoapTest [ERROR,Default] DD.ServiceClass:
org.apache.soap.providers.StatelessEJBProvider [ERROR,Default]
DD.ProviderClass: null [ERROR,Default] Call.MethodName:
Hello [INFO,Default] Exception caught:
javax.naming.CommunicationException [Root excep tion is
java.lang.ClassNotFoundException: EJBHelloWorldHome]
I can't figure
why JBoss can't find the classes (he can when using JSPs, maybe because
they are deployed in the same app than the JSP)
I really have to validate the EJB-C++ connection via SOAP for my
bosses (whatever the soap toolkit is, i just chose pocketsoap on the
client side because it seems powerful and easy to
use).
Maybe is it a RMI class loading problem, since i didn't use
<ejb-ref> tags (i'm still a little confused with them).
I'd really appreciate some code samples using these tags, and
maybe some explanations on where to place them etc...
Could you help me with that ? It would be really really cool
!
thanks A LOT !
Mike from france. |