URGENT!!!! javax.naming.NameNotFoundException
sysuser1 May 1, 2006 2:31 PMWe are migrating an application that's deployed in JBoss 3.2.1 to JB0ss 4.0.4CR2. We did upgrade to XDOclet1.2.3 and Ant 1.6.5. When we deploy the .ear on 4.0.4CR2 we see the following message:
jboss.j2ee:jndiName=local/MaintainUsers@26967138,service=EJB state: Created
jboss.j2ee:jndiName=local/MaintainPersons@21349396,service=EJB state: Created
But when we try to lookup using the JNDI it throws the following exception
javax.naming.NameNotFoundException: ejb not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at org.afscme.enterprise.util.JNDIUtil.lookup(JNDIUtil.java:432)
at org.afscme.enterprise.util.JNDIUtil.lookupHome(JNDIUtil.java:442)
Here is the ejb-jar.xml content:
<![CDATA[Handles maintainence of user accounts.]]>
<display-name>MaintainUsers</display-name>
<ejb-name>MaintainUsers</ejb-name>
<local-home>org.afscme.enterprise.users.ejb.MaintainUsersHome</local-home>
org.afscme.enterprise.users.ejb.MaintainUsers
<ejb-class>org.afscme.enterprise.users.ejb.MaintainUsersBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
Jboss.xml
<ejb-name>MaintainUsers</ejb-name>
<local-jndi-name>MaintainUsers</local-jndi-name>
<method-attributes>
</method-attributes>
MaintainUsersHome.java
/**
* Local home interface for MaintainUsers.
*/
public interface MaintainUsersHome
extends javax.ejb.EJBLocalHome
{
public static final String COMP_NAME="java:comp/env/ejb/MaintainUsersLocal";
public static final String JNDI_NAME="MaintainUsers";
public org.afscme.enterprise.users.ejb.MaintainUsers create()
throws javax.ejb.CreateException;
}
I tried lookingup using
local/MaintainUsers
MaintainUsers
ejb/MaintainUsersLocal
None of the above is working..........
Any help is greatly appreciated.