3 Replies Latest reply on Jan 31, 2010 1:48 AM by jaikiran pai

    request for doco - upgrading app from 4.2.3 deploy to 5.1

    Dan Maher Newbie

      Hi gang,

       

      Sincere apologies if this has been asked before.

       

      I want to upgrade an app that is successfully running on 4.2.3 to the newer 5.x series. I have made some progress but it is not complete. I understand so far that it is largely a deployment descriptor update and have tested recommended changes to the application.xml and the web.xml files. It still does not deploy successfully on 5.1 (I am not at my workplace at the moment for sharing the stack trace).

       

      We do not have any ejbs as part of our app, thus no persistence.xml file.

       

      Could someone point me to the canonical upgrade doco?

       

      thanks --

      Dan

      Charleston, SC

        • 1. Re: request for doco - upgrading app from 4.2.3 deploy to 5.1
          Wolfgang Knauf Master

          Hi,

           

          I don't know of an upgrade guide ;-). The most common problem is that the xml validator became more strict and now complains more often if e.g. element order does not match the schema definition, so that your configuration files don't validate any more.

           

          Do you have an error message?

           

          Best regards

           

          Wolfgang

          • 2. Re: request for doco - upgrading app from 4.2.3 deploy to 5.1
            Dan Maher Newbie


            Hi thanks for the reply. Here's the first error I encounter.





            14:24:15,218 ERROR [AbstractKernelController] Error installing to Parse: name=vfszip:/C:/dpm/servers/jboss-5.0.0.GA/server/default/deploy/myapp-gwt-server.ear state=Not Installed mode=Manual requiredSt
            ate=Parse
            org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/C:/dpm/servers/jboss-5.0.0.GA/server/default/deploy/myapp-gwt-server.ear/myapp-gwt-server.war
                     at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
                     at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:337)
                     at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:297)
                     at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:269)
                     at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:230)
                     at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                     at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                     at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                     at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
                     at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                     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:781)
                     at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
                     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
                     at java.lang.Class.cast(Class.java:2951)
                     at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:215)
                     at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:170)
                     at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:132)
                     at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:118)
                     at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256)
                     at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:239)
                     at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:330)
                     ... 28 more
            14:24:15,218 WARN  [HDScanner] Failed to process changes
            org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

            *** CONTEXTS IN ERROR: Name -> Error

            vfszip:/C:/dpm/servers/jboss-5.0.0.GA/server/default/deploy/myapp-gwt-server.ear -> java.lang.ClassCastException


                     at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:863)
                     at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:665)
                     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: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)

            • 3. Re: request for doco - upgrading app from 4.2.3 deploy to 5.1
              jaikiran pai Master

              Are you packaging any xerces or xml api jar file(s) in your application? If yes, try removing them from the application packaging.