3 Replies Latest reply on Jun 16, 2006 12:58 PM by ywen1

    EJB2 CMP not bound in "JBoss 4.0.4 GA + EJB3"

    smalbequi

      Hi,

      sorry for my english, first.

      I want to migrate to EJB3 a J2EE application (EJB 2.0 Session Stateless + Entity CMP) which works fine with "JBoss 4.0.4 GA".

      First, I try to deploy the app.ear file without any change in the JBoss 4.0.4 GA + EJB3 configuration

      And my problem is : even I see this line in server.log

      DEBUG [org.jboss.ejb3.Ejb3AnnotationHandler] found EJB3: ejbName=User, class=com.xxx.xxx.xxx.user.UserCMP, type=ENTITY

      I have the following exception when I try to use the deployed application

      javax.ejb.EJBException: javax.naming.NameNotFoundException: User not bound

      In the JBoss Management Console I only see EJB Session in the System -> JMX Mbeans - > jboss.j2ee

      PS : My application is developed with XDoclet, xml configuration files are fine and no warning appears in logs.

      Any idea ?

      Thanks in advance

        • 1. Re: EJB2 CMP not bound in
          bill.burke

          did you change your ejb-jar.xml file at all?

          • 2. Re: EJB2 CMP not bound in
            smalbequi

            no. I have just deployed the same ear like the one which works on the normal Jboss4 (without EJB3 feature).

            • 3. Re: EJB2 CMP not bound in
              ywen1

              We got the same error. When we run our applocation with "JBoss 4.0.4 GA + EJB3", the entity bean failed to deploy. Then we got the EJB name not bound JNDI look up error. During the JBoss start up, we see only the session beans got deployed, but not the EJB2 entity beans.

              We have to change the ejb-jar.xml to the following to avoid the paser error.

              <?xml version="1.0"?>


              <ejb-jar version="3.0">
              <enterprise-beans>
              .....................