ibm jdk1.6 + jboss 调用cxf异常

问题描述

最近项目时,调用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求教各位大神,有何良策可解此疑症,小弟在此谢过……

解决方案

时间: 2024-09-21 18:06:17

ibm jdk1.6 + jboss 调用cxf异常的相关文章

activex-java调用ocx异常,com.jacob.com.ComFailException

问题描述 java调用ocx异常,com.jacob.com.ComFailException public static void main(String[] args) { ActiveXComponent activeX = new ActiveXComponent(CLSID:{EB10EB14-149D-4287-9139-07420E9D6EF9}""); System.out.println(""11"");} ocx文件注册成功,

dubbo调用时报异常channel is closed

问题描述 dubbo调用时报异常channel is closed DUBBO服务消费方调用时报如下异常,一般是什么原因导致的? com.alibaba.dubbo.remoting.RemotingException: message can not send, because channel is closed 解决方案 OK了 原来是网络不通 从服务消费方到服务提供方网络问题

nssm-关于C#调用打印机异常问题

问题描述 关于C#调用打印机异常问题 项目介绍:在客户那边有一个平台,是通过web浏览器去访问的,我主要做的就是在客户端提供一个服务程序,然后让他们的平台调用我的服务程序的url来完成各种相关的数据处理.我用的是C#和nancy,做的是控制台的项目,然后用nssm弄成windows服务,服务目前其他各项处理都没问题,除了这个打印的功能.打印的这一块存在问题,我在xamarin和vs里面进行运行或调试的时候打印功能一切正常,但是使用nssm装成windows服务以后就开始报异常,异常的详细信息如下

axis调用cxf开发的接口,Unexpected wrapper element found.

问题描述 axis调用cxf开发的接口,Unexpected wrapper element found. 错误代码如下:AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client faultSubcode: faultString: Unexpected wrapper element requestHgInfoRespond found. Expected {http://warehouse.cxf.kcb.c

jboss中调用ejb异常,请高手指点

问题描述 test.jsp:<%Worklistworklist_=null;Consoleconsole=null;//WAS连接方式try{System.out.println("InitEJBRemoteinterface...");Hashtableprops=newHashtable();props.put("java.naming.factory.initial","com.ibm.websphere.naming.WsnInitialC

jboss服务启动异常2

问题描述 17:03:40,859WARN[BasicMBeanRegistry]javax.management.MBeanRegistrationException:preRegister()failed:[ObjectName='jboss.remoting:service=NetworkRegistry',Class=org.jboss.remoting.network.NetworkRegistry(org.jboss.remoting.network.NetworkRegistry@

com调用ActiveX异常 com本身不报错

问题描述 从vb6.0移植到vb.net的一个画面,运行时异常InvalidOperationException报activex的windowHandle取不到.于是把debug属性的"EnabletheVisualStudiohostingprocess"选项取消后,可以正常运行.对这个选项的作用不是很理解,谁可以告诉我,为什么把勾去掉就不报错?但是问题是,作为com组件注册后,在被其他画面调用时,之前的异常又出现了,是什么原因?以下是调用代码DimoSyohinFindAsObje

C# 调用cxf的webservice上传附件返回消息格式Content-Type: application/xop+xml;

问题描述 cxf服务器设置了<entrykey="mtom-enabled"value="true"/>属性来接收附件客户端是java的时候调用返回信息正常但是使用c#调用的时候返回信息中多了些前缀下面是完整信息------=_Part_0_9129144.1427966967432Content-Type:application/xop+xml;charset=UTF-8;type="text/xml";Content-Transf

mule 基于wsdl调用cxf web service

最近看mule的一个文档mule esb 3 concepts,介绍了mule esb的一些基本概念.看完后,对soa,esb,服务等都有了更深的认识.今天试验通过mule进行cxf web service的调用,试了一下午终于成功. 1,首先要有一个已经发布的cxf web service,可以通过mule studio以图形化的方式简单生成config.xml,再写好相应的component class,就是发布用到的接口和pojo类. interface _________________