2010-05-20 3 views
3

J'ai créé un client de services Web autonome en Java. Je suis capable de générer le WSDL correctement mais quand quand j'exécute mon fichier run.bat, j'obtiens l'exception ci-dessus longtemps avec l'exception ci-dessous. J'ai recherché l'exception montrée dans le titre et trouvé un fichier .jar qui le contenait. J'ai ajouté ceci à mon répertoire JBOSS_HOME/lib ainsi qu'au répertoire Client/lib. Je ne sais pas pourquoi je vois encore ça. Tout avis serait grandement apprécié.Exception dans le thread "principal" org.jboss.xb.binding.JBossXBRuntimeException: Impossible de créer un nouveau parser 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 

Répondre

1

Il pourrait ne pas être exactement la même chose à partir du lien ci-dessus du site jobss. Vous pouvez essayer d'obtenir votre application en utilisant JAXB, bibliothèque JAXB-impl du soleil. Ici, il est forcé d'utiliser org.jboss.xb.binding.

Questions connexes