org.apache.cxf.service.factory.ServiceConstructionException

Failed to create service.

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web213

  • via Coderanch by Naveed Khan, 7 months ago
    Failed to create service.
  • via cxf-dev by wangjlc, 1 year ago
    Failed to create service.
  • Failed to create service.
  • Stack trace

    • org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service. at org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:87)[114:org.apache.cxf.cxf-rt-wsdl:3.1.4] at org.apache.cxf.ws.security.trust.AbstractSTSClient.createClient(AbstractSTSClient.java:653)[163:org.apache.cxf.cxf-rt-ws-security:3.1.4] at org.apache.cxf.ws.security.trust.AbstractSTSClient.issue(AbstractSTSClient.java:735)[163:org.apache.cxf.cxf-rt-ws-security:3.1.4] at org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken(STSClient.java:61)[163:org.apache.cxf.cxf-rt-ws-security:3.1.4] at org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken(STSClient.java:55)[163:org.apache.cxf.cxf-rt-ws-security:3.1.4] at org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken(STSClient.java:51)[163:org.apache.cxf.cxf-rt-ws-security:3.1.4] at ddf.security.realm.sts.AbstractStsRealm.requestSecurityToken(AbstractStsRealm.java:223)[288:security-sts-realm:2.9.0] at ddf.security.realm.sts.AbstractStsRealm.doGetAuthenticationInfo(AbstractStsRealm.java:184)[288:security-sts-realm:2.9.0] at org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:568)[207:org.apache.shiro.core:1.2.4] at Proxy947deef4_133e_47e8_8e59_7298df2d6c6d.getAuthenticationInfo(Unknown Source)[:] at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doMultiRealmAuthentication(ModularRealmAuthenticator.java:219)[207:org.apache.shiro.core:1.2.4] at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:269)[207:org.apache.shiro.core:1.2.4] at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198)[207:org.apache.shiro.core:1.2.4] at org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106)[207:org.apache.shiro.core:1.2.4] at ddf.security.service.impl.SecurityManagerImpl.getSubject(SecurityManagerImpl.java:101)[250:security-core-impl:2.9.0] at ddf.security.service.impl.SecurityManagerImpl.getSubject(SecurityManagerImpl.java:78)[250:security-core-impl:2.9.0] at Proxy01ad84a9_5234_4be2_816f_086bc73907d2.getSubject(Unknown Source)[:] at org.codice.ddf.security.filter.login.LoginFilter.handleAuthenticationToken(LoginFilter.java:652)[274:security-filter-login:2.9.0] at org.codice.ddf.security.filter.login.LoginFilter.validateRequest(LoginFilter.java:326)[274:security-filter-login:2.9.0] at org.codice.ddf.security.filter.login.LoginFilter.doFilter(LoginFilter.java:267)[274:security-filter-login:2.9.0] at org.codice.ddf.platform.filter.delegate.ProxyFilterChain.doFilter(ProxyFilterChain.java:112)[93:platform-filter-delegate:2.9.0] at org.codice.ddf.security.filter.websso.WebSSOFilter.handleRequest(WebSSOFilter.java:243)[275:security-filter-web-sso:2.9.0] at org.codice.ddf.security.filter.websso.WebSSOFilter.doFilter(WebSSOFilter.java:136)[275:security-filter-web-sso:2.9.0] at org.codice.ddf.platform.filter.delegate.ProxyFilterChain.doFilter(ProxyFilterChain.java:112)[93:platform-filter-delegate:2.9.0] at org.codice.ddf.platform.filter.delegate.DelegateServletFilter.doFilter(DelegateServletFilter.java:105)[93:platform-filter-delegate:2.9.0] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)[73:org.eclipse.jetty.servlet:9.2.14.v20151106] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)[73:org.eclipse.jetty.servlet:9.2.14.v20151106] at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[90:org.ops4j.pax.web.pax-web-jetty:4.2.4] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[72:org.eclipse.jetty.server:9.2.14.v20151106] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)[71:org.eclipse.jetty.security:9.2.14.v20151106] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[72:org.eclipse.jetty.server:9.2.14.v20151106] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[72:org.eclipse.jetty.server:9.2.14.v20151106] at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:271)[90:org.ops4j.pax.web.pax-web-jetty:4.2.4] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[73:org.eclipse.jetty.servlet:9.2.14.v20151106] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[72:org.eclipse.jetty.server:9.2.14.v20151106] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[72:org.eclipse.jetty.server:9.2.14.v20151106] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[72:org.eclipse.jetty.server:9.2.14.v20151106] at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)[90:org.ops4j.pax.web.pax-web-jetty:4.2.4] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[72:org.eclipse.jetty.server:9.2.14.v20151106] at org.eclipse.jetty.server.Server.handle(Server.java:499)[72:org.eclipse.jetty.server:9.2.14.v20151106] at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)[72:org.eclipse.jetty.server:9.2.14.v20151106] at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[72:org.eclipse.jetty.server:9.2.14.v20151106] at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)[64:org.eclipse.jetty.io:9.2.14.v20151106] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[75:org.eclipse.jetty.util:9.2.14.v20151106] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[75:org.eclipse.jetty.util:9.2.14.v20151106] at java.lang.Thread.run(Thread.java:745)[:1.8.0_77] Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col,system-id]: [1,0,"https://localhost:8993/services/SecurityTokenService?wsdl"] at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:228)[114:org.apache.cxf.cxf-rt-wsdl:3.1.4] at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:163)[114:org.apache.cxf.cxf-rt-wsdl:3.1.4] at org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:85)[114:org.apache.cxf.cxf-rt-wsdl:3.1.4] ... 45 more Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col,system-id]: [1,0,"https://localhost:8993/services/SecurityTokenService?wsdl"] at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:685)[108:woodstox-core-asl:4.4.1] at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2141)[108:woodstox-core-asl:4.4.1] at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2047)[108:woodstox-core-asl:4.4.1] at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1131)[108:woodstox-core-asl:4.4.1] at org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:1345)[109:org.apache.cxf.cxf-core:3.1.4] at org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:1239)[109:org.apache.cxf.cxf-core:3.1.4] at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:1167)[109:org.apache.cxf.cxf-core:3.1.4] at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:219)[114:org.apache.cxf.cxf-rt-wsdl:3.1.4] ... 47 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    4 times, 10 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    12 more bugmates