-
1. Re: JNDI (EJB) lookup
jaikiran Apr 24, 2013 7:35 AM (in response to cchantep)Please post the entire exception stacktrace and the code which is looking it up.
-
2. Re: JNDI (EJB) lookup
sfcoy Apr 24, 2013 7:37 AM (in response to cchantep)Please show the code for your locator, as well as the error messages that you're seeing.
-
3. Re: JNDI (EJB) lookup
cchantep Apr 24, 2013 8:04 AM (in response to jaikiran)InitialContext ctx = new InitialContext();
ctx.lookup(jndiName); // jndiName one of tried binding nameError is:
java.lang.IllegalStateException: No EJB receiver available for handling [appName:global,modulename:org.ffmoto.portal,distinctname:ffmoto-services] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@7e01eda4
at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:584) [jboss-ejb-client-1.0.5.Final.jar:1.0.5.Final]
at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:119) [jboss-ejb-client-1.0.5.Final.jar:1.0.5.Final]
at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181) [jboss-ejb-client-1.0.5.Final.jar:1.0.5.Final]
at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136) [jboss-ejb-client-1.0.5.Final.jar:1.0.5.Final]
at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121) [jboss-ejb-client-1.0.5.Final.jar:1.0.5.Final]
at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104) [jboss-ejb-client-1.0.5.Final.jar:1.0.5.Final]
at com.sun.proxy.$Proxy61.getUser(Unknown Source)
at fr.corsaire.siville.web.ContextListener.contextInitialized(ContextListener.java:53) -
4. Re: JNDI (EJB) lookup
sfcoy Apr 24, 2013 9:06 AM (in response to cchantep)I would expect that to work.
You haven't got a jndi.properties file lying around in your application by any chance? That could cause this problem.
-
-
6. Re: JNDI (EJB) lookup
sfcoy Apr 24, 2013 9:17 AM (in response to cchantep)Do you have jboss-ejb-client-1.0.5.Final.jar in your WAR or EAR?
If so, remove it.
-
7. Re: JNDI (EJB) lookup
cchantep Apr 24, 2013 9:20 AM (in response to sfcoy)I don't have such jar anywhere.
-
8. Re: JNDI (EJB) lookup
sfcoy Apr 24, 2013 9:40 AM (in response to cchantep)The JBossAS/WildFly test case at https://github.com/jbossas/jboss-as/blob/master/testsuite/integration/smoke/src/test/java/org/jboss/as/test/smoke/ejb3/jndi/EarDeploymentEjbJndiBindingTestCase.java replicates what you're doing and presumably it works OK.
-
9. Re: JNDI (EJB) lookup
cchantep Apr 24, 2013 11:13 AM (in response to sfcoy)Thanks for your help. It seems EJB were deployed as 2.1, and it silently raise some binding issue.