3 Replies Latest reply on Apr 30, 2011 2:42 AM by jaikiran pai

    Problem Migrating from 5.0.1.GA to 6.0.0.Final

    mschwartzma Newbie

      I’m trying to migrate my server from JBoss-5.0.1.GA to JBoss-6.0.0.Final. I’ve made the change to hornetq but the EJB Local interface seems to be the cause of the ear load problem. Note: The ear loads correctly in JBoss-6.0.0.20100429-M3 but not JBoss-6.0.0.Final? Any help will be appreciated.

       

      The server.log

      09:20:22,643ERROR [ProfileServiceBootstrap] (Thread-2) Failed to load profile::org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary ofincomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

       

      DEPLOYMENTSIN ERROR:

        Deployment"vfs:///C:/servers/jboss-6.0.0.Final/server/default/deploy/XXXServer.ear"is in error due to the following reason(s): java.lang.RuntimeException:Specified reference [EJB Reference: beanInterface'com.ittvis.wps.processor.ProcessorLocal', beanName 'null', mappedName 'null',lookupName 'null', owning unit'ComponentDeploymentContext@13108889{org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData.SNRProcessListener}']was matched by more than one EJB: [org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData@e1f5cbcd{EchoProcessor},org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData@51febcfb{SNRProcessor},org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData@8981f3d9{IASImageRegistrationProcessor},org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData@2205ea5c{PanSharpenProcessor},org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData@3d533c2a{RxAnomalyDetectionProcessor},org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData@4e25ef0e{IPIPPanSharpenProcessor},org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData@bdb0d3a6{FPCompressProcessor},org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData@13836f30{CompressProcessor},org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData@32cfab62{AbortProcessor}].  Specify beanName explciitly or ensurebeanInterface is unique.

                      atorg.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228)[:2.2.0.GA]

                      atorg.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905)[:2.2.0.GA]

                      atorg.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87)[:6.0.0.Final]

                      atorg.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:107)[:0.2.2]

                      atorg.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:135)[:6.0.0.Final]

                      atorg.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56)[:6.0.0.Final]

                      atorg.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827)[jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

                      atorg.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417)[jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

                      atjava.lang.Thread.run(Thread.java:662) [:1.6.0_25]

       

      The boot.log

      09:20:22,486ERROR [AbstractKernelController] Error installing to Real:name=vfs:///C:/servers/jboss-6.0.0.Final/server/default/deploy/XXXServer.earstate=PreReal mode=Manual requiredState=Real:org.jboss.deployers.spi.DeploymentException: Error during deploy:org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData.SNRProcessListener

                      atorg.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)[:2.2.0.GA]

                      atorg.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:185)[:2.2.0.GA]

                      atorg.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832)[:2.2.0.GA]

                      atorg.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550)[:2.2.0.GA]

                      atorg.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571)[:2.2.0.GA]

                      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1603)[:2.2.0.GA]

                      atorg.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491)[:2.2.0.GA]

                      atorg.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)[jboss-dependency.jar:2.2.0.GA]

                      atorg.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)[jboss-dependency.jar:2.2.0.GA]

                      atorg.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)[jboss-dependency.jar:2.2.0.GA]

                      atorg.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)[jboss-dependency.jar:2.2.0.GA]

                      atorg.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)[jboss-dependency.jar:2.2.0.GA]

                      atorg.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)[jboss-dependency.jar:2.2.0.GA]

                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)[jboss-dependency.jar:2.2.0.GA]

                      atorg.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)[jboss-dependency.jar:2.2.0.GA]

                      atorg.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983)[:2.2.0.GA]

                      atorg.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076)[:2.2.0.GA]

                      atorg.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679)[:2.2.0.GA]

                      atorg.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106)[:6.0.0.Final]

                      atorg.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143)[:0.2.2]

                      atorg.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151)[:0.2.2]

                      atorg.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94)[:0.2.2]

                      at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)[jboss-kernel.jar:2.2.0.GA]

                      atorg.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)[jboss-kernel.jar:2.2.0.GA]

                      at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)[jboss-dependency.jar:2.2.0.GA]

                      atorg.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)[jboss-dependency.jar:2.2.0.GA]

                      atorg.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)[jboss-dependency.jar:2.2.0.GA]

                      atorg.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)[jboss-dependency.jar:2.2.0.GA]

                      atorg.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)[jboss-dependency.jar:2.2.0.GA]

                      atorg.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)[jboss-dependency.jar:2.2.0.GA]

                      atorg.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)[jboss-dependency.jar:2.2.0.GA]

                      atorg.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)[jboss-dependency.jar:2.2.0.GA]

                      atorg.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)[jboss-dependency.jar:2.2.0.GA]

                      atorg.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)[jboss-dependency.jar:2.2.0.GA]

                      atorg.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)[jboss-dependency.jar:2.2.0.GA]

                      atorg.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190)[:0.2.2]

                      atorg.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87)[:0.2.2]

                      atorg.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215)[:0.2.2]

                      atorg.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159)[:0.2.2]

                      atorg.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:112)[:0.2.2]

                      atorg.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:87)[:0.2.2]

                      atorg.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:91)[:0.2.2]

                      atorg.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:132)[:6.0.0.Final]

                      atorg.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56)[:6.0.0.Final]

                      atorg.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827)[jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

                      atorg.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417)[jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

                      atjava.lang.Thread.run(Thread.java:662) [:1.6.0_25]

      Caused by:java.lang.RuntimeException: Specified reference [EJB Reference: beanInterface'com.ittvis.wps.processor.ProcessorLocal', beanName 'null', mappedName 'null',lookupName 'null', owning unit'ComponentDeploymentContext@13108889{org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData.SNRProcessListener}']was matched by more than one EJB:[org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData@e1f5cbcd{EchoProcessor},org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData@51febcfb{SNRProcessor},org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData@8981f3d9{IASImageRegistrationProcessor},org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData@2205ea5c{PanSharpenProcessor},org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData@3d533c2a{RxAnomalyDetectionProcessor},org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData@4e25ef0e{IPIPPanSharpenProcessor},org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData@bdb0d3a6{FPCompressProcessor},org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData@13836f30{CompressProcessor},org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData@32cfab62{AbortProcessor}].  Specify beanName explciitly or ensurebeanInterface is unique.

                      atorg.jboss.ejb3.jndi.deployers.resolver.ScopedEJBBinderResolver.findBinder(ScopedEJBBinderResolver.java:212)[:0.1.7]

                      at org.jboss.ejb3.jndi.deployers.resolver.ScopedEJBBinderResolver.resolveEJBBinder(ScopedEJBBinderResolver.java:112)[:0.1.7]

                      atorg.jboss.ejb3.jndi.deployers.resolver.ScopedEJBBinderResolver.resolveEJBBinder(ScopedEJBBinderResolver.java:89)[:0.1.7]

                      at org.jboss.ejb3.jndi.deployers.resource.provider.AnnotatedEJBRefResourceProvider.provide(AnnotatedEJBRefResourceProvider.java:94)[:0.1.7]

                      atorg.jboss.ejb3.jndi.deployers.resource.provider.AnnotatedEJBRefResourceProvider.provide(AnnotatedEJBRefResourceProvider.java:50)[:0.1.7]

                      atorg.jboss.switchboard.mc.JndiEnvironmentProcessor.process(JndiEnvironmentProcessor.java:68)[:1.0.0-alpha-15]

                      atorg.jboss.switchboard.mc.deployer.AbstractSwitchBoardDeployer.process(AbstractSwitchBoardDeployer.java:119)[:1.0.0-alpha-15]

                      atorg.jboss.switchboard.mc.deployer.EJBEnvironmentSwitchBoardDeployer.internalDeploy(EJBEnvironmentSwitchBoardDeployer.java:87)[:1.0.0-alpha-15]

                      atorg.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)[:2.2.0.GA]

                      atorg.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)[:2.2.0.GA]

                      ...45 mo

       

      java -version

      java version "1.6.0_25"

      Java(TM) SE Runtime Environment (build 1.6.0_25-b06)

      Java HotSpot(TM) Client VM (build 20.0-b11, mixed mode)

       

      javac -version

      javac 1.6.0_25

        • 1. Problem Migrating from 5.0.1.GA to 6.0.0.Final
          jaikiran pai Master

          You seem to be having more than one EJB implementing the ProcessorLocal interface. Hence you will have to explicitly specify which EJB you want to inject via you @EJB. Use the beanName attribute of @EJB to specify the bean.

          • 2. Problem Migrating from 5.0.1.GA to 6.0.0.Final
            mschwartzma Newbie

            Thanks for your reply. Whould you happen to know if I'm missing an element in the <message-driven> descriptor below from my ejb-jar.xml. I am using the beanName attribute where possible in java source files.

             

                    <message-driven>

                        <ejb-name>SNRProcessListener</ejb-name>           

                        <mapped-name>SNRProcessListener</mapped-name>       

                        <ejb-class>com.ittvis.wps.processor.BaseProcessListener</ejb-class>

                        <message-destination-type>javax.jms.Queue</message-destination-type>

                        <activation-config>

                            <activation-config-property>

                                <activation-config-property-name>destination</activation-config-property-name>

                                <activation-config-property-value>queue/wpsSNRQueue</activation-config-property-value>

                            </activation-config-property>

                            <activation-config-property>

                                <activation-config-property-name>maxSession</activation-config-property-name>

                                <activation-config-property-value>1</activation-config-property-value>

                            </activation-config-property>

                        </activation-config>

                        <ejb-local-ref>           

                            <ejb-ref-name>ejb/PROCESSOR</ejb-ref-name>

                            <ejb-ref-type>Session</ejb-ref-type>

                            <local>com.ittvis.wps.processor.ProcessorLocal</local>

                            <ejb-link>SNRProcessor</ejb-link>               

                        </ejb-local-ref>

                    </message-driven>

             

            Thanks again,

             

            Martin

            • 3. Problem Migrating from 5.0.1.GA to 6.0.0.Final
              jaikiran pai Master

              Please also post the annotated bean classes, especially the one which uses the @EJB.