2 Replies Latest reply on Jul 28, 2010 9:26 AM by Sanjay Sharma

    Problem in inject ref EJB using @EJB

    Leo Souza Newbie

      Hi,

      I have an application in jboss 4.2 but when i migrated this app to jboss 5.0.1.GA i had the following warning log in console:

      first the warn:
      JBMETA-4: did not find any bean meta data for annotation bean CPPDaoImpl

      Ingore ejb deployment with null classname: org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData@73e629cf{CPPDaoImpl}

      after these warns this exception

      01:22:51,906 ERROR [AbstractKernelController] Error installing to Start: name=jboss.j2ee:ear=CoreWiEar.ear,jar=CoreWi.jar,name=GraficoBeanImpl,service=EJB3 state=Create
      java.lang.NullPointerException
       at org.jboss.ejb3.proxy.factory.ProxyFactoryHelper.getRemoteAndBusinessRemoteInterfaces(ProxyFactoryHelper.java:613)
      


      This GraficoBeanImpl has a ref to CPPDao (interface)....

      Anybody can help me...

      PS: Sorry for my english :-)

        • 1. Re: Problem in inject ref EJB using @EJB
          jaikiran pai Master

          Please post the relevant part of the code of your bean implementation and the business interface(s). If you have a ejb-jar.xml and/or jboss.xml, please post them too.

          • 2. Re: Problem in inject ref EJB using @EJB
            Sanjay Sharma Newbie

            Hi

            I am also facing the same problem in JBOSS 5,When I try to deploy the those bean as seprate jar then I am getting following NullpointerException.

            earlier my Application has only one EJB JAR file ,but we devided the all EJB based on the package ,and trying to deploy the Application in Exploaded form.

            I am using the EJB3 Annotation,so didn't use the deploymentdescriptor

             

            Here is the Error which I got from JBOSS

             

            DEPLOYMENTS IN ERROR:
              Deployment "jboss.j2ee:jar=stateserver.jar,name=EntityStateTimeoutBean,service
            =EJB3" is in error due to the following reason(s): java.lang.NullPointerExceptio
            n, **ERROR**
              Deployment "jboss.j2ee:jar=AMIDataProvisioning-test-client.jar,name=AMIProvRes
            ponseMailBox,service=EJB3" is in error due to the following reason(s): java.lang
            .NullPointerException
              Deployment "jboss.j2ee:jar=platformserver.jar,name=MissingMeteringDataStateTim
            eOut,service=EJB3" is in error due to the following reason(s): java.lang.NullPoi
            nterException, **ERROR**
              Deployment "jboss.j2ee:jar=platformserver.jar,name=EntityStateTimeOut,service=
            EJB3" is in error due to the following reason(s): java.lang.NullPointerException
            , **ERROR**
              Deployment "jboss.j2ee:jar=stateserver.jar,name=MissingMeterDataTimeoutBean,se
            rvice=EJB3" is in error due to the following reason(s): java.lang.NullPointerExc
            eption, **ERROR**

             

             

             

             

            Thanks in Advance

            corresponding files has been attached