1 Reply Latest reply on Mar 25, 2008 10:53 AM by Pete Muir

    not able to run testcases usign seam 2.x

    Jeet Kaushik Newbie

      while running test cases using testng i am getting error like this....


      FAILED CONFIGURATION: @BeforeSuite startSeam
      
      java.lang.RuntimeException: Unable to bootstrap: 
      
           at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:167)
      
           at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:201)
      
           at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:214)
      
           at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:11)
      
           at org.jboss.seam.mock.AbstractSeamTest.startJbossEmbeddedIfNecessary(AbstractSeamTest.java:991)
      
           at org.jboss.seam.mock.AbstractSeamTest.startSeam(AbstractSeamTest.java:892)
      
           at org.jboss.seam.mock.SeamTest.startSeam(SeamTest.java:58)
      
      Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: file:/D:/Spark/Spark/src/bootstrap/conf/bootstrap-beans.xml@6,49
      
           at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:164)
      
           at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:133)
      
           at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:86)
      
           at org.jboss.embedded.Bootstrap.deployBaseBootstrapUrl(Bootstrap.java:150)
      
           at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:162)
      
           ... 21 more
      
      Caused by: java.lang.IllegalStateException: Failed to create schema loader: org.apache.xerces.dom.DOMXSImplementationSourceImpl
      
           at org.jboss.xb.binding.Util$2.run(Util.java:518)
      
           at java.security.AccessController.doPrivileged(Native Method)
      
           at org.jboss.xb.binding.Util.getXSImplementation(Util.java:488)
      
           at org.jboss.xb.binding.Util.loadSchema(Util.java:387)
      
           at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:168)
      
           at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:139)
      
           at org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver.resolve(DefaultSchemaResolver.java:247)
      
           at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:187)
      
           at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:323)
      
           at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
      
           at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
      
           at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.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.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:160)
      
           ... 25 more



      this error is because of bootstarp,if i remove bootstrap i am getting some other errors.


      could you help me as soon as possible