5 Replies Latest reply on Nov 9, 2005 1:25 PM by ybh6336

    Error while deploying session bean on JBoss 4.0.2

    ybh6336

      Hello all,

      We are trying to deploy an EAR on JBoss 4.0.2 and getting the following error on server startup:

      09:43:27,993 WARN [verifier] EJB spec violation:
      Bean : CNTBatchController
      Section: 22.2
      Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements t
      he enterprise bean's business methods in the <ejb-class> element.
      Info : Class not found on 'com.wdc.mif.controllers.jpmc.ejb.CNTBatchControllerSession': Unexpected
       error during load of: com.wdc.mif.controllers.jpmc.ejb.CNTBatchControllerSession, msg=com/wdc/mif/c
      ontrollers/jpmc/ejb/CNTBatchController
      
      09:43:27,993 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-4.0.2/server/all/tmp/d
      eploy/tmp25251cnt.ear-contents/JPMCCNTBatchController_EJB.jar
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for err
      or messages.
       at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:553)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:918)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:910)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
       at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterce
      ptor.java:127)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
       at $Proxy8.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:325)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:501)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeplo
      ymentScanner.java:204)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentSca
      nner.java:277)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
      ......
      ......
      ......
      --- Incompletely deployed packages ---
      org.jboss.deployment.DeploymentInfo@9d622596 { url=file:/C:/jboss-4.0.2/server/all/deploy/CNT.ear/JPMCCNTBatchController_EJB.jar/ }
       deployer: org.jboss.ejb.EJBDeployer@fb6c5f
       status: Deployment FAILED reason: Verification of Enterprise Beans failed, see above for error messages.
       state: FAILED
       watch: file:/C:/jboss-4.0.2/server/all/deploy/CNT.ear/JPMCCNTBatchController_EJB.jar/META-INF/ejb-jar.xml
       altDD: null
       lastDeployed: 1131544579836
       lastModified: 1131544521142
       mbeans:
      


      The entry for the concerned bean in ejb-jar.xml looks as follows:

      <session >
       <description><![CDATA[Description for CNTBatchController]]></description>
       <display-name>Name for CNTBatchController</display-name>
      
       <ejb-name>CNTBatchController</ejb-name>
      
       <home>com.wdc.mif.controllers.jpmc.interfaces.CNTBatchControllerHome</home>
       <remote>com.wdc.mif.controllers.jpmc.interfaces.CNTBatchController</remote>
       <local-home>com.wdc.mif.controllers.jpmc.interfaces.CNTBatchControllerLocalHome</local-home>
       <local>com.wdc.mif.controllers.jpmc.interfaces.CNTBatchControllerLocal</local>
       <ejb-class>com.wdc.mif.controllers.jpmc.ejb.CNTBatchControllerSession</ejb-class>
       <session-type>Stateless</session-type>
       <transaction-type>Container</transaction-type>
      
       </session>
      


      Also:
      public class CNTBatchControllerSession extends com.wdc.mif.controllers.jpmc.ejb.CNTBatchController
       implements javax.ejb.SessionBean
      


      Does anyone have ideas what we might be missing here? Would really appreciate any help.

      Thanks

        • 1. Re: Error while deploying session bean on JBoss 4.0.2
          jaikiran

           

          "ybh6336" wrote:

          Info : Class not found on 'com.wdc.mif.controllers.jpmc.ejb.CNTBatchControllerSession': Unexpected
          error during load of: com.wdc.mif.controllers.jpmc.ejb.CNTBatchControllerSession, msg=com/wdc/mif/c
          ontrollers/jpmc/ejb/CNTBatchController


          The class com/wdc/mif/controllers/jpmc/ejb/CNTBatchController is NOT found in the jar. Where is this file placed?



          • 2. Re: Error while deploying session bean on JBoss 4.0.2
            ybh6336

            Thanks for your response. All the class files are inside the EJB jar:

             created: com/
             created: com/wdc/
             created: com/wdc/mif/
             created: com/wdc/mif/controllers/
             created: com/wdc/mif/controllers/jpmc/
             created: com/wdc/mif/controllers/jpmc/ejb/
             inflated: com/wdc/mif/controllers/jpmc/ejb/CNTBatchController.class
             inflated: com/wdc/mif/controllers/jpmc/ejb/CNTBatchControllerSession.class
             created: com/wdc/mif/controllers/jpmc/interfaces/
             inflated: com/wdc/mif/controllers/jpmc/interfaces/CNTBatchController.class
             inflated: com/wdc/mif/controllers/jpmc/interfaces/CNTBatchControllerHome.class
             inflated: com/wdc/mif/controllers/jpmc/interfaces/CNTBatchControllerLocal.class
             inflated: com/wdc/mif/controllers/jpmc/interfaces/CNTBatchControllerLocalHome.class
             inflated: com/wdc/mif/controllers/jpmc/interfaces/CNTBatchControllerUtil.class
             created: com/wdc/mif/controllers/jpmc/testclients/
             inflated: com/wdc/mif/controllers/jpmc/testclients/TestCient.class
             created: META-INF/
             inflated: META-INF/ejb-jar.xml
             inflated: META-INF/jboss.xml
             inflated: META-INF/MANIFEST.MF
            


            Thanks.

            • 3. Re: Error while deploying session bean on JBoss 4.0.2
              jaikiran

              Please execute the following command for your jar and post the output:

              jar -tf yourJar



              This will show you the contents of the jar


              • 4. Re: Error while deploying session bean on JBoss 4.0.2
                ybh6336

                The jar contains the following files:

                C:\Development\deleteme>jar -tf JPMCCNTBatchController_EJB.jar
                com/
                com/wdc/
                com/wdc/mif/
                com/wdc/mif/controllers/
                com/wdc/mif/controllers/jpmc/
                com/wdc/mif/controllers/jpmc/ejb/
                com/wdc/mif/controllers/jpmc/ejb/CNTBatchController.class
                com/wdc/mif/controllers/jpmc/ejb/CNTBatchControllerSession.class
                com/wdc/mif/controllers/jpmc/interfaces/
                com/wdc/mif/controllers/jpmc/interfaces/CNTBatchController.class
                com/wdc/mif/controllers/jpmc/interfaces/CNTBatchControllerHome.class
                com/wdc/mif/controllers/jpmc/interfaces/CNTBatchControllerLocal.class
                com/wdc/mif/controllers/jpmc/interfaces/CNTBatchControllerLocalHome.class
                com/wdc/mif/controllers/jpmc/interfaces/CNTBatchControllerUtil.class
                com/wdc/mif/controllers/jpmc/testclients/
                com/wdc/mif/controllers/jpmc/testclients/TestCient.class
                META-INF/
                META-INF/ejb-jar.xml
                META-INF/jboss.xml
                META-INF/MANIFEST.MF
                


                • 5. Re: Error while deploying session bean on JBoss 4.0.2
                  ybh6336

                  Got it resolved. The code was compiled using JDK 1.5 whereas JBoss was using JDK 1.4. Everything worked fine after compiling and running on 1.4.2.

                  Thanks for your help.