10 Replies Latest reply on Mar 15, 2011 2:41 PM by alrubinger

    Runnable example - Error parsing server/default/conf/bootstrap.xml

    pgmjsd

      I've gone back to trying the 'Milestone 4' example to check my set up for running it with 6.0.0.Final.   After I figured out how to set up my repository cache (Artifactory), I got Maven 3 to get past the compile steps.   Now the integration-tests phase fails with:

       

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

      Test set: org.jboss.jbossas.examples.EchoBeanIntegrationTest

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

      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1 sec <<< FAILURE!

      org.jboss.jbossas.examples.EchoBeanIntegrationTest  Time elapsed: 0 sec  <<< ERROR!

      java.lang.RuntimeException: Error unmarshalling file:/I:/devel/yajul/sandbox/examples/jboss-embedded-as/m4-tag/target/jboss-6.0.0.20100721-M4/server/default/conf/bootstrap.xml

          at org.jboss.bootstrap.impl.as.xml.BootstrapParser.parse(BootstrapParser.java:61)

          at org.jboss.bootstrap.impl.as.server.AbstractJBossASServerBase.setupBootstrapDescriptorsFromBootstrapUrl(AbstractJBossASServerBase.java:440)

          at org.jboss.bootstrap.impl.as.server.AbstractJBossASServerBase.doInitialize(AbstractJBossASServerBase.java:287)

          at org.jboss.embedded.core.server.JBossASEmbeddedServerImpl.doInitialize(JBossASEmbeddedServerImpl.java:422)

          at org.jboss.bootstrap.impl.base.server.AbstractServer.initialize(AbstractServer.java:524)

          at org.jboss.bootstrap.impl.base.server.AbstractServer.start(AbstractServer.java:335)

          at org.jboss.bootstrap.impl.mc.server.AbstractMCServerBase.start(AbstractMCServerBase.java:248)

          at org.jboss.bootstrap.impl.as.server.AbstractJBossASServerBase.start(AbstractJBossASServerBase.java:402)

          at org.jboss.jbossas.examples.EchoBeanIntegrationTest.createAndStartServer(EchoBeanIntegrationTest.java:107)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)

          at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)

          at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)

          at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)

          at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)

          at org.junit.runners.ParentRunner.run(ParentRunner.java:236)

          at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)

          at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)

          at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)

          at org.apache.maven.surefire.Surefire.run(Surefire.java:107)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)

          at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1005)

      Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: file:/I:/devel/yajul/sandbox/examples/jboss-embedded-as/m4-tag/target/jboss-6.0.0.20100721-M4/server/default/conf/bootstrap.xml@6,44

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

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

          at org.jboss.bootstrap.impl.as.xml.BootstrapParser.parse(BootstrapParser.java:53)

          ... 28 more

      Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to resolve global element bootstrap

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

          at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.startElement(SaxJBossXBParser.java:370)

          at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)

          at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)

          at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)

          at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(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:165)

          ... 30 more

       

      Maybe this is because I'm running it on Cygwin or something?   The bootstrap.xml file exists, but it looks like it has unix line-feed format (although I don't see why that would matter in an XML file).