2010-05-20 33 views
3

我已經使用Java創建了獨立的Web服務客戶端。我能夠正確地生成WSDL,但是當我執行我的run.bat文件時,我會在下面的例外情況下得到以上例外。我搜索了標題中顯示的異常,並找到了一個包含它的.jar文件。我將它添加到我的JBOSS_HOME/lib目錄以及Client/lib目錄中。不知道爲什麼我仍然看到這一點。任何建議將不勝感激。線程「main」中的異常org.jboss.xb.binding.JBossXBRuntimeException:無法創建新的SAX解析器

Exception in thread "main" 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.ws.metadata.config.JBossWSConfigFactory.parse(JBossWSConfigFactory.java:76) 
    at org.jboss.ws.metadata.config.JBossWSConfigFactory.getConfig(JBossWSConfigFactory.java:149) 
    at org.jboss.ws.metadata.umdm.EndpointMetaData.initEndpointConfigMetaData(EndpointMetaData.java:872) 
    at org.jboss.ws.metadata.umdm.EndpointMetaData.initEndpointConfig(EndpointMetaData.java:849) 
    at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.rebuildEndpointMetaData(JAXWSClientMetaDataBuilder.java:292) 
    at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPortInternal(ServiceDelegateImpl.java:267) 
    at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:198) 
    at javax.xml.ws.Service.getPort(Service.java:141) 
    at com.firstcoverage.ws.client.om.WSStandAloneReportingSoapServiceService.getWSStandAloneReportingSoapServicePort(WSStandAloneReportingSoapServiceService.java:68) 
    at com.firstcoverage.ws.client.StandAloneReportingSoapClientFactory.ConnectToFCStandAloneReportingSoapWS(StandAloneReportingSoapClientFactory.java:70) 
    at com.firstcoverage.ws.client.StandAloneReportingSoapClientFactory.CreateInstance(StandAloneReportingSoapClientFactory.java:35) 
    at com.firstcoverage.ws.client.Reporter.main(Reporter.java:89) 
Caused by: org.jboss.xb.binding.JBossXBException: Failed to create a new SAX parser 
    at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:96) 
    at org.jboss.xb.binding.UnmarshallerImpl.<init>(UnmarshallerImpl.java:55) 
    at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:96) 
    ... 12 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.<init>(SaxJBossXBParser.java:92) 
    ... 14 more 

回答

1

這可能與上面這個jobss站點的鏈接不完全一樣。 您可能會嘗試使用來自sun的JAXB,JAXB-impl庫來獲取您的應用程序。 這裏它強制使用org.jboss.xb.binding。

相關問題