javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.

Apache's JIRA Issue Tracker | Andrew Janke | 3 years ago
  1. 0

    [jira] [Updated] (CXF-5697) WHICH_JARS inconsistent with lib/ contents for 2.7.11

    apache.org | 1 year ago
    javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.
  2. 0

    [CXF-5697] WHICH_JARS inconsistent with lib/ contents for 2.7.11 - ASF JIRA

    apache.org | 11 months ago
    javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.
  3. 0

    I downloaded the 2.7.11 distribution .zip file from http://cxf.apache.org/download.html, and it seems some of the items in the lib/WHICH_JARS file are inconsistent with the actual contents of the lib/ directory. || What's in WHICH_JARS || Actually in lib/ dir || Notes || | XMLSchema.jar | xmlschema-core.jar | | | sl4j.jar | slf4j.jar | | | sl4j-jdk14 | slf4j-jdk14.jar | | | jdom.jar | Missing | | | bcprov-jdk15.jar | Missing | | | abdera* | Missing | | | jaxen.jar | Missing | | | axiom* | Missing | | | javax.ws.rs-apijar | javax.ws.rs-api.jar | | | httpcore-nio-4.2.2.jar | httpcore-nio-4.2.4.jar | This is one with an explicit version included, but it differs from the actual shipped jar | | msv-core.jar (version 2010.1) | msv-core.jar (version 2011.1) | Explicit version differs | | xsdlib:jar | xsdlib.jar | Typo | | geronimo-stax-api.jar | Missing | | I'm guessing the missing jars are no longer needed, but don't know enough to confirm that. I haven't observed any unexpected behavior, but I'm just now upgrading to 2.7.11. *Optional Java 6 Libraries* It also looks like there's a problem with the "optional under Java 6" jar listing. WHICH_JARs says this: {noformat} - woodstox-core-asl.jar [6] or another StAX implementation - stax2-api-3.0.1.jar [6] for woodstox above {noformat} I interpret that to mean that when running against Java 6 or later, including Java 7, you don't need to include these files on your classpath. But if I don't have them on my classpath, I get the following exception when trying to run my program. {noformat} Exception in thread "main" javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service. at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:151) at org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:101) at javax.xml.ws.Service.<init>(Service.java:77) at egcna.ercotmis.wsdisc.jaxb.NodalService.<init>(NodalService.java:43) at egcna.ercotmis.wsdisc.MarketInfoTestClient.pingServiceStatus(MarketInfoTestClient.java:60) at egcna.ercotmis.wsdisc.MarketInfoTestClient.main(MarketInfoTestClient.java:53) Caused by: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service. at org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:100) at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:204) at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:149) ... 5 more Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: java.lang.RuntimeException: Cannot create a secure XMLInputFactory at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:257) at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:206) at org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:98) ... 7 more Caused by: java.lang.RuntimeException: Cannot create a secure XMLInputFactory at org.apache.cxf.staxutils.StaxUtils.createXMLInputFactory(StaxUtils.java:314) at org.apache.cxf.staxutils.StaxUtils.getXMLInputFactory(StaxUtils.java:264) at org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1516) at org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1415) at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:247) ... 9 more {noformat} If I add them back in, the error goes away. Same behavior when compiling and running against Java 1.6u45 or 1.7u55.

    Apache's JIRA Issue Tracker | 3 years ago | Andrew Janke
    javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    OSCARMcMaster / Mailing Lists

    sourceforge.net | 5 months ago
    javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.
  6. 0

    Failed to create Service

    GitHub | 9 months ago | rahulcoode90
    javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      Cannot create a secure XMLInputFactory

      at org.apache.cxf.staxutils.StaxUtils.createXMLInputFactory()
    2. Apache CXF Core
      StaxUtils.createXMLStreamReader
      1. org.apache.cxf.staxutils.StaxUtils.createXMLInputFactory(StaxUtils.java:314)
      2. org.apache.cxf.staxutils.StaxUtils.getXMLInputFactory(StaxUtils.java:264)
      3. org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1516)
      4. org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1415)
      4 frames
    3. Apache CXF Runtime Core for WSDL
      WSDLServiceFactory.<init>
      1. org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:247)
      2. org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:206)
      3. org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:98)
      3 frames
    4. Apache CXF Runtime JAX-WS Frontend
      ProviderImpl.createServiceDelegate
      1. org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:204)
      2. org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:149)
      3. org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:101)
      3 frames
    5. Java RT
      Service.<init>
      1. javax.xml.ws.Service.<init>(Service.java:77)
      1 frame
    6. egcna.ercotmis.wsdisc
      MarketInfoTestClient.main
      1. egcna.ercotmis.wsdisc.jaxb.NodalService.<init>(NodalService.java:43)
      2. egcna.ercotmis.wsdisc.MarketInfoTestClient.pingServiceStatus(MarketInfoTestClient.java:60)
      3. egcna.ercotmis.wsdisc.MarketInfoTestClient.main(MarketInfoTestClient.java:53)
      3 frames