6 Replies Latest reply on Jan 7, 2009 4:35 PM by Ales Justin

    Parsing Error run DZone_1_0 demos

    glm Newbie

      Hi I just downloaded the latest DZone_1_0 demos branch and got the following error when attempting to run JMXMain :

      org.jboss.xb.binding.JBossXBException: Failed to parse source: file:/C:/JBoss/DZone_1_0/branches/DZone_1_0/bootstrap/src/main/resources/META-INF/bootstrap-beans.xml@
      94,101
      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:184)
      at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:139)
      at org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer.deploy(BasicXMLDeployer.java:147)
      at org.jboss.demos.bootstrap.Main.configure(Main.java:80)
      at org.jboss.demos.bootstrap.Main.main(Main.java:45)
      at org.jboss.demos.bootstrap.jmx.JMXMain.main(JMXMain.java:33)
      Caused by: org.jboss.xb.binding.JBossXBRuntimeException: {urn:jboss:classloading:1.0}classloading not found as a child of {urn:jboss:bean-deployer:2.0}property
      at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:370)
      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:402)
      at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
      at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
      at org.apache.xerces.xinclude.XIncludeHandler.emptyElement(Unknown Source)
      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:180)
      ... 5 more
      Deployed URL: file:/C:/JBoss/DZone_1_0/branches/DZone_1_0/jmx/src/main/resources/META-INF/system-jmx-beans.xml
      org.jboss.xb.binding.JBossXBException: Failed to parse source: file:/C:/JBoss/DZone_1_0/branches/DZone_1_0/jmx/src/main/resources/META-INF/aop-beans.xml@71,72
      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:184)
      at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:139)
      at org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer.deploy(BasicXMLDeployer.java:147)
      at org.jboss.demos.bootstrap.Main.deploy(Main.java:116)
      at org.jboss.demos.bootstrap.jmx.JMXMain.main(JMXMain.java:37)
      Caused by: org.jboss.xb.binding.JBossXBRuntimeException: {urn:jboss:aop-beans:1.0}lifecycle-configure not found as a child of {urn:jboss:bean-deployer:2.0}deployment

      at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:370)
      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:402)
      at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
      at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:180)


      Do I need to update an .xsd file somewhere?

      Regards,
      GMarsh

        • 1. Re: Parsing Error run DZone_1_0 demos
          Ales Justin Master

           

          "Gary Marsh" wrote:

          Do I need to update an .xsd file somewhere?

          There is no .xsd file.
          The schema is in-memory generated from metadata classes.
          e.g. see AbstractBeanMetaData from MC and JBossXB project

          My guess would be you're missing
          MC's classloading and aop-mc-int on the classpath,
          hence no matching metadata classes --> no schema --> unknown elements.

          • 2. Re: Parsing Error run DZone_1_0 demos
            glm Newbie

            Thanks for the reply alesj;

            I tweeked the classpath to include all of the MC's library jars and it compiles and parses past the previous error. Now I am getting the following runtime error:

            JBoss-MC-Demo DEBUG [07-01-2009 08:52:59] JBossEntityResolver - Cannot resolve [publicID=urn:jboss:spring-beans:2.0,systemID=beans]
            JBoss-MC-Demo WARN [07-01-2009 08:52:59] JBossEntityResolver - Cannot load systemId from resource: mc-spring-beans_2_0.xsd
            JBoss-MC-Demo DEBUG [07-01-2009 08:52:59] JBossEntityResolver - Cannot resolve [publicID=null,systemID=urn:jboss:spring-beans:2.0]
            JBoss-MC-Demo DEBUG [07-01-2009 08:52:59] BeanDeployer - Error during deploy: vfszip:/C:/JBoss/DZone_1_0/branches/DZone_1_0/sandbox/jboss-demos-models.jar

            org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/C:/JBoss/DZone_1_0/branches/DZone_1_0/sandbox/jboss-demos-models.jar
            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.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.demos.bootstrap.MainDeployerHelper.process(MainDeployerHelper.java:86)
            at org.jboss.demos.bootstrap.HDScanner.scan(HDScanner.java:153)
            at org.jboss.demos.bootstrap.HDScanner.run(HDScanner.java:113)
            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:886)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
            at java.lang.Thread.run(Thread.java:619)
            Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Failed to resolve schema nsURI=urn:jboss:spring-beans:2.0 location=beans
            at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)


            Do I need to update my MC libraries??

            Regards;
            GMarsh

            • 3. Re: Parsing Error run DZone_1_0 demos
              glm Newbie

              alesj; Just a Note: when I substitute the JBossAS library Jars for the MC Library jars in my classpath the error goes away. I last updated my MC 2.0.2GA download 12/04/08.

              Regards,
              GMarsh

              • 4. Re: Parsing Error run DZone_1_0 demos
                Ales Justin Master

                 

                "Gary Marsh" wrote:

                Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Failed to resolve schema nsURI=urn:jboss:spring-beans:2.0 location=beans

                This means you're missing MC's spring-int lib in classpath.


                • 5. Re: Parsing Error run DZone_1_0 demos
                  glm Newbie

                  alesj; I spoke too soon regarding the clean run. I had a previously compiled jar of my own in the classpath that apparently provided information needed to resolve this error. When I removed it from the classpath the error returned. Now I only have MC 2.0.2GA libraries in the path and I get the following error when I deploy the jboss-demos-models.jar to the sandbox directory:

                  JBoss-MC-Demo DEBUG [07-01-2009 11:32:01] SaxJBossXBParser - Created parser: com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl@62fb35, isNamespaceAware: true, is
                  Validating: true, isXIncludeAware: true
                  JBoss-MC-Demo DEBUG [07-01-2009 11:32:01] JBossEntityResolver - Cannot resolve [publicID=urn:jboss:spring-beans:2.0,systemID=beans]
                  JBoss-MC-Demo WARN [07-01-2009 11:32:01] JBossEntityResolver - Cannot load systemId from resource: mc-spring-beans_2_0.xsd

                  JBoss-MC-Demo DEBUG [07-01-2009 11:32:01] JBossEntityResolver - Cannot resolve [publicID=null,systemID=urn:jboss:spring-beans:2.0]
                  JBoss-MC-Demo DEBUG [07-01-2009 11:32:01] BeanDeployer - Error during deploy: vfszip:/C:/JBoss/DZone_1_0/branches/DZone_1_0/sandbox/jboss-demos-models.jar

                  org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/C:/JBoss/DZone_1_0/branches/DZone_1_0/sandbox/jboss-demos-models.jar
                  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.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.demos.bootstrap.MainDeployerHelper.process(MainDeployerHelper.java:86)
                  at org.jboss.demos.bootstrap.HDScanner.scan(HDScanner.java:153)
                  at org.jboss.demos.bootstrap.HDScanner.run(HDScanner.java:113)
                  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:886)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                  at java.lang.Thread.run(Thread.java:619)
                  Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Failed to resolve schema nsURI=urn:jboss:spring-beans:2.0 location=beans
                  at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)



                  So I guess I need to know how to resolve the problem of the spring-beans definition which is misssing.

                  Regards,

                  GMarsh

                  • 6. Re: Parsing Error run DZone_1_0 demos
                    Ales Justin Master

                    See my previous post.