We're currently using JBoss 4.0.4 but we want to migrate to JBoss 5. We know, 
the 5 is still beta but we want to do some tests anyway.

We think we modified the necessary config files, for datasources, JMS, ... but 
our EJBs won't deploy. We're getting a ClassCastException because of 
org.jboss.metadata.ejb.spec.EjbJar20MetaData.

Any idea what might be wrong?

Are there docs yet about the migration from 4.0 to 5.0?

Thanks,

Nick.

Stacktrace:anonymous wrote : [...]
  | 2008-01-17 13:41:52,523 DEBUG 
[org.jboss.ejb.deployers.MergedJBossMetaDataDeployer] Error during deploy: 
vfsfile:/C:/java/jboss-5.0.0.Beta3/server/nokeos-production/deploy/0-nokeoscore-server.jar
  | java.lang.ClassCastException: org.jboss.metadata.ejb.spec.EjbJar20MetaData
  |  at 
org.jboss.ejb.deployers.MergedJBossMetaDataDeployer.deploy(MergedJBossMetaDataDeployer.java:79)
  |  at 
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
  |  at 
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
  |  at 
org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
  |  at 
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
  |  at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
  |  at 
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
  |  at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
  |  at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
  |  at 
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
  |  at 
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
  |  at 
org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
  |  at 
org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
  |  at 
org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
  |  at 
org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
  |  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
  |  at 
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
  |  at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
  |  at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
  |  at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
  |  at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
  |  at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
  |  at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
  |  at java.lang.Thread.run(Thread.java:595)
  | 2008-01-17 13:41:52,539 ERROR 
[org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing 
to PostClassLoader: 
name=vfsfile:/C:/java/jboss-5.0.0.Beta3/server/nokeos-production/deploy/0-nokeoscore-server.jar
 state=ClassLoader mode=Manual requiredState=PostClassLoader
  | org.jboss.deployers.spi.DeploymentException: Error during deploy: 
vfsfile:/C:/java/jboss-5.0.0.Beta3/server/nokeos-production/deploy/0-nokeoscore-server.jar
  |  at 
org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
  |  at 
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:175)
  |  at 
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
  |  at 
org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
  |  at 
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
  |  at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
  |  at 
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
  |  at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
  |  at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
  |  at 
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
  |  at 
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
  |  at 
org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
  |  at 
org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
  |  at 
org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
  |  at 
org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
  |  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
  |  at 
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
  |  at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
  |  at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
  |  at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
  |  at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
  |  at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
  |  at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
  |  at java.lang.Thread.run(Thread.java:595)
  | Caused by: java.lang.ClassCastException: 
org.jboss.metadata.ejb.spec.EjbJar20MetaData
  |  at 
org.jboss.ejb.deployers.MergedJBossMetaDataDeployer.deploy(MergedJBossMetaDataDeployer.java:79)
  |  at 
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
  |  ... 22 more
  | 2008-01-17 13:41:52,648 DEBUG 
[org.jboss.mx.loading.UnifiedLoaderRepository3] UnifiedLoaderRepository 
removed(true) [EMAIL PROTECTED] 
url=vfsfile:/C:/java/jboss-5.0.0.Beta3/server/nokeos-production/deploy/0-nokeoscore-server.jar
 ,addedOrder=50}
  | 2008-01-17 13:41:52,648 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] 
Unregistering [EMAIL PROTECTED] 
url=vfsfile:/C:/java/jboss-5.0.0.Beta3/server/nokeos-production/deploy/0-nokeoscore-server.jar
 ,addedOrder=50}
  | 2008-01-17 13:41:52,648 DEBUG 
[org.jboss.mx.loading.UnifiedLoaderRepository3] UnifiedLoaderRepository 
removed(false) [EMAIL PROTECTED] 
url=vfsfile:/C:/java/jboss-5.0.0.Beta3/server/nokeos-production/deploy/0-nokeoscore-server.jar
 ,addedOrder=50}
  | 2008-01-17 13:41:52,648 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] 
Added url: 
file:/C:/java/jboss-5.0.0.Beta3/server/nokeos-production/tmp/aopdynclasses/ucl10087/?dynamic=true,
 to ucl: [EMAIL PROTECTED] 
url=vfsfile:/C:/java/jboss-5.0.0.Beta3/server/nokeos-production/deploy/z-rules-engine-server.jar
 ,addedOrder=51}
  | [...]

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120875#4120875

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120875
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to