title: : Entity Beans are no longer supported
body: <p>I am using wildfly 10.0.x.
  And I am migrating ejb2.1 to ejb3.2 
  so this is my ejb-jar.xml file </p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;ejb-jar version="3.2" xmlns="http://xmlns.jcp.org/xml/ns/javaee"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
   xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/ejb-jar_3_2.xsd"&gt;
  &lt;description&gt;www.cedar.com - Collaborative Planning&lt;/description&gt;
  &lt;display-name&gt;CP - J2EE&lt;/display-name&gt;
  &lt;enterprise-beans&gt;
  
      &lt;!-- BudgetCycleEditorSession --&gt;
      &lt;session&gt;
          &lt;description&gt;no description&lt;/description&gt;
          &lt;display-name&gt;BudgetCycleEditorSessionSEJB&lt;/display-name&gt;
          &lt;ejb-name&gt;BudgetCycleEditorSessionSEJB&lt;/ejb-name&gt;
      &lt;!--//&lt;startUserCode BudgetCycleEditorSession-ws-endpoint--&gt;
      &lt;!--//&lt;endUserCode BudgetCycleEditorSession-ws-endpoint--&gt;      
            &lt;home&gt;com.cedar.cp.ejb.api.model.BudgetCycleEditorSessionHome&lt;/home&gt;
          &lt;remote&gt;com.cedar.cp.ejb.api.model.BudgetCycleEditorSessionRemote&lt;/remote&gt;
          &lt;local-home&gt;com.cedar.cp.ejb.api.model.BudgetCycleEditorSessionLocalHome&lt;/local-home&gt;
          &lt;local&gt;com.cedar.cp.ejb.api.model.BudgetCycleEditorSessionLocal&lt;/local&gt;
          &lt;ejb-class&gt;com.cedar.cp.ejb.impl.model.BudgetCycleEditorSessionSEJB&lt;/ejb-class&gt;
          &lt;session-type&gt;Stateless&lt;/session-type&gt;
          &lt;transaction-type&gt;Container&lt;/transaction-type&gt;
  
          &lt;ejb-local-ref&gt;
              &lt;ejb-ref-name&gt;ejb/ModelLocalHome&lt;/ejb-ref-name&gt;
              &lt;ejb-ref-type&gt;Entity&lt;/ejb-ref-type&gt;
              &lt;local-home&gt;com.cedar.cp.ejb.impl.model.ModelLocalHome&lt;/local-home&gt;
              &lt;local&gt;com.cedar.cp.ejb.impl.model.ModelLocal&lt;/local&gt;
              &lt;ejb-link&gt;ModelEEJB&lt;/ejb-link&gt;
          &lt;/ejb-local-ref&gt;
  
          &lt;ejb-local-ref&gt;
              &lt;ejb-ref-name&gt;ejb/DimensionLocalHome&lt;/ejb-ref-name&gt;
              &lt;ejb-ref-type&gt;Entity&lt;/ejb-ref-type&gt;
              &lt;local-home&gt;com.cedar.cp.ejb.impl.dimension.DimensionLocalHome&lt;/local-home&gt;
              &lt;local&gt;com.cedar.cp.ejb.impl.dimension.DimensionLocal&lt;/local&gt;
              &lt;ejb-link&gt;DimensionEEJB&lt;/ejb-link&gt;
          &lt;/ejb-local-ref&gt;
  
          &lt;resource-ref&gt;
              &lt;res-ref-name&gt;jdbc/fc&lt;/res-ref-name&gt;&lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;&lt;res-auth&gt;Container&lt;/res-auth&gt;
          &lt;/resource-ref&gt;
          &lt;resource-ref&gt;
              &lt;res-ref-name&gt;jdbc/oa&lt;/res-ref-name&gt;&lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;&lt;res-auth&gt;Container&lt;/res-auth&gt;
          &lt;/resource-ref&gt;
          &lt;resource-ref&gt;
              &lt;res-ref-name&gt;jdbc/ad&lt;/res-ref-name&gt;&lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;&lt;res-auth&gt;Container&lt;/res-auth&gt;
          &lt;/resource-ref&gt;
          &lt;resource-ref&gt;
            &lt;res-ref-name&gt;jdbc/db2&lt;/res-ref-name&gt;&lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;&lt;res-auth&gt;Container&lt;/res-auth&gt;
        &lt;/resource-ref&gt;
          &lt;resource-ref&gt;
              &lt;res-ref-name&gt;jms/cp/TopicConnectionFactory&lt;/res-ref-name&gt;
              &lt;res-type&gt;javax.jms.TopicConnectionFactory&lt;/res-type&gt;
              &lt;res-auth&gt;Container&lt;/res-auth&gt;
              &lt;res-sharing-scope&gt;Shareable&lt;/res-sharing-scope&gt;
          &lt;/resource-ref&gt;
          &lt;resource-ref&gt;
              &lt;res-ref-name&gt;jms/cp/entityEventTopic&lt;/res-ref-name&gt;
              &lt;res-type&gt;javax.jms.Topic&lt;/res-type&gt;
              &lt;res-auth&gt;Container&lt;/res-auth&gt;
              &lt;res-sharing-scope&gt;Shareable&lt;/res-sharing-scope&gt;
          &lt;/resource-ref&gt;
      &lt;/session&gt;
  
      &lt;entity&gt;
          &lt;description&gt;MODEL table entity bean&lt;/description&gt;
          &lt;display-name&gt;ModelEEJB&lt;/display-name&gt;
          &lt;ejb-name&gt;ModelEEJB&lt;/ejb-name&gt;
          &lt;local-home&gt;com.cedar.cp.ejb.impl.model.ModelLocalHome&lt;/local-home&gt;
          &lt;local&gt;com.cedar.cp.ejb.impl.model.ModelLocal&lt;/local&gt;
          &lt;ejb-class&gt;com.cedar.cp.ejb.impl.model.ModelEEJB&lt;/ejb-class&gt;
          &lt;persistence-type&gt;Bean&lt;/persistence-type&gt;
          &lt;prim-key-class&gt;com.cedar.cp.dto.model.ModelPK&lt;/prim-key-class&gt;
          &lt;reentrant&gt;false&lt;/reentrant&gt;
          &lt;resource-ref&gt;
              &lt;res-ref-name&gt;jdbc/fc&lt;/res-ref-name&gt;&lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;&lt;res-auth&gt;Container&lt;/res-auth&gt;
          &lt;/resource-ref&gt;
      &lt;/entity&gt;
  
      &lt;/enterprise-beans&gt;
  
      &lt;assembly-descriptor&gt;
          &lt;method-permission&gt;
                  &lt;unchecked/&gt;
              &lt;method&gt;
                  &lt;ejb-name&gt;ModelEEJB&lt;/ejb-name&gt;
                  &lt;method-name&gt;*&lt;/method-name&gt;
              &lt;/method&gt;
          &lt;/method-permission&gt;
      &lt;container-transaction&gt;
          &lt;method&gt;&lt;ejb-name&gt;ModelEEJB&lt;/ejb-name&gt;&lt;method-name&gt;*&lt;/method-name&gt;&lt;/method&gt;&lt;trans-attribute&gt;Required&lt;/trans-attribute&gt;
      &lt;/container-transaction&gt;
      &lt;/assembly-descriptor&gt;
   &lt;/ejb-jar&gt;
  </code></pre>
  
  <p>But I cannot deploy this ejb to server.</p>
  
  <p>23:05:46,635 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.unit."cppro.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."cppro.war".PARSE: WFLYSRV0153: Failed to process phase PARSE of deployment "cppro.war"
      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(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
  Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEJB0450: Entity Beans are no longer supported, beans ModelEEJB 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</p>
  
  <p>How can I fix it?</p>