3 Replies Latest reply on Jan 9, 2008 8:49 AM by jaikiran

    ERROR [EntityContainer] Starting failed

    upeka

      Hi,
      I am trying to deploy an ejb jar to jboss-4.0.1sp1 with jdk 1.5, which was developed and successfully working in jboss 3.2.3 with jdk 1.4.

      Most of the entity and session beans were deployed correctly until recieving the following error.

      15:47:21,883 INFO [EjbModule] Deploying ExelOrderGXMLRequestQueue
      15:47:21,914 INFO [EjbModule] Deploying ExelStatusGXMLRequestQueue
      15:47:27,227 ERROR [EntityContainer] Starting failed jboss.j2ee:jndiName=Surchar
      ge,service=EJB
      org.jboss.util.NestedRuntimeException: Failed to create new proxy target; - nest
      ed throwable: (java.lang.reflect.InvocationTargetException)
      at org.jboss.proxy.compiler.Proxy.newProxyInstance(Proxy.java:52)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateBeanClassInstanceCommand.<in
      it>(JDBCCreateBeanClassInstanceCommand.java:56)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createCreateBeanCla
      ssInstanceCommand(JDBCCommandFactory.java:124)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDB
      CStoreManager.java:463)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManage
      r.java:381)
      at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManag
      er.java:157)
      at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:340)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
      upport.java:272)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
      eanSupport.java:222)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)

      I have done the most of the obvious changes with Data source configs, standardjboss.xml, cluster-service.xml etc. I generate ejb-jar.xml and jbosscmp-jdbc.xml using xdoclet.

      Please point out some body where i should do the changes to avoid above error.

      thanks,
      Niran

        • 1. Re: ERROR [EntityContainer] Starting failed
          upeka

          Hi,
          Please be infromed that the above problem does not encounter with jboss-4.2.1.GA , but in jboss-4.0.1sp1 with jdk 1.5. So i could safely switch to the latest version. But there i got a warn as shown bellow.


          15:01:23,080 INFO [EjbModule] Deploying NewOrderPicker
          15:01:23,080 INFO [EjbModule] Deploying ExelOrderGXMLRequestQueue
          15:01:23,111 WARN [ServiceController] Problem creating service jboss.j2ee:servi
          ce=EjbModule,module=PHEJBNew.jar
          java.lang.NullPointerException
          at org.jboss.metadata.BeanMetaData.getInvokerBindings(BeanMetaData.java:
          263)
          at org.jboss.ejb.EjbModule.getWebClassLoader(EjbModule.java:827)
          at org.jboss.ejb.EjbModule.initializeContainer(EjbModule.java:730)
          at org.jboss.ejb.EjbModule.createMessageDrivenContainer(EjbModule.java:6
          02)
          at org.jboss.ejb.EjbModule.createContainer(EjbModule.java:569)
          at org.jboss.ejb.EjbModule.createService(EjbModule.java:342)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBean
          Support.java:260)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB

          This caused the deployment to process halfway. This mentions about BeanMetaData and i'm not aware that where i should look for bean meta data.

          Please be kind enough somebody to give at least a small hint.

          • 2. Re: ERROR [EntityContainer] Starting failed
            rpatil

            Hi, we are running into the same problem after trying to deploy a MDB on JBoss 4.2.2 GA. Its working fine on JBoss 4.2.1 GA.

            java.lang.NullPointerException
             at org.jboss.metadata.BeanMetaData.getInvokerBindings(BeanMetaData.java:263)

            If the MDB is commented then the application doploys successfully including other SSB.
            If anyone has any hint to this issue please reply.

            • 3. Re: ERROR [EntityContainer] Starting failed
              jaikiran

              You will have to post more details about your application (packaging) and the entire exception stacktrace and other appropriate logs.