This content has been marked as final.
Show 2 replies
-
-
2. Re: ClassCastException
norman Mar 20, 2009 8:44 PM (in response to eric)I don't see this with the registration example on JBoss 5.0.1.
Hi forum,
today I started with Seam and felt directly into a problem. I started with a fresh and new JBoss (jboss-5.0.1.GA) and the registration example, as recommended in the tutorial. After the first deployment the application worked well, but after the second deploy I got a wired exception:
DEPLOYMENTS IN ERROR: Deployment "vfsfile:/home/eric/Programme/jboss-5.0.1.GA/server/default/deploy/jboss-seam-registration.ear/" is in error due to the following reason(s): java.lang.ClassCastException: org.jboss.metadata.ear.spec.EjbModuleMetaData cannot be cast to org.jboss.metadata.ear.spec.WebModuleMetaData at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:863) at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:806) at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:293) at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636)
Until now I didn't change anything in the code or configuration. Any sugestions or hint to isolate the problem?
Greetings
I don't see this with the registration example on JBoss 5.0.1.