2 Replies Latest reply on Aug 10, 2011 3:31 AM by surender m

    Migration from Jboss5.1.0.GA to Jboss6.0.0.Final Deployment Problem

    surender m Newbie

      Hi friends,

       

       

      I am trying to Migrate my J2EE web application from Jboss5.1.0.GA to Jboss6.0.0.Final.

      My Application war is working fine with Jboss5.1.0.GA.

       

      I copied same war  & pasted into \jboss-6.0.0.Final\server\default\deploy folder,

      When I am trying to run the Jboss Server, giving the below Exception.

       

      and Do I need to Migrate my jboss-web.xml, jboss-web_5_0.dtd to 6.0?

       

      My Current Jboss-web.xml looks like as below

      -------------------------------------------------------------------

       

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE jboss-web PUBLIC

          "-//JBoss//DTD Web Application 5.0//EN"

          "http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd">

      <jboss-web>

      <context-root>DirectAXs-Admin</context-root>

      </jboss-web>

       

       

      The Excetion is as following.

       

       

      16:11:56,359 INFO  [AbstractJBossASServerBase] Server Configuration:

              JBOSS_HOME URL: file:/E:/SUCHOS_PROJECT/jboss-6.0.0.Final/
              Bootstrap: $JBOSS_HOME\server/default/conf/bootstrap.xml
              Common Base: $JBOSS_HOME\common/
              Common Library: $JBOSS_HOME\common/lib/
              Server Name: default
              Server Base: $JBOSS_HOME\server/
              Server Library: $JBOSS_HOME\server/default/lib/
              Server Config: $JBOSS_HOME\server/default/conf/
              Server Home: $JBOSS_HOME\server/default/
              Server Data: $JBOSS_HOME\server/default/data/
              Server Log: $JBOSS_HOME\server/default/log/
              Server Temp: $JBOSS_HOME\server/default/tmp/

      16:11:56,359 INFO  [AbstractServer] Starting: JBossAS [6.0.0.Final "Neo"]
      16:11:59,343 INFO  [ServerInfo] Java version: 1.6.0_20,Sun Microsystems Inc.
      16:11:59,343 INFO  [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (b
      uild 1.6.0_20-b02)
      16:11:59,343 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 16.3-b01,Sun
      Microsystems Inc.
      16:11:59,343 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
      16:11:59,343 INFO  [ServerInfo] VM arguments: -Dprogram.name=run.bat -Xms512M -X
      mx1024M -XX:MaxPermSize=256M -Djava.endorsed.dirs=E:\SUCHOS_PROJECT\jboss-6.0.0.
      Final\lib\endorsed
      16:11:59,421 INFO  [JMXKernel] Legacy JMX core initialized
      16:12:39,187 INFO  [AbstractServerConfig] JBoss Web Services - Stack CXF Server
      3.4.1.GA
      16:12:40,203 INFO  [JSFImplManagementDeployer] Initialized 3 JSF configurations:
      [Mojarra-1.2, MyFaces-2.0, Mojarra-2.0]
      16:15:10,171 ERROR [AbstractKernelController] Error installing to Parse: name=vf
      s:///E:/SUCHOS_PROJECT/jboss-6.0.0.Final/server/default/deploy/DirectAXs-Admin.w
      ar state=PreParse mode=Manual requiredState=Parse: org.jboss.deployers.spi.Deplo
      ymentException: Error creating managed object for vfs:///E:/SUCHOS_PROJECT/jboss
      -6.0.0.Final/server/default/deploy/DirectAXs-Admin.war
              at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentExcept
      ion(DeploymentException.java:49) [:2.2.0.GA]
              at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithO
      utput.createMetaData(AbstractParsingDeployerWithOutput.java:383) [:2.2.0.GA]
              at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithO
      utput.createMetaData(AbstractParsingDeployerWithOutput.java:343) [:2.2.0.GA]
              at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithO
      utput.createMetaData(AbstractParsingDeployerWithOutput.java:315) [:2.2.0.GA]
              at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithO
      utput.deploy(AbstractParsingDeployerWithOutput.java:255) [:2.2.0.GA]
              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(Deployer
      Wrapper.java:179) [:2.2.0.GA]
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(Deployer
      sImpl.java:1832) [:2.2.0.GA]
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi
      rst(DeployersImpl.java:1550) [:2.2.0.GA]
              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(Deployers
      Impl.java:1491) [:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
      ctControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
      oller.java:2044) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
      ctController.java:1083) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.executeOrIncrementSta
      teDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
      actController.java:1246) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
      actController.java:1139) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
      ller.java:939) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
      ller.java:654) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersI
      mpl.java:1983) [:2.2.0.GA]
              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(Deployers
      Impl.java:1076) [:2.2.0.GA]
              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeploye
      rImpl.java:679) [:2.2.0.GA]
              at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.p
      rocess(MainDeployerPlugin.java:106) [:6.0.0.Final]
              at org.jboss.profileservice.dependency.ProfileControllerContext$Delegate
      Deployer.process(ProfileControllerContext.java:143) [:0.2.2]
              at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(Profil
      eDeployAction.java:151) [:0.2.2]
              at org.jboss.profileservice.dependency.ProfileDeployAction.installAction
      Internal(ProfileDeployAction.java:94) [:0.2.2]
              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction
      (InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]
              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction
      (InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.sim
      pleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.
      2.0.GA]
              at org.jboss.dependency.plugins.action.AccessControllerContextAction.ins
      tall(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractControllerContextActions.install
      (AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
      ctControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
      oller.java:2044) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
      ctController.java:1083) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.executeOrIncrementSta
      teDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
      actController.java:1246) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
      actController.java:1139) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
      ller.java:939) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
      ller.java:654) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicPro
      fileActivation.start(ProfileActivationWrapper.java:190) [:0.2.2]
              at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(Pr
      ofileActivationWrapper.java:87) [:0.2.2]
              at org.jboss.profileservice.dependency.ProfileActivationService.activate
      Profile(ProfileActivationService.java:215) [:0.2.2]
              at org.jboss.profileservice.dependency.ProfileActivationService.activate
      (ProfileActivationService.java:159) [:0.2.2]
              at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.ac
      tivate(AbstractProfileServiceBootstrap.java:112) [:0.2.2]
              at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolve
      rFacade.deploy(BasicResolverFactory.java:87) [:0.2.2]
              at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.st
      art(AbstractProfileServiceBootstrap.java:91) [:0.2.2]
              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceB
      ootstrap.start(BasicProfileServiceBootstrap.java:132) [:6.0.0.Final]
              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceB
      ootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]
              at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(A
      bstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
              at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.r
      un(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
              at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]
      Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: vfs://
      /E:/SUCHOS_PROJECT/jboss-6.0.0.Final/server/default/deploy/DirectAXs-Admin.war/W
      EB-INF/tlds/functions.tld@3,9
              at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBPars
      er.java:224) [jbossxb.jar:2.0.3.GA]
              at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java
      :178) [jbossxb.jar:2.0.3.GA]
              at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:257) [jbossx
      b.jar:2.0.3.GA]
              at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:231) [jbossx
      b.jar:2.0.3.GA]
              at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(Sch
      emaResolverDeployer.java:137) [:2.2.0.GA]
              at org.jboss.deployment.TldParsingDeployer.parse(TldParsingDeployer.java
      :64) [:6.0.0.Final]
              at org.jboss.deployment.TldParsingDeployer.parse(TldParsingDeployer.java
      :38) [:6.0.0.Final]
              at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(Sch
      emaResolverDeployer.java:121) [:2.2.0.GA]
              at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.handl
      eMultipleFiles(AbstractVFSParsingDeployer.java:446) [:2.2.0.GA]
              at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse
      (AbstractVFSParsingDeployer.java:319) [:2.2.0.GA]
              at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithO
      utput.createMetaData(AbstractParsingDeployerWithOutput.java:376) [:2.2.0.GA]
              ... 47 more
      Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to resolve schem
      a binding for QName taglib with schemaLocation=taglib
              at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startE
      lement(SundayContentHandler.java:180) [jbossxb.jar:2.0.3.GA]
              at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.startElement(SaxJBos
      sXBParser.java:401) [jbossxb.jar:2.0.3.GA]
              at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour
      ce) [xercesImpl.jar:6.0.0.Final]
              at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Sou
      rce) [xercesImpl.jar:6.0.0.Final]
              at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Sourc
      e) [xercesImpl.jar:6.0.0.Final]
              at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unkn
      own Source) [xercesImpl.jar:6.0.0.Final]
              at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.s
      canRootElementHook(Unknown Source) [xercesImpl.jar:6.0.0.Final]
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
      Dispatcher.dispatch(Unknown Source) [xercesImpl.jar:6.0.0.Final]
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
      known Source) [xercesImpl.jar:6.0.0.Final]
              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [x
      ercesImpl.jar:6.0.0.Final]
              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [x
      ercesImpl.jar:6.0.0.Final]
              at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) [xercesImpl
      .jar:6.0.0.Final]
              at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) [xe
      rcesImpl.jar:6.0.0.Final]
              at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Sour
      ce) [xercesImpl.jar:6.0.0.Final]
              at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBPars
      er.java:209) [jbossxb.jar:2.0.3.GA]
              ... 57 more

       

      Please guide me to solve this problem.

      Thanks in Advance.

       

      Thanks & Regards,

      Surender

        • 1. Re: Migration from Jboss5.1.0.GA to Jboss6.0.0.Final Deployment Problem
          surender m Newbie

          The above Exception's another content is as following.

           

          DEPLOYMENTS IN ERROR:
            Deployment "vfs:///E:/SUCHOS_PROJECT/jboss-6.0.0.Final/server/default/deploy/D
          irectAXs-Admin.war" is in error due to the following reason(s): org.jboss.xb.bin
          ding.JBossXBRuntimeException: Failed to resolve schema binding for QName taglib
          with schemaLocation=taglib

                  at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(Dep
          loyersImpl.java:1228) [:2.2.0.GA]
                  at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainD
          eployerImpl.java:905) [:2.2.0.GA]
                  at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.c
          heckComplete(MainDeployerPlugin.java:87) [:6.0.0.Final]
                  at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.che
          ckAllComplete(ProfileDeployerPluginRegistry.java:107) [:0.2.2]
                  at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceB
          ootstrap.start(BasicProfileServiceBootstrap.java:135) [:6.0.0.Final]
                  at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceB
          ootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]
                  at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(A
          bstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
                  at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.r
          un(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
                  at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]

           

          Please guide me to solve this problem.

          Thanks in Advance.

           

           

          • 2. Re: Migration from Jboss5.1.0.GA to Jboss6.0.0.Final Deployment Problem
            surender m Newbie

            When I remove functions.tld file from \WEB-INF\tlds, my application works fine.

             

            Could you please tell me, what is the problem with functions.tld file?

            Any version/validation related issues are in there in functions.tld?

             

            Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: vfs://
            /E:/SUCHOS_PROJECT/jboss-6.0.0.Final/server/default/deploy/DirectAXs-Admin.war/W
            EB-INF/tlds/functions.tld@3,9

             

             

            My functions.tld file looks as below:

             

            <?xml version="1.0" encoding="UTF-8" ?>

            <taglib>       
            <description>JSTL 1.1 functions library</description>
            <display-name>JSTL functions</display-name>
                    <tlib-version>1.1</tlib-version>
                    <jsp-version>1.2</jsp-version>
                    <short-name>fun</short-name>

            <tag>
              <name>collsize</name>
              <tagclass>customtlds.CollectionSizeTag</tagclass>
              <bodycontent>JSP</bodycontent>
              <info>Collection Size Tag</info>
              <attribute>
               <name>name</name>           
               <required>false</required>
               <rtexprvalue>true</rtexprvalue>
              </attribute>
            </tag>
            </taglib>

             

             

            Please help.

             

            Thanks in adavance.