赞
踩
错误如下:
16:21:12,978 信息 [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-15) Creating Service {http://service.com}UserAppSmsSendWebService from WSDL: /META-INF/wsdl/UserAppSmsSendWebService.wsdl
16:21:13,180 INFO [org.jboss.wsf.stack.cxf.transport.AddressRewritingEndpointInfo] (MSC service thread 1-15) Setting new service endpoint address in wsdl: http://10.0.9.100:8080/UserAppSmsSendWebService/services/UserAppSmsSendWebService
16:21:13,390 INFO [org.jboss.wsf.stack.cxf.transport.AddressRewritingEndpointInfo] (MSC service thread 1-15) Setting new service endpoint address in wsdl: http://localhost:8080/RevContractInfo/UserAppSmsSendWebService
16:21:13,436 信息 [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-15) Setting the server's publish address to be http://localhost:8080/RevContractInfo/UserAppSmsSendWebService
16:21:13,546 INFO [org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher] (MSC service thread 1-15) WSDL published to: file:/D:/Application/jboss-as-7.1.1.Final/standalone/data/wsdl/RevContractInfo.war/UserAppSmsSendWebService.wsdl
16:21:13,558 信息 [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-15) Creating Service {http://mss.unicom.com/SB_EBS_GL_TransBalenceInfoSrv}SB_EBS_GL_TransBalenceInfoSrv from WSDL: /META-INF/wsdl/SB_EBS_GL_TransBalenceInfoSrv.wsdl
16:21:13,675 信息 [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-15) Setting the server's publish address to be http://localhost:8080/RevContractInfo/SB_EBS_GL_TransBalenceInfoSrv
16:21:13,691 INFO [org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher] (MSC service thread 1-15) WSDL published to: file:/D:/Application/jboss-as-7.1.1.Final/standalone/data/wsdl/RevContractInfo.war/SB_EBS_GL_TransBalenceInfoSrv.wsdl
16:21:13,722 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-15) MSC00001: Failed to start service jboss.deployment.unit."RevContractInfo.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."RevContractInfo.war".INSTALL: Failed to process phase INSTALL of deployment "RevContractInfo.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
Caused by: java.lang.RuntimeException: Cannot publish wsdl to: D:\Application\jboss-as-7.1.1.Final\standalone\data\wsdl\RevContractInfo.war\SB_EBS_GL_TransBalenceInfoSrv.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.IOException: Could not find WEB-INF/wsdl/SB_EBS_GL_TransBalenceInfoSrv.xsd in the additional metadatafiles!
at org.jboss.ws.common.deployment.ResourceResolverImpl.resolve(ResourceResolverImpl.java:124)
at org.jboss.ws.common.utils.AbstractWSDLFilePublisher.publishSchemaImports(AbstractWSDLFilePublisher.java:223)
at org.jboss.ws.common.utils.AbstractWSDLFilePublisher.publishSchemaImports(AbstractWSDLFilePublisher.java:250)
at org.jboss.ws.common.utils.AbstractWSDLFilePublisher.publishSchemaImports(AbstractWSDLFilePublisher.java:250)
at org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher.publishWsdlFiles(WSDLFilePublisher.java:94)
... 14 more
16:21:13,844 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "RevContractInfo.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"RevContractInfo.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"RevContractInfo.war\".INSTALL: Failed to process phase INSTALL of deployment \"RevContractInfo.war\""}}
16:21:14,248 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment RevContractInfo.war in 404ms
16:21:14,255 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."RevContractInfo.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."RevContractInfo.war".INSTALL: Failed to process phase INSTALL of deployment "RevContractInfo.war"
16:21:14,272 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"RevContractInfo.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"RevContractInfo.war\".INSTALL: Failed to process phase INSTALL of deployment \"RevContractInfo.war\""}}}}
经过研究和分析,是因为项目中生成webService客户端或其他地方使用了Apache-CXF框架,与Jboss-eap冲突所致。
解决方法:找到%JBOSS-HOME%->standalone->configuration->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 name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>
</pre-handler-chain>
</endpoint-config>
</subsystem>
将以上代码注释掉即可ctrl+shift+/,或者删除,如下:
<!-- <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 name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>
</pre-handler-chain>
</endpoint-config>
</subsystem> -->
然后重现打包启动服务,即可。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。