问题描述
最近项目时,调用cxf异常,环境信息如下:ibmjdk1.6+jboss+cxf,本地生成客户端代码,调用时报异常,异常信息如下:javax.xml.ws.WebServiceException:org.apache.cxf.service.factory.ServiceConstructionException:Failedtocreateservice.atorg.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:149)atorg.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:98)atjavax.xml.ws.Service.<init>(Service.java:79)atcom.alltrust.ebiz.echannel.app.front.ws.thirdlogin.ThirdLoginService.<init>(ThirdLoginService.java:47)atcom.estar.yc.mobile.user.User.login(User.java:81)atcom.estar.yc.mobile.servlet.MobileServlet.doPost(MobileServlet.java:105)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:637)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:717)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atcom.estar.edp.base.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:50)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atorg.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)atorg.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)atorg.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)atorg.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)atorg.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)atorg.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)atorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)atorg.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)atorg.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)atorg.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)atorg.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)atjava.lang.Thread.run(Thread.java:736)Causedby:org.apache.cxf.service.factory.ServiceConstructionException:Failedtocreateservice.atorg.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:100)atorg.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:199)atorg.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:147)...30moreCausedby:javax.wsdl.WSDLException:WSDLException:faultCode=PARSER_ERROR:java.lang.RuntimeException:CannotcreateasecureXMLInputFactoryatorg.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:256)atorg.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:205)atorg.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:98)...32moreCausedby:java.lang.RuntimeException:CannotcreateasecureXMLInputFactoryatorg.apache.cxf.staxutils.StaxUtils.createXMLInputFactory(StaxUtils.java:300)atorg.apache.cxf.staxutils.StaxUtils.getXMLInputFactory(StaxUtils.java:255)atorg.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1416)atorg.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1318)atorg.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:246)...34morejavax.xml.ws.WebServiceException:org.apache.cxf.service.factory.ServiceConstructionException:Failedtocreateservice.atorg.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:149)atorg.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:98)atjavax.xml.ws.Service.<init>(Service.java:79)atcom.alltrust.ebiz.echannel.app.front.ws.thirdlogin.ThirdLoginService.<init>(ThirdLoginService.java:47)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:637)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:717)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atcom.estar.edp.base.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:50)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atorg.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)atorg.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)atorg.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)atorg.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)atorg.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)atorg.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)atorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)atorg.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)atorg.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)atorg.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)atorg.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)atjava.lang.Thread.run(Thread.java:736)Causedby:org.apache.cxf.service.factory.ServiceConstructionException:Failedtocreateservice.atorg.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:100)atorg.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:199)atorg.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:147)...30moreCausedby:javax.wsdl.WSDLException:WSDLException:faultCode=PARSER_ERROR:java.lang.RuntimeException:CannotcreateasecureXMLInputFactoryatorg.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:256)atorg.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:205)atorg.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:98)...32moreCausedby:java.lang.RuntimeException:CannotcreateasecureXMLInputFactoryatorg.apache.cxf.staxutils.StaxUtils.createXMLInputFactory(StaxUtils.java:300)atorg.apache.cxf.staxutils.StaxUtils.getXMLInputFactory(StaxUtils.java:255)atorg.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1416)atorg.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1318)atorg.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:246)...34more求教各位大神,有何良策可解此疑症,小弟在此谢过……