3 Replies Latest reply on Oct 5, 2009 9:25 AM by jithuk

    Urgent: org.jboss.xb.binding.JBossXBException: Failed to par

      Hi All,

      I am trying to migrate an application from jBoss 4 to jBoss 5.
      I am getting below error , while deploying a war file.
      Can someone let me identify what exactly has gone wrong here ..
      Any help is highly appreciated.



      15:05:18,080 ERROR [AbstractKernelController] Error installing to Parse: name=vfszip:/home/clarify/appserver/jboss-5.1.0.GA/s

      erver/tBroker/deploy/ibmpm.war/ state=Not Installed mode=Manual requiredState=Parse

      org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/home/clarify/appserver/jboss-5.1.0.GA/

      server/tBroker/deploy/impm.war/

      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)

      at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerW

      ithOutput.java:362)

      at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerW

      ithOutput.java:322)

      at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerW

      ithOutput.java:294)

      at org.jboss.deployment.JBossEjbParsingDeployer.createMetaData(JBossEjbParsingDeployer.java:95)

      at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutpu

      t.java:234)

      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.install(DeployersImpl.java:1098)

      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

      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:702)

      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

      at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

      at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

      at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)

      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

      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.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.ja

      va:306)

      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)

      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

      at org.jboss.Main.boot(Main.java:221)

      at org.jboss.Main$1.run(Main.java:556)

      at java.lang.Thread.run(Thread.java:595)

      Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: container-configuration cannot appear in this posit

      ion. Expected content of jboss is unordered_sequence: jmx-name? enforce-ejb-restrictions? unauthenticated-principal? resource

      -managers? exception-on-rollback? enterprise-beans* container-configurations? missing-method-permissions-excluded-mode? invok

      er-proxy-bindings? loader-repository? security-domain? webservices? assembly-descriptor?

      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)

      at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)

      at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:189)

      at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:166)

      at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:137)

      at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:121)

      at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256)

      at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:188)

      at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerW

      ithOutput.java:348)

      ... 34 more

      Caused by: org.jboss.xb.binding.JBossXBRuntimeException: container-configuration cannot appear in this position. Expected con

      tent of jboss is unordered_sequence: jmx-name? enforce-ejb-restrictions? unauthenticated-principal? resource-managers? except

      ion-on-rollback? enterprise-beans* container-configurations? missing-method-permissions-excluded-mode? invoker-proxy-bindings

      ? loader-repository? security-domain? webservices? assembly-descriptor?

      at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:449)

      at org

        • 1. Re: Urgent: org.jboss.xb.binding.JBossXBException: Failed to
          wolfgangknauf

          Hi,

          seems your "jboss-web.xml" is invalid (order of elements is wrong). JBoss 5 is much stricter when validating xml files against DTD/schema.

          Please use an editor which validates the file (e.g. Eclipse + Web Tools Platform) to verify and fix the file.

          Hope this helps

          Wolfgang

          • 2. Re: Urgent: org.jboss.xb.binding.JBossXBException: Failed to

            Hello Knauf,

            Many thanks for the inputs..

            But, Still I not able to understand what is wrong in it.. Below is my jboss-web.xml. Can you please advice what needs to be corrected here ?...


            <?xml version="1.0"?>

            <enterprise-beans>

            <ejb-name>common.ProcessMonitor</ejb-name>
            <jndi-name>common.ProcessMonitor</jndi-name>

            </enterprise-beans>

            <container-configuration>
            <call-logging>false</call-logging>
            <instance-pool>org.jboss.ejb.plugins.StatelessSessionInstancePool</instance-pool>
            <container-pool-conf>
            10
            1
            </container-pool-conf>
            </container-configuration>

            • 3. Re: Urgent: org.jboss.xb.binding.JBossXBException: Failed to

              Maximim and minimum tag disappeared.. Here is it once again..


              <?xml version="1.0"?>

              <enterprise-beans>

              <ejb-name>common.ProcessMonitor</ejb-name>
              <jndi-name>common.ProcessMonitor</jndi-name>

              </enterprise-beans>

              <container-configuration>
              <call-logging>false</call-logging>
              <instance-pool>org.jboss.ejb.plugins.StatelessSessionInstancePool</instance-pool>
              <container-pool-conf>
              <M aximumSize>10</M aximumSize>
              <M inimumSize>1</M inimumSize>
              </container-pool-conf>
              </container-configuration>