2 Replies Latest reply on Sep 25, 2008 6:02 AM by John smith

    pb deploy war with CR2 !

    John smith Newbie

      I have an application that has servlets in a war module. this application works fine under JBoss Beta4 , but in CR2, I have the following stack trace:

      2008-09-25 10:58:36,905 WARN [org.jboss.wsf.container.jboss50.deployer.JAXWSDeployerHookPreJSE] Cannot load servlet class: com.gemalto.mmserver.infra.comm.servlet.CardEventHandlerServlet
      2008-09-25 10:58:36,905 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployer] Begin deploy, org.jboss.metadata.web.jboss.JBossWebMetaData@1f
      2008-09-25 10:58:36,906 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployer] Unpacking war to: /product/jboss/jboss-5.0.0.CR2/server/default/tmp/deploy/CEH52439-exp.war
      2008-09-25 10:58:36,918 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployer] deployWebModule: vfszip:/product/jboss/jboss-5.0.0.CR2/server/default/deploy/mminfra-CR5.ear/CEH.war
      2008-09-25 10:58:36,918 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployer] Begin deploy, org.jboss.metadata.web.jboss.JBossWebMetaData@1f
      2008-09-25 10:58:36,918 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployer] Error during deploy: vfszip:/product/jboss/jboss-5.0.0.CR2/server/default/deploy/mminfra-CR5.ear/OTAinfra-ejb.jar
      java.lang.ClassCastException: org.jboss.metadata.ear.spec.EjbModuleMetaData cannot be cast to org.jboss.metadata.ear.spec.WebModuleMetaData
      at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:317)
      at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:87)
      at org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer.deploy(AbstractSimpleVFSRealDeployer.java:56)
      at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1285)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1003)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1056)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:944)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:627)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
      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:441)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
      at java.lang.Thread.run(Thread.java:619)


      someone have a solution?

      Thank's a lot.

        • 1. Re: pb deploy war with CR2 !
          jaikiran pai Master

           

          2008-09-25 10:58:36,918 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployer] Error during deploy: vfszip:/product/jboss/jboss-5.0.0.CR2/server/default/deploy/mminfra-CR5.ear/OTAinfra-ejb.jar
          java.lang.ClassCastException: org.jboss.metadata.ear.spec.EjbModuleMetaData cannot be cast to org.jboss.metadata.ear.spec.WebModuleMetaData


          1) If the deployment is failing then this should not have been logged at debug level.

          at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
          at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
          at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)


          2) Looks like the application is being picked up by the hot deployer. How are you deploying the application? After JBoss starts completely, you are placing the application in the deploy folder?


          vfszip:/product/jboss/jboss-5.0.0.CR2/server/default/deploy/mminfra-CR5.ear/OTAinfra-ejb.jar
          java.lang.ClassCastException: org.jboss.metadata.ear.spec.EjbModuleMetaData cannot be cast to org.jboss.metadata.ear.spec.WebModuleMetaData



          3) What does your application.xml look like? Post the contents here.

          4) Are you deploying the application as an exploded folder or are you deploying it as a zipped application? Post the output of the following command:

          If you are deploying in exploded format then post the output of (first 'cd' to deploy folder):

          dir /b /s


          Or else if you are deploying as a zipped applicaiton then pos the output of:

          jar -tf mminfra-CR5.ear


          5) Since this issue is specific to JBoss-5, you should have posted this in the JBoss AS5 forum http://www.jboss.com/index.html?module=bb&op=viewforum&f=287 :-)

          While posting the logs or xml content or code, remember to wrap it in a code block using the Code button in the message editor window and please hit the Preview button to make sure your post is correctly formatted

          • 2. Re: pb deploy war with CR2 !
            John smith Newbie

            I find the pblm. in fact I have a jar containing a WEB-INF/web.xml, but there is not the class that are required in WEB-INF/classes.

            but i have some other pblm that i'll post in JBossAS 5 !

            thank you a lot for your answer and your reactivity.