7 Replies Latest reply on Oct 17, 2013 1:52 AM by Stephen Coy

    EJB2 session bean deployment issues while migrating from jboss 4.3 to 7

    prashamsjain Newbie

      Hello Team,

       

      I am currently trying to migrate a application from Jboss 4.3 to Jboss AS 7. While deploying a ejb.ear in jboss 7 i am getting the exception as attached.

       

      Directory Structure of ear

      testejb.ear

           -    testejb1.jar

           -     supporting.jar

      testfileejb.ear

           -     testfileejb.jar

           -      supporting.jar

       

      Message driven bean in testejb uses session bean testfileejb as ejb external ref. The jndi-name of session bean is of "java:global" but it seems that server is looking at "java:comp".

       

      Please provide your inputs on this issue.

       

      My jboss.xml contains

      <message-driven>

           <ejb-name>FileDelivery</ejb-name>

           ...

           <ejb-ref>

                <ejb-ref-name>FileService</ejb-ref-name>

                <jndi-name>java:global/FileService</jndi-name>

           </ejb-ref>

           ...

      </message-driven>

       

      My ejb-jar.xml contains

      <message-driven>

           <ejb-name>FileDelivery</ejb-name>

           ...

           <ejb-ref>

                <ejb-ref-name>FileService</ejb-ref-name>

                <ejb-ref-type>Session</ejb-ref-type>

                <home>com.myapp.FileServiceHome</home>

                <remote>com.myapp.FileServiceRemote</remote>

           </ejb-ref>

      </message-driven>