0 Replies Latest reply on Jul 3, 2013 9:00 AM by jay gohel

    Error deploying EJB in JBOSS-eap-6.1.0

    jay gohel Newbie

      Hello,

       

      I am migrating my JBOSS from 4.2.2 to JBOSS-EAP-6.1.0.

       

      I am trying to deploy EJB as jar and it gives following error on server startup.

       

      17:57:21,720 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "rlx-ejb.jar" (runtime-name: "rlx-ejb.jar")

      17:57:23,736 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean named CustomizationLevelFacade in deployment unit deployment "rlx-ejb.jar" are as follows:

       

          java:global/rlx-ejb/CustomizationLevelFacade!com.clx.ejb.facade.CustomizationLevelFacadeLocal

          java:app/rlx-ejb/CustomizationLevelFacade!com.clx.ejb.facade.CustomizationLevelFacadeLocal

          java:module/CustomizationLevelFacade!com.clx.ejb.facade.CustomizationLevelFacadeLocal

          java:global/rlx-ejb/CustomizationLevelFacade!com.clx.ejb.facade.CustomizationLevelFacadeLocalHome

          java:app/rlx-ejb/CustomizationLevelFacade!com.clx.ejb.facade.CustomizationLevelFacadeLocalHome

          java:module/CustomizationLevelFacade!com.clx.ejb.facade.CustomizationLevelFacadeLocalHome

          java:global/rlx-ejb/CustomizationLevelFacade!com.clx.ejb.facade.CustomizationLevelFacade

          java:app/rlx-ejb/CustomizationLevelFacade!com.clx.ejb.facade.CustomizationLevelFacade

          java:module/CustomizationLevelFacade!com.clx.ejb.facade.CustomizationLevelFacade

          java:jboss/exported/rlx-ejb/CustomizationLevelFacade!com.clx.ejb.facade.CustomizationLevelFacade

          java:global/rlx-ejb/CustomizationLevelFacade!com.clx.ejb.facade.CustomizationLevelFacadeHome

          java:app/rlx-ejb/CustomizationLevelFacade!com.clx.ejb.facade.CustomizationLevelFacadeHome

          java:module/CustomizationLevelFacade!com.clx.ejb.facade.CustomizationLevelFacadeHome

          java:jboss/exported/rlx-ejb/CustomizationLevelFacade!com.clx.ejb.facade.CustomizationLevelFacadeHome

       

      17:57:26,689 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."rlx-ejb.jar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."rlx-ejb.jar".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment "rlx-ejb.jar"

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0]

          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011030: Could not configure component CustomizationLevelFacade

          at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:91)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

          ... 5 more

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS014522: Could not find method public abstract boolean javax.ejb.EJBLocalObject.isIdentical(javax.ejb.EJBLocalObject) throws javax.ejb.EJBException from view com.clx.ejb.facade.CustomizationLevelFacadeLocal on EJB class CustomizationLevelFacade

          at org.jboss.as.ejb3.component.session.SessionBeanObjectViewConfigurator.configure(SessionBeanObjectViewConfigurator.java:112)

          at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:929)

          at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:80)

          ... 6 more

       

       

      17:57:27,033 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 26) JBAS018559: Deployed "rlx-ejb.jar" (runtime-name : "rlx-ejb.jar")

      17:57:27,033 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report

      JBAS014775:    New missing/unsatisfied dependencies:

           service jboss.naming.context.java.comp.rlx-ejb.rlx-ejb.CustomizationLevelFacade (missing) dependents: [service jboss.naming.context.java.comp.rlx-ejb.rlx-ejb.CustomizationLevelFacade.ValidatorFactory, service jboss.naming.context.java.comp.rlx-ejb.rlx-ejb.CustomizationLevelFacade.Validator]

       

      I have ejb-jar.xml in META-INF folder. following are the enteries in ejb-jar.xml.

       

      <ejb-jar >

       

          <description>

          </description>

          <display-name>Generated by XDoclet</display-name>

          <enterprise-beans>

           <session>

                  <description>

                  </description>

                  <ejb-name>CustomizationLevelFacade</ejb-name>

                  <home>com.clx.ejb.facade.CustomizationLevelFacadeHome</home>

                  <remote>com.clx.ejb.facade.CustomizationLevelFacade</remote>

                  <local-home>com.clx.ejb.facade.CustomizationLevelFacadeLocalHome</local-home>

                  <local>com.clx.ejb.facade.CustomizationLevelFacadeLocal</local>

                  <ejb-class>com.clx.ejb.facade.CustomizationLevelFacadeEJB</ejb-class>

                  <session-type>Stateless</session-type>

                  <transaction-type>Container</transaction-type>

              </session>

      </enterprise-beans>         

      <method-permission >

                  <description>

                  </description>

                  <unchecked/>

                  <method >

                      <description>

                      </description>

                      <ejb-name>CustomizationLevelFacade</ejb-name>

                      <method-intf>LocalHome</method-intf>

                      <method-name>create</method-name>

                      <method-params>

                      </method-params>

                  </method>

              </method-permission>

              <method-permission >

                  <description>

                  </description>

                  <unchecked/>

                  <method >

                      <description>

                      </description>

                      <ejb-name>CustomizationLevelFacade</ejb-name>

                      <method-intf>Home</method-intf>

                      <method-name>create</method-name>

                      <method-params>

                      </method-params>

                  </method>

              </method-permission>

       

      <entity >

                  <description><![CDATA[This class is part of Razorlynx persistence layer, and it is a CMP EJB accessing the ALERT_LEVELS table.]]>

                  </description>

       

                  <ejb-name>CustomizationLevel</ejb-name>

       

                  <home>com.clx.ejb.customizationlevel.CustomizationLevelHome</home>

                  <remote>com.clx.ejb.customizationlevel.CustomizationLevel</remote>

                  <local-home>com.clx.ejb.customizationlevel.CustomizationLevelLocalHome</local-home>

                  <local>com.clx.ejb.customizationlevel.CustomizationLevelLocal</local>

       

                  <ejb-class>com.clx.ejb.customizationlevel.CustomizationLevelBean</ejb-class>

                  <persistence-type>Container</persistence-type>

                  <prim-key-class>java.lang.Integer</prim-key-class>

                  <reentrant>False</reentrant>

                  <cmp-version>2.x</cmp-version>

                  <abstract-schema-name>CustomizationLevel</abstract-schema-name>

                  <cmp-field >

                      <description><![CDATA[Returns the customizationLevelId]]>

                      </description>

                      <field-name>customizationLevelId</field-name>

                  </cmp-field>

                  <cmp-field >

                      <description><![CDATA[Returns the customizationLevelName]]>

                      </description>

                      <field-name>customizationLevelName</field-name>

                  </cmp-field>

                  <cmp-field >

                      <description><![CDATA[Returns the customizationLevelDesc]]>

                      </description>

                      <field-name>customizationLevelDesc</field-name>

                  </cmp-field>

                  <primkey-field>customizationLevelId</primkey-field>

       

                  <query>

                      <description><![CDATA[Find all entities.]]>

                      </description>

                      <query-method>

                          <method-name>findAll</method-name>

                          <method-params>

                          </method-params>

                      </query-method>

                      <result-type-mapping>Local</result-type-mapping>

                      <ejb-ql><![CDATA[SELECT OBJECT(o) FROM CustomizationLevel o]]>

                      </ejb-ql>

                  </query>

                  <query>

                      <description><![CDATA[Finder for not indexed column CUSTOMIZATION_LEVEL_NAME.]]>

                      </description>

                      <query-method>

                          <method-name>findByCustomizationLevelName</method-name>

                          <method-params>

                              <method-param>java.lang.String</method-param>

                          </method-params>

                      </query-method>

                      <result-type-mapping>Local</result-type-mapping>

                      <ejb-ql><![CDATA[SELECT DISTINCT OBJECT(o) FROM CustomizationLevel o WHERE o.customizationLevelName = ?1]]>

                      </ejb-ql>

                  </query>

                  <query>

                      <description><![CDATA[Finder for not indexed column CUSTOMIZATION_LEVEL_DESC.]]>

                      </description>

                      <query-method>

                          <method-name>findByCustomizationLevelDesc</method-name>

                          <method-params>

                              <method-param>java.lang.String</method-param>

                          </method-params>

                      </query-method>

                      <result-type-mapping>Local</result-type-mapping>

                      <ejb-ql><![CDATA[SELECT DISTINCT OBJECT(o) FROM CustomizationLevel o WHERE o.customizationLevelDesc = ?1]]>

                      </ejb-ql>

                  </query>

            <!-- Write a file named ejb-finders-CustomizationLevelBean.xml if you want to define extra finders. -->

              </entity>

      <container-transaction >

                  <method >

                      <ejb-name>CustomizationLevel</ejb-name>

                      <method-name>*</method-name>

                  </method>

                  <trans-attribute>Required</trans-attribute>

              </container-transaction>

              <container-transaction >

                  <method >

                      <ejb-name>CustomizationLevel</ejb-name>

                      <method-intf>LocalHome</method-intf>

                      <method-name>create</method-name>

                      <method-params>

                          <method-param>com.clx.model.CustomizationLevelModel</method-param>

                      </method-params>

                  </method>

                  <trans-attribute>RequiresNew</trans-attribute>

              </container-transaction>

              <container-transaction >

                  <method >

                      <ejb-name>CustomizationLevel</ejb-name>

                      <method-intf>Home</method-intf>

                      <method-name>create</method-name>

                      <method-params>

                          <method-param>com.clx.model.CustomizationLevelModel</method-param>

                      </method-params>

                  </method>

                  <trans-attribute>RequiresNew</trans-attribute>

              </container-transaction>

      ....</ejb-jar>

       

      Could anybody help me on this?