2010-07-09 32 views
0

我有一個使用Seam的Web項目Eclipse中的maven項目。現在我想用Seam Test來進行單元測試。我不會使用SeamGen來創建項目。分析器問題Seam測試

我遵循這個指南,但是當我運行我的測試時,我得到這個錯誤。我感覺錯誤的薩克斯解析器正在被使用。有人認出它嗎?

 
    [Parser] Running: :\Documents and Settings\PEJA715\Local Settings\Temp\testng-eclipse\testng-customsuite.xml 

FAILED CONFIGURATION: @BeforeSuite startSeam 
java.lang.RuntimeException: Unable to bootstrap: 
    at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:147) 
    at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:183) 
    at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:195) 
    at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:11) 
    at org.jboss.seam.mock.AbstractSeamTest.startJbossEmbeddedIfNecessary(AbstractSeamTest.java:1024) 
    at org.jboss.seam.mock.AbstractSeamTest.startSeam(AbstractSeamTest.java:915) 
    at org.jboss.seam.mock.SeamTest.startSeam(SeamTest.java:58) 
Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser 
    at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100) 
    at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:85) 
    at org.jboss.embedded.Bootstrap.deployBaseBootstrapUrl(Bootstrap.java:130) 
    at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:142) 
    ... 21 more 
Caused by: org.jboss.xb.binding.JBossXBException: Failed to create a new SAX parser 
    at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.(SaxJBossXBParser.java:97) 
    at org.jboss.xb.binding.UnmarshallerImpl.(UnmarshallerImpl.java:55) 
    at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:96) 
    ... 24 more 
Caused by: javax.xml.parsers.ParserConfigurationException: Feature 'http://apache.org/xml/features/xinclude' is not recognized. 
    at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source) 
    at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.(SaxJBossXBParser.java:92) 
    ... 26 more 
... Removed 15 stack frames 
SKIPPED CONFIGURATION: @BeforeClass setupClass 
SKIPPED CONFIGURATION: @BeforeMethod begin 
SKIPPED CONFIGURATION: @AfterMethod end 
SKIPPED CONFIGURATION: @AfterClass cleanupClass 
SKIPPED: testRegister 

=============================================== 
    TestOfTest 
    Tests run: 1, Failures: 0, Skips: 1 
    Configuration Failures: 1, Skips: 4 
=============================================== 


=============================================== 
effsort-web 
Total tests run: 1, Failures: 0, Skips: 1 
Configuration Failures: 1, Skips: 5 
=============================================== 

[org.testng.internal.PoolService] Shutting down poolservice [email protected] terminated:false 

回答

0

很難從你使用JBoss的5.0.1.GA(和你可能會得到不及物動詞XML的API)使用SAX解析器的堆棧跟蹤(顯示你的依賴可能會幫助),但仔細檢查說。