8 Replies Latest reply on Jun 20, 2012 1:10 AM by Gajendra Rathore Branched to a new discussion.

    Will JBoss AS 7.0 support EJB2.1 Entity Beans?

    Tim Haley Newbie

      An attempt to deploy an EAR containing EJB2.1 Entity and Session Beans to the nightly snapshot build of AS 7 results in the following error:

       

      {code}

      22:50:41,877 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.deployment.subunit."MyJBossEAR.ear

      "."library.jar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."MyJBossEAR.ear"."library.jar".PARSE: Failed to process phase PARSE of subdeployment "library.jar" of deployment "MyJBossEAR.ear"

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)

              at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_19]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_19]

              at java.lang.Thread.run(Thread.java:619) [:1.6.0_19]

      Caused by: java.lang.RuntimeException: <entity> element parsing hasn't yet been implemented

              at org.jboss.metadata.ejb.parser.spec.EnterpriseBeansMetaDataParser.parse(EnterpriseBeansMetaDataParser.java:67)

              at org.jboss.metadata.ejb.parser.spec.EjbJarMetaDataParser.parseEjbJarElements(EjbJarMetaDataParser.java:274)

              at org.jboss.metadata.ejb.parser.spec.EjbJarMetaDataParser.parse(EjbJarMetaDataParser.java:142)

              at org.jboss.as.ejb3.deployment.processors.EjbJarParsingDeploymentUnitProcessor.deploy(EjbJarParsingDeploymentUnitProcessor.java:143)

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

              ... 5 more


      {code}

       

      Is this something that is expected to work before AS7 is released?

       

      I am porting an existing application that runs under WebSphere and WebLogic to JBoss. It is primarily legacy J2EE 1.4 code but we are slowly migrating to JEE6. I have had little luck getting things to work under AS5/6 and decided to take a look at AS7 since it is due to be released relatively soon. The significant improvements that AS7 offers, such as rapid start up and simplified configuration, are things that really make me want to use AS7, but if it will not support EJB2.1 it isn't an option.

       

      Thanks,

      Tim

        • 1. Re: Will JBoss AS 7.0 support EJB2.1 Entity Beans?
          jaikiran pai Master

          EJB2.x support isn't available in AS 7.0

          • 2. Re: Will JBoss AS 7.0 support EJB2.1 Entity Beans?
            Tim Haley Newbie

            Bummer! I was really hoping that we could take advantage of all the great improvements in 7.

             

            Oh well, back to getting this to work with JBoss AS 6...

            • 3. Re: Will JBoss AS 7.0 support EJB2.1 Entity Beans?
              Tim Haley Newbie

              Jaikiran, thanks for the quick response.

               

              I understand that removing backward compatability with EJB2.x helped to speed up the development of AS7 and probably helped to simplify the server code. I can't blame JBoss for that decision. However, since some of us are still working with legacy applications, will any future release of JBoss AS 7 and beyond support EJB2.x?

               

              Thanks again,

               

              Tim

              • 4. Re: Will JBoss AS 7.0 support EJB2.1 Entity Beans?
                Dimitris Andreadis Master

                This should be implemented in AS 7.1

                1 of 1 people found this helpful
                • 5. Re: Will JBoss AS 7.0 support EJB2.1 Entity Beans?
                  Tim Haley Newbie

                  Excellent news!

                  Now I can't wait for 7.1 to be released in November!

                  • 6. Re: Will JBoss AS 7.0 support EJB2.1 Entity Beans?
                    Gajendra Rathore Newbie

                    Hi Dimitris,

                     

                    I am using Jboss 7.1.1 Final and migrating my application from Jboss 4 to Jboss 7, In this project having both EJB2 and EJB3, while invoking the EJB2  getting exception :-

                     

                    [org.jboss.ejb3.invocation] (ajp-localhost-127.0.0.1-8411-1) JBAS014134: EJB Invocation failed on component com.lms.studentUIBroker.StudentUIBroker for method public abstract com.lms.studentUIBroker.StudentUIBroker com.lms.studentUIBroker.StudentUIBrokerHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException: javax.ejb.EJBException: Unexpected Error

                     

                    at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:163) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                    at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:230) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                    at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:304) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                    at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                    at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:8

                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                    at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java

                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                    at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [jboss-as-ejb3-7.1.1.Final.ja

                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                    at org.jboss.as.ejb3.component.interceptors.EjbExceptionTransformingInterceptorFactories$1.processInvocation(EjbExceptionTransformingInter

                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                    at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [jboss-as-ee-7.1.1.Final.j

                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                    at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32) [jboss-as-ejb

                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                    at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                    at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                    at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                    at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:179) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                    at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:179) [jboss-ejb-client-1.0.5.Final.jar:1.0.

                    at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:43) [jboss-ejb-client-1.0.5.Final.jar:1.0.5.Fi

                    at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181) [jboss-ejb-client-1.0.5.Final.jar:1.0.

                    at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:128) [jboss-ejb-client-1.0.5.Final.jar:1.0.5.Final]

                    at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181) [jboss-ejb-client-1.0.5.Final.jar:1.0.

                    at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136) [jboss-ejb-client-1.0.5.Final.jar:1.0.5.Final]

                    at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121) [jboss-ejb-client-1.0.5.Final.jar:1.0.5.Final]

                    at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104) [jboss-ejb-client-1.0.5.Final.jar:1.0.5.Final]

                    at $Proxy31.create(Unknown Source)      at com.util.ejb.Brokers.createStudentUIBroker(Brokers.java:865) [lmsEjbs.jar:]

                     

                     

                     

                     

                    JNDI Name :- java:app/lmsEjbs/com.lms.studentUIBroker.StudentUIBroker!com.lms.studentUIBroker.StudentUIBrokerHome

                     

                     

                    Do you have any idea why this is happening ?

                    • 7. Re: Will JBoss AS 7.0 support EJB2.1 Entity Beans?
                      jaikiran pai Master

                      Gajendra,

                       

                      Please do not post questions in unrelated threads. You already have a different thread where you have asked this question https://community.jboss.org/message/742917#742917. Please continue the discussion in that other thread.

                      • 8. Re: Will JBoss AS 7.0 support EJB2.1 Entity Beans?
                        Gajendra Rathore Newbie

                        ok, it will not happen again. I apologize.