2 Replies Latest reply on Mar 20, 2009 8:44 PM by norman

    ClassCastException

    eric

      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