具有集成cxf的web应用在tomcat运行非常好,但在jboss下启动报错:
报错如下:
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_43]
Caused by: java.lang.RuntimeException: Cannot publish wsdl to: D:\Program Files\jboss-as-7.1.1.Final\standalone\data\wsdl\paycore-web.war\WithdrawCashServiceFacadeImplService.wsdl
at org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher.publishWsdlFiles(WSDLFilePublisher.java:107)
at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.publishContractToFilesystem(EndpointImpl.java:222)
at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:93)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:239)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:509)
at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:117)
at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:113)
at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:66)
at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:74)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: java.io.FileNotFoundException: D:\Program Files\jboss-as-7.1.1.Final\standalone\data\wsdl\paycore-web.war\WithdrawCashServiceFacade.wsdl (系统找不到指定的文件。)
at java.io.FileInputStream.open(Native Method) [rt.jar:1.6.0_43]
at java.io.FileInputStream.<init>(FileInputStream.java:120) [rt.jar:1.6.0_43]
解决方法如下:
注释掉standalone.xml中的
<!--
<subsystem xmlns="urn:jboss:domain:webservices:1.1">
<modify-wsdl-address>true</modify-wsdl-address>
<wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>
<endpoint-config name="Standard-Endpoint-Config"/>
<endpoint-config name="Recording-Endpoint-Config">
<pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">
<handler class="org.jboss.ws.common.invocation.RecordingServerHandler" name="RecordingHandler"/>
</pre-handler-chain>
</endpoint-config>
</subsystem>
-->
重启应用即可。
不要由jboss容易来管理cxf
有谁知道更好的解决方案吗???小弟救指教
分享到:
相关推荐
<import resource="classpath:META-INF/cxf/cxf.xml"/> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/> <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
利用Apache CXF开发webservice接口需要用到的jar集合 cxf-core-3.0.15.jar cxf-rt-bindings-soap-3.0.15.jar cxf-rt-bindings-xml-3.0.15.jar cxf-rt-databinding-jaxb-3.0.15.jar cxf-rt-frontend-jaxws-3.0.15.jar...
TipTec.Developing.Web.Services.with.Apache.CXF.and.Axis2.Jan.2010.rar
cxf客户端调用axis服务端流程.docxcxf客户端调用axis服务端流程.docx
apache-cxf-2.6.2.tar.gz CXF及其依赖包
cxf-core-3.1.16版本jar包,用于java开发使用
webservice CXF 报错:java.lang.NoClassDefFoundError: org/apache/neethi/builders/AssertionBuilder 需要用到此jar文件 通过apache官网可获得。 文件位置\apache-cxf-2.7.13\lib
cxf框架包.zip
PacktPub.Apache.CXF.Web.Service.Development.Dec.2009.rar
一个文件:cxf-core-3.1.3.jar cxf-core-3.1.3.jar cxf-core-3.1.3.jar
目前最新版本的CXF包,可以辅助开发Web Service的服务器端和客户端
cxf-2.7.18. jar及其依赖包,可解决客户端调用提示source 1.5已过时问题。
而相应的war包在tomcat上是可以正常启动的,通过后台的日志分析大致可以定位为相关的cxf类无法找到,其实这些类在项目的lib目录下都是存在的,莫名其妙的就是找不到,归根结底原因不是找不到类,而是发布后war下的...
赠送jar包:cxf-core-3.0.1.jar; 赠送原API文档:cxf-core-3.0.1-javadoc.jar; 赠送源代码:cxf-core-3.0.1-sources.jar; 赠送Maven依赖信息文件:cxf-core-3.0.1.pom; 包含翻译后的API文档:cxf-core-3.0.1-...
②用tomcat启动ssh2cxf项目 ③在浏览器输入:http://localhost:8080/ssh2cxf(ssh增删改查) ④在浏览器输入:http://localhost:8080/ssh2cxf/webServices/PersonnelWS(发布webservice) ⑤在ssh2cxf项目里...
apache-cxf-2.6.0.tar.gz
apache-cxf-2.4.6.zip
apache-cxf-2.7.18-src.zip