3 Replies Latest reply on Dec 14, 2010 11:20 AM by Roger Lee

    Porting JBoss 4.2.4 EJB 3.x app to JBoss 6.0 CR1

    Roger Lee Apprentice

      I'm trying to port a live Jboss 4.2.3 EJB3 & Seam application to jboss-6.0.0.20101110-CR1

       

      Jboss 6.x starts fine when the EAR isn't deployed.

       

      I have also copied the jboss-seam-2.2.1.CR2 JARs to the Jboss lib directory and use the jboss-seam-2.2.1.CR2 JARs when I build.

       

      I deploy my EAR and I get;

       

      14:00:55,779 ERROR [AbstractKernelController] Error installing to PostClassLoader: name=vfs:///C:/jboss-6.0.0.20101110-CR1/server/de

      fault/deploy/WeEatWell.ear state=ClassLoader mode=Manual requiredState=PostClassLoader: org.jboss.deployers.spi.DeploymentException:

      Error during deploy: vfs:///C:/jboss-6.0.0.20101110-CR1/server/default/deploy/WeEatWell.ear/WeEatWell.jar/

      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) [:2.2.0.Alpha8]

      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:185) [:2.2.0.Alpha8]

      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.Alpha8]

      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.Alpha8]

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

      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.Alpha8]

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

      2.2.0.Alpha10]

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

      ]

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

      Alpha10]

      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-depe

      ndency.jar:2.2.0.Alpha10]

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

      .Alpha10]

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

      .Alpha10]

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

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

      at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.Alpha8]

      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.Alpha8]

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

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

      -CR1]

      at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:130)

      [:0.1.0.Alpha1]

      at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:148) [:0.1.0.Alpha1]

      at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.1.0.Alpha1

      ]

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

      0.Alpha10]

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

      0.Alpha10]

      at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:

      62) [jboss-dependency.jar:2.2.0.Alpha10]

      at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-d

      ependency.jar:2.2.0.Alpha10]

      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-de

      pendency.jar:2.2.0.Alpha10]

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

      2.2.0.Alpha10]

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

      ]

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

      Alpha10]

      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-depe

      ndency.jar:2.2.0.Alpha10]

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

      .Alpha10]

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

      .Alpha10]

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

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

      at org.jboss.profileservice.dependency.ProfileServiceController.activate(ProfileServiceController.java:188) [:0.1.0.Alpha1]

      at org.jboss.profileservice.AbstractProfileService.activateProfile(AbstractProfileService.java:170) [:0.1.0.Alpha1]

      at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:117) [:0

      .1.0.Alpha1]

      at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:89) [:0.1.0

      .Alpha1]

      at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:97) [:0.1.0

      .Alpha1]

      at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:130

      ) [:6.0.0.20101110-CR1]

      at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56)

      [:6.0.0.20101110-CR1]

      at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.j

      ar:2.1.0-alpha-5]

      at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-ba

      se.jar:2.1.0-alpha-5]

      at java.lang.Thread.run(Unknown Source) [:1.6.0_20]

      Caused by: org.jboss.metadata.validation.chain.ValidatorChainException: Validation has failed due to the following ValidationExcepti

      on(s) raised:

      * EJB UserRemote has defined EJB2.x local component interface of com.weeatwell.interfaces.UserRemote but has no localHome; ; Incompl

      ete EJB2.x View [JBMETA-130]

       

      at org.jboss.metadata.validation.chain.ejb.jboss.JBossMetaDataValidatorChain.validate(JBossMetaDataValidatorChain.java:130)

      [:2.0.0-alpha-22]

      at org.jboss.ejb3.deployers.Ejb3MetadataProcessingDeployer.deploy(Ejb3MetadataProcessingDeployer.java:147) [:6.0.0.20101110-

      CR1]

      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.Alpha8]

      ... 42 more

       

      14:00:57,311 WARNING [FileConfigurationParser] AIO wasn't located on this platform, it will fall back to using pure Java NIO. If you

      r platform is Linux, install LibAIO to enable the AIO journal

      14:00:57,470 INFO [JMXConnector] starting JMXConnector on host 127.0.0.1:1090

      14:00:57,610 INFO [MailService] Mail Service bound to java:/Mail

      14:00:58,866 INFO [HornetQServerImpl] live server is starting..

      14:00:58,925 INFO [JournalStorageManager] Using NIO Journal

      14:00:58,947 WARNING [HornetQServerImpl] Security risk! It has been detected that the cluster admin user and password have not been

      changed from the installation default. Please see the HornetQ user guide, cluster chapter, for instructions on how to do this.

      14:01:01,083 INFO [NettyAcceptor] Started Netty Acceptor version 3.2.1.Final-r2319 127.0.0.1:5445 for CORE protocol

      14:01:01,087 INFO [NettyAcceptor] Started Netty Acceptor version 3.2.1.Final-r2319 127.0.0.1:5455 for CORE protocol

      14:01:01,090 INFO [HornetQServerImpl] HornetQ Server version 2.1.2.Final (Colmeia, 120) started

      14:01:01,130 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/

      14:01:01,320 INFO [arjuna] ARJUNA-12202 registering bean jboss.jta:type=ObjectStore.

      14:01:01,357 INFO [jbossatx] ARJUNA-32010 JBossTS Recovery Service (tag: JBOSSTS_4_13_1_Final) - JBoss Inc.

      14:01:01,363 INFO [arjuna] ARJUNA-12324 Start RecoveryActivators

      14:01:01,373 INFO [arjuna] ARJUNA-12296 ExpiredEntryMonitor running at Tue, 14 Dec 2010 14:01:01

      14:01:01,430 INFO [arjuna] ARJUNA-12310 Recovery manager listening on endpoint 127.0.0.1:4712

      14:01:01,431 INFO [arjuna] ARJUNA-12344 RecoveryManagerImple is ready on port 4712

      14:01:01,432 INFO [jbossatx] ARJUNA-32013 Starting transaction recovery manager

      14:01:01,465 INFO [jbossatx] ARJUNA-32017 JBossTS Transaction Service (JTA version - tag: JBOSSTS_4_13_1_Final) - JBoss Inc.

      14:01:02,352 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environmen

      ts was not found on the java.library.path: C:\Program Files\Java\jre1.6.0_20\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Wi

      ndows;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows

      \System32\WindowsPowerShell\v1.0\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Windows Live\Shared

      14:01:02,457 INFO [ModClusterService] Initializing mod_cluster 1.1.0.Final

      14:01:02,470 INFO [TomcatDeployment] deploy, ctxPath=/invoker

      14:01:02,814 INFO [RARDeployment] Required license terms exist, view vfs:/C:/jboss-6.0.0.20101110-CR1/server/default/deploy/jboss-l

      ocal-jdbc.rar/META-INF/ra.xml

      14:01:02,829 INFO [RARDeployment] Required license terms exist, view vfs:/C:/jboss-6.0.0.20101110-CR1/server/default/deploy/jboss-x

      a-jdbc.rar/META-INF/ra.xml

      14:01:02,837 INFO [RARDeployment] Required license terms exist, view vfs:/C:/jboss-6.0.0.20101110-CR1/server/default/deploy/jms-ra.

      rar/META-INF/ra.xml

      14:01:02,853 INFO [HornetQResourceAdapter] HornetQ resource adaptor started

      14:01:02,861 INFO [RARDeployment] Required license terms exist, view vfs:/C:/jboss-6.0.0.20101110-CR1/server/default/deploy/mail-ra

      .rar/META-INF/ra.xml

      14:01:02,873 INFO [RARDeployment] Required license terms exist, view vfs:/C:/jboss-6.0.0.20101110-CR1/server/default/deploy/quartz-

      ra.rar/META-INF/ra.xml

      14:01:02,955 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: Thread-2

      14:01:03,028 INFO [SchedulerSignalerImpl] Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl

      14:01:03,028 INFO [QuartzScheduler] Quartz Scheduler v.1.8.3 created.

      14:01:03,032 INFO [RAMJobStore] RAMJobStore initialized.

      14:01:03,034 INFO [QuartzScheduler] Scheduler meta-data: Quartz Scheduler (v1.8.3) 'JBossQuartzScheduler' with instanceId 'NON_CLUS

      TERED'

      Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.

      NOT STARTED.

      Currently in standby mode.

      Number of jobs executed: 0

      Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.

      Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

       

      14:01:03,035 INFO [StdSchedulerFactory] Quartz scheduler 'JBossQuartzScheduler' initialized from an externally opened InputStream.

      14:01:03,036 INFO [StdSchedulerFactory] Quartz scheduler version: 1.8.3

      14:01:03,041 INFO [QuartzScheduler] Scheduler JBossQuartzScheduler_$_NON_CLUSTERED started.

      14:01:03,154 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=WeEatWellDatasource'

      to JNDI name 'WeEatWellDatasource'

      14:01:04,014 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to

      JNDI name 'java:DefaultDS'

      14:01:04,218 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA'

      to JNDI name 'java:JmsXA'

      14:01:04,301 INFO [xnio] XNIO Version 2.1.0.CR2

      14:01:04,313 INFO [nio] XNIO NIO Implementation Version 2.1.0.CR2

      14:01:04,475 INFO [remoting] JBoss Remoting version 3.1.0.Beta2

      14:01:04,585 INFO [TomcatDeployment] deploy, ctxPath=/

      14:01:04,683 INFO [service] Removing bootstrap log handlers

      14:01:04,735 ERROR [org.jboss.profileservice.bootstrap] Failed to load profile:: org.jboss.deployers.client.spi.IncompleteDeployment

      Exception: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

       

      DEPLOYMENTS IN ERROR:

      Deployment "vfs:///C:/jboss-6.0.0.20101110-CR1/server/default/deploy/WeEatWell.ear" is in error due to the following reason(s): or

      g.jboss.metadata.validation.chain.ValidatorChainException: Validation has failed due to the following ValidationException(s) raised:

       

      * EJB UserRemote has defined EJB2.x local component interface of com.weeatwell.interfaces.UserRemote but has no localHome; ; Incompl

      ete EJB2.x View [JBMETA-130]

       

       

      at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.0.Alpha8]

      at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.0.Alpha8]

      at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.0.0.201

      01110-CR1]

      at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:118

      ) [:0.1.0.Alpha1]

      at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:133

      ) [:6.0.0.20101110-CR1]

      at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56)

      [:6.0.0.20101110-CR1]

      at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.j

      ar:2.1.0-alpha-5]

      at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-ba

      se.jar:2.1.0-alpha-5]

      at java.lang.Thread.run(Unknown Source) [:1.6.0_20]

       

      These seems to imply I'm trying to deploy an EJB 2.x App?

       

      Have Googled of course and can't find any definite answer.