3 Replies Latest reply on Aug 23, 2012 8:46 AM by Wolf-Dieter Fink

    Problem whe migrating from JBoss 4.0.5 to JBoss 6.1.0

    Alexandru Ionut Bujdei Newbie

      Hello.

      I recenty started to migrate a project from JBoss AS 4.0.5 to JBoss AS 6.1.0.

      The project uses EJB2.0 and also Hibernate.

       

      One of the inital problems was in the jboss.xml file. There, I had the following interceptor defined:

       

      <interceptor service="jboss.har:service=Hibernate" scope="transaction">org.jboss.hibernate.session.EjbInterceptor</interceptor>

       

      When moving to JBoss6 I updated the <!DOCTYPE of the document to the following:

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE jboss PUBLIC

           "-//JBoss//DTD JBOSS 7.0//EN"

           "http://www.jboss.org/j2ee/dtd/jboss_6_0.dtd">

       

      This seemed to work regarding this issue.

      I made the change of the doctype declaration in 3 jars that contain various components of the application.

       

      After other minor issues I have stumbled upon this:

       

      16:06:25,762 INFO  [EjbModule] Deploying ProgrProviderBean

      16:06:25,774 INFO  [EjbModule] Deploying ProgrGenNewTransaction

      16:06:25,781 INFO  [EjbModule] Deploying SequenceBean

      16:06:25,788 INFO  [EjbModule] Deploying ProgrSequenceBean

      16:06:25,798 INFO  [EjbModule] Deploying PKProviderBean

      16:06:25,806 INFO  [EjbModule] Deploying Facade

      16:06:25,814 INFO  [EjbModule] Deploying RadioInventarioFacade

      16:06:25,821 INFO  [EjbModule] Deploying MovimentiBean

       

      16:06:25,929 INFO  [EntityContainer] Registration is not done -> stop

      16:06:25,938 WARN  [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:jndiName=logistica/MovimentiBean,service=EJB

      16:06:25,939 INFO  [EjbModule] Undeployed MovimentiBean

      16:06:25,940 WARN  [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:jndiName=logistica/RadioInventarioFacade,service=EJB

      16:06:25,940 INFO  [EjbModule] Undeployed RadioInventarioFacade

      16:06:25,942 WARN  [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:jndiName=logistica/Facade,service=EJB

      16:06:25,943 INFO  [EjbModule] Undeployed Facade

      16:06:25,946 INFO  [BaseLocalProxyFactory] Unbind EJB LocalHome 'PKProviderBean' from jndi 'PK/PKProviderBean'

      16:06:25,954 INFO  [EjbModule] Undeployed PKProviderBean

      16:06:25,955 WARN  [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:jndiName=local/ProgrSequenceBean@653835530,service=EJB

      16:06:25,956 INFO  [EjbModule] Undeployed ProgrSequenceBean

      16:06:25,960 INFO  [BaseLocalProxyFactory] Unbind EJB LocalHome 'SequenceBean' from jndi 'PK/SequenceBean'

      16:06:25,963 INFO  [EjbModule] Undeployed SequenceBean

      16:06:25,964 WARN  [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:jndiName=local/ProgrGenNewTransaction@632643861,service=EJB

      16:06:25,964 INFO  [EjbModule] Undeployed ProgrGenNewTransaction

      16:06:25,965 INFO  [BaseLocalProxyFactory] Unbind EJB LocalHome 'ProgrProviderBean' from jndi 'PK/ProgrProviderBean'

      16:06:25,969 INFO  [EjbModule] Undeployed ProgrProviderBean

      16:06:25,969 INFO  [ProxyFactory] Unbind EJB Home 'VoiceInteFacade' from jndi 'logistica/VoiceInteFacade'

      16:06:25,974 INFO  [EjbModule] Undeployed VoiceInteFacade

      16:06:25,975 INFO  [ProxyFactory] Unbind EJB Home 'TracciabilitaFacade' from jndi 'logistica/TracciabilitaFacade'

      16:06:25,980 INFO  [EjbModule] Undeployed TracciabilitaFacade

      16:06:25,982 INFO  [ProxyFactory] Unbind EJB Home 'InventarioFacade' from jndi 'logistica/InventarioFacade'

      16:06:25,986 INFO  [EjbModule] Undeployed InventarioFacade

      16:06:25,987 INFO  [ProxyFactory] Unbind EJB Home 'TerminaliniFacade' from jndi 'logistica/TerminaliniFacade'

      16:06:25,992 INFO  [EjbModule] Undeployed TerminaliniFacade

      16:06:25,993 INFO  [ProxyFactory] Unbind EJB Home 'RadioLogPreArticoloFacade' from jndi 'logistica/RadioLogPreArticoloFacade'

      16:06:26,001 INFO  [EjbModule] Undeployed RadioLogPreArticoloFacade

      16:06:26,002 ERROR [AbstractKernelController] Error installing to Create: name=jboss.j2ee:module="logistica.jar",service=EjbModule state=Configured mode=Manual requiredState=Create: javax.management.I

      nstanceAlreadyExistsException: jboss.j2ee:jndiName=PK/ProgrProviderBean,service=EJB already registered.

              at org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistry.java:772) [:6.0.0.GA]

              at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:236) [:6.0.0.GA]

              at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source) [:1.6.0_33]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_33]

              at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_33]

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA]

              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138) [:6.0.0.GA]

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:90) [:6.0.0.GA]

              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140) [:6.0.0.GA]

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:90) [:6.0.0.GA]

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) [:6.0.0.GA]

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA]

              at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1443) [:6.0.0.GA]

              at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_33]

              at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1438) [:6.0.0.GA]

              at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:378) [:6.0.0.GA]

              at org.jboss.ejb.EjbModule.createService(EjbModule.java:418) [:6.1.0.Final]

              at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:323) [:6.1.0.Final (Build SVNTag:JBoss_6.1.0.Final date: 20110816)]

              at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:299) [:6.1.0.Final (Build SVNTag:JBoss_6.1.0.Final date: 20110816)]

              at sun.reflect.GeneratedMethodAccessor325.invoke(Unknown Source) [:1.6.0_33]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_33]

              at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_33]

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA]

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.GA]

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) [:6.0.0.GA]

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA]

              at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189) [:2.2.0.SP2]

              at $Proxy41.create(Unknown Source)      at org.jboss.system.microcontainer.CreateDestroyLifecycleAction.installAction(CreateDestroyLifecycleAction.java:54) [:2.2.0.SP2]

              at org.jboss.system.microcontainer.CreateDestroyLifecycleAction.installAction(CreateDestroyLifecycleAction.java:42) [:2.2.0.SP2]

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

              at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.SP2]

              at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.SP2]

              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.SP2]

              at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301) [:2.2.0.SP2]

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.SP2]

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.SP2]

              at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.SP2]

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.SP2]

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.SP2]

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

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

              at org.jboss.system.ServiceController.doChange(ServiceController.java:671) [:6.1.0.Final (Build SVNTag:JBoss_6.1.0.Final date: 20110816)]

              at org.jboss.system.ServiceController.create(ServiceController.java:405) [:6.1.0.Final (Build SVNTag:JBoss_6.1.0.Final date: 20110816)]

              at org.jboss.system.ServiceController.create(ServiceController.java:370) [:6.1.0.Final (Build SVNTag:JBoss_6.1.0.Final date: 20110816)]

              at org.jboss.system.deployers.ServiceDeployer.create(ServiceDeployer.java:184) [:6.1.0.Final]

              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99) [:6.1.0.Final]

              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:49) [:6.1.0.Final]

              at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:63) [:2.2.2.GA]

              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.2.GA]

              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.2.GA]

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.2.GA]

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.2.GA]

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571) [:2.2.2.GA]

              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.2.GA]

              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.SP2]

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.SP2]

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.SP2]

              at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.SP2]

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.SP2]

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.SP2]

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

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

              at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.2.GA]

              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.2.GA]

              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.2.GA]

              at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.1.0.Final]

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

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

              at org.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.SP2]

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

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

              at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.SP2]

              at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.SP2]

              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.SP2]

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.SP2]

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.SP2]

              at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.SP2]

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.SP2]

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.SP2]

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

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

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

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

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

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

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

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

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

              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:132) [:6.1.0.Final]

              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.1.0.Final]

              at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-6]

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

              at java.lang.Thread.run(Thread.java:662) [:1.6.0_33]

       

      I tried a couple of changes , searched the blogs, everything, but nothing seems to work. I know this issue has been adressed prior to this but nothing has worked.

      Please advise.

      Thank you.

       

      P.S. If more information is required I will gladly provide it.