Hi,
New Axis User, I'm just arriving on this e-mailing list.
I'm coming here with a first problem (as a usual "newby").
I'm trying to access a remote Ejb 3 from Axis2 1.5.1 WebService (both on a
JOnAS 5.1.0 web server).
so I just put these 2 lines on my ServiceTest.java
String bNameFull = "org.beans.helloWorld.HelloWorldBean" + "_" +
HelloWorldRemoteInterface.class.getName() + "@Remote";
HelloWorldRemoteInterface remoteBean = (HelloWorldRemoteInterface)
ctx.lookup(bNameFull);
return remoteBean.helloWorld("test");
Next I just compile my service with the good classes put it into an aar and
deploy it All ok there.
But I get an error I can't really understand and correct when I'm using my
webservice and so calling my ejb 3 :
javax.naming.NamingException: Cannot perform lookup
[Root exception is javax.naming.NamingException: Cannot unwrap object
'UnicastJNDIReferenceWrapper [UnicastServerRef [liveRef:
[endpoint:[188.165.46.3:60489](local), objID:[-7d81390b:124c998235a:-7219,
4641392563539140475]]]]' with name
'org.beans.helloworld.helloworldbean_org.beans.helloworld.helloworldremoteinterf...@remote'.
[Root exception is org.ow2.easybeans.api.EZBContainerException: Cannot find
the class 'org.beans.helloWorld.HelloWorldRemoteInterface' in Classloader
'WebappClassLoader
delegate: true
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
classloader : org.ow2.jonas.lib.loader.SimpleWebappClassLoader
modules bases (not in loader!) :
-file:/jonas-full-5.1.0/work/webapps/jonas/single/axis2_2009.11.18-15.36.52.war/
repositories :
-file:/jonas-full-5.1.0/work/webapps/jonas/single/axis2_2009.11.18-15.36.52.war/
parent : org.ow2.jonas.lib.loader.filteringclassloa...@a3a77
'.]]
- One important point is I can access my Ejb 3 with this exact source code
from a servlet deployed where Axis2 is deployed.
- I try without success some fancy "parameter" on the service.xml file :
<parameter name="ServiceClass"
locked="false">my.ejb.HelloBusiness</parameter>
<parameter name="remoteInterfaceName">my.ejb.Hello</parameter>
<parameter name="homeInterfaceName">my.ejb.HelloHome</parameter>
<parameter name="beanJndiName">my/ejb/HelloBean</parameter>
<parameter name="providerUrl">[URL]</parameter>
<parameter name="jndiContextClass">[Context Factory Class
Name]</parameter>
If someone have a light for me on this point, I'm really not finding any
clue.
Thanks for reading,
MR.
sample.AAR
|-- WEB-INF (MANIFEST.MF, services.xml)
|--org / webservices / MyWebService.class
\--org / beans / helloWorld / (HelloWorldRemoteInterface.class,
HelloWorldBean.class)