2 Replies Latest reply on Jan 20, 2017 6:09 AM by andey

    Does Jboss eap 7.0.0 supports ejb 2.1 entity beans?

    anithamuppa

      17:52:46,163 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.subunit."abc.ear"."xyz.jar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."abc.ear"."xyz.jar".PARSE: WFLYSRV0153: Failed to process phase PARSE of subdeployment "xyx.jar" of deployment "abc.ear"

       

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

       

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)

       

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

       

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

       

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

       

          at java.lang.Thread.run(Thread.java:745)

       

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEJB0450: Entity Beans are no longer supported, beans abc.ear cannot be deployed

       

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

       

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

       

          ... 5 more

       

       

      Could some one help us with this?

       

       

      If it does not support, what are all the options we have to deploy ejb 2.1 entity beans in Jboss eap 7.0.0?

        • 1. Re: Does Jboss eap 7.0.0 supports ejb 2.1 entity beans?
          pjhavariotis

          I am afraid you should consider a migration to EJB3 and JPA.

          This error is related with the EJB3.2 specification where the EJB EntityBeans and the EJB-QueryLanguage for CMP (Container Managed Persistence) are optional and a Java EE7 container might not implement this old technology.

          Unfortunately EJB Entity Beans are not supported in JBoss EAP 7. All the CMP & BMP entity beans must be rewritten to use Java Persistence API (JPA) entities.

          • 2. Re: Does Jboss eap 7.0.0 supports ejb 2.1 entity beans?
            andey

            Hi,

             

            EJB entity beans are no longer supported in JBoss EAP 7. If your application uses EJB entity beans, you should migrate the code to use JPA, which offers a much more performant and flexible API.

             

            Support for EJB Entity Beans is optional in Java EE 7 and they are not supported in JBoss EAP 7. This means container-managed persistence (CMP) and bean-managed persistence (BMP) entity beans must be rewritten to use Java Persistence API (JPA) entities when you migrate to JBoss EAP 7.

             

            In JBoss EAP 7, you must replace any CMP and BMP entity beans in your code with Java Persistence API (JPA) entities. JPA entities are created using the javax.persistence.* classes and are defined in the persistence.xml file.

            1 of 1 people found this helpful