users@glassfish.java.net

Re: JNDI lookup fails for ejb tier vs. web tier

From: <glassfish_at_javadesktop.org>
Date: Wed, 18 Jun 2008 14:37:59 PDT

I still get jndi lookup failed on ChgPlanDetailMgrBean. Below are snippets of the related XML files and Java decl for this bean. Note again that the web tier access (web.xml) works fine but access from ejb tier (a Session ejb to this bean) fails on the lookup.

Perhaps you can see something I am missing...

My Bean java decl:
...
@Stateless(name="ChgPlanDetailMgrBean")
public class ChgPlanDetailMgrBean extends EntityMgrBean implements ChgPlanDetailMgrLocal, ChgPlanDetailManager {
...

My web.xml:
...
<ejb-local-ref>
<ejb-ref-name>ChgPlanDetailMgrBean</ejb-ref-name>
<local>com.cfms.data.common.ChgPlanDetailMgrLocal</local>
<ejb-link>ChgPlanDetailMgrBean</ejb-link>
</ejb-local-ref>
...

My ejb-jar.xml:
...
<session>
<ejb-name>ChgPlanDetailMgrBean</ejb-name>
<ejb-local-ref>
<description>description in descriptor</description>
<ejb-ref-name>ChgPlanDetailMgrBean</ejb-ref-name>
<local>com.cfms.data.common.ChgPlanDetailMgrLocal</local>
<ejb-link>ChgPlanDetailMgrBean</ejb-link>
</ejb-local-ref>
</session>
...

Generated ejb-jar.xml:
...
<session>
<display-name>ChgPlanDetailMgrBean</display-name>
<ejb-name>ChgPlanDetailMgrBean</ejb-name>
<business-local>com.cfms.data.common.ChgPlanDetailMgrLocal</business-local>
<business-remote>com.cfms.data.common.ChgPlanDetailManager</business-remote>
<ejb-class>com.cfms.data.common.ChgPlanDetailMgrBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<ejb-local-ref>
<description>description in descriptor</description>
<ejb-ref-name>ChgPlanDetailMgrBean</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>com.cfms.data.common.ChgPlanDetailMgrLocal</local>
<ejb-link>ChgPlanDetailMgrBean</ejb-link>
</ejb-local-ref>
...

Generated sun-ejb-jar.xml:
...
<ejb>
<ejb-name>ChgPlanDetailMgrBean</ejb-name>
<jndi-name>com.cfms.data.common.ChgPlanDetailManager</jndi-name>
<pass-by-reference>false</pass-by-reference>
<is-read-only-bean>false</is-read-only-bean>
<refresh-period-in-seconds>-1</refresh-period-in-seconds>
<cmt-timeout-in-seconds>0</cmt-timeout-in-seconds>
<gen-classes/>
</ejb>
...

Thanks,
J
[Message sent by forum member 'jameshr' (jameshr)]

http://forums.java.net/jive/thread.jspa?messageID=281158