We 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/[EMAIL PROTECTED],service=EJB state: Created
    jboss.j2ee:jndiName=local/[EMAIL PROTECTED],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.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3940507#3940507

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3940507


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to