如何在jboss eap 6.1上部署cxf Web服务 [英] How to deploy cxf web service on jboss eap 6.1

查看:372
本文介绍了如何在jboss eap 6.1上部署cxf Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在jboss-eap-6.1上部署我的cxf web服务,但没有完成。我在下面提供堆栈跟踪:

 
16:37:30,821 ERROR [org.jboss.msc.service.fail](MSC服务线程1-5)MSC000001:无法启动服务jboss.deployment.unitGenericEnterpriseApplicationSkeleton.war。 INSTALL:org.jboss.msc.service.StartException in service jboss.deployment.unitGenericEnterpriseApplicationSkeleton.war.INSTALL:JBAS018733:无法处理阶段INSTALL的部署GenericEnterpriseApplicationSkeleton.war
在org.jboss。 as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127)[jboss-as-server-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
org.jboss.msc.service.ServiceControllerImpl $ StartTask.startService(ServiceControllerImpl.java:1811)[jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
在org.jboss.msc.service.ServiceControllerImpl $ StartTask.run(ServiceControllerImpl。 java:1746)[jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
在java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)[ rt.jar:1.7.0_40]
在java.util.concurrent.ThreadPoolExecutor $ Worker.run(Unknown Source)[rt.jar:1.7.0_40]
在java.lang.Thread.run未知源)[rt.jar:1.7.0_40]
导致:org.jboss.as.server.deployment.DeploymentUnitProcessingException:JBAS011030:无法配置组件org.apache.cxf.wsn.client.Publisher
在org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:91)
在org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
... 5更多
引起的:org.jboss.as .server.deployment.DeploymentUnitProcessingException:JBAS011054:在org.jap中找不到类org.apache.cxf.wsn.client.Publisher
的默认构造函数ss.as.ee.component.ComponentDescription $ DefaultComponentConfigurator.configure(ComponentDescription.java:607)
在org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:80)
... 6更多

16:37:30,854 INFO [org.jboss.as.server](ServerService线程池 - 26)JBAS018559:部署GenericEnterpriseApplicationSkeleton.war(runtime-name: GenericEnterpriseApplicationSkeleton.war)
16:37:30,854 INFO [org.jboss.as.server](ServerService线程池 - 26)JBAS018559:部署了EAApplication.ear(运行时名称:EAApplication.ear )
16:37:30,855 INFO [org.jboss.as.controller](控制器引导线程)​​JBAS014774:服务状态报告
JBAS014777:无法启动的服务:service jboss.deployment.unit。 GenericEnterpriseApplicationSkeleton.war.INSTALL:org.jboss.msc.service.StartException in service jboss.deployment.unit。GenericEnterpriseApplicationSkeleton.war.INSTALL:JBAS018 733:无法处理阶段INSTALL部署GenericEnterpriseApplicationSkeleton.war

16:37:31,036 INFO [org.jboss.as](控制器引导线程)​​JBAS015961:Http管理界面监听http: / 127.0.0.1:9990/management
16:37:31,037 INFO [org.jboss.as](控制器启动线程)JBAS015951:管理控制台侦听http:// 127.0.0.1:9990
16 :37:31,037错误[org.jboss.as](控制器引导线程)​​JBAS015875:JBoss EAP 6.1.0.GA(AS 7.2.0.Final-redhat-8)启动(带有错误)5102ms - 已启动198/260服务(1个服务失败或缺少依赖关系,60个服务被动或按需)

请看看。

解决方案

我有类似的,但不是你提到的确切错误。我通过绕过默认的Jboss Webservices实现来解决它。



我在standalone.xml中注释了以下几行:

  < extension module =org.jboss.as.webservices/> 

和子系统

 < subsystem xmlns =urn:jboss:domain:webservices:1.2> 
< 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-handlersprotocol-bindings =## SOAP11_HTTP ## SOAP11_HTTP_MTOM ## SOAP12_HTTP ## SOAP12_HTTP_MTOM>
< handler name =RecordingHandlerclass =org.jboss.ws.common.invocation.RecordingServerHandler/>
< / pre-handler-chain>
< / endpoint-config>
< client-config name =Standard-Client-Config/>
< / subsystem>

请查看有关我的想法的链接 - https://developer.jboss.org/thread/221654 。希望这可以帮助。


Hey guys I am trying to deploy my cxf web service on jboss-eap-6.1 but its not getting done.. I am providing the stack trace below:

16:37:30,821 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.deployment.unit."GenericEnterpriseApplicationSkeleton.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."GenericEnterpriseApplicationSkeleton.war".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment "GenericEnterpriseApplicationSkeleton.war"
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_40]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_40]
    at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_40]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011030: Could not configure component org.apache.cxf.wsn.client.Publisher
    at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:91)
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
    ... 5 more
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011054: Could not find default constructor for class org.apache.cxf.wsn.client.Publisher
    at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:607)
    at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:80)
    ... 6 more

16:37:30,854 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 26) JBAS018559: Deployed "GenericEnterpriseApplicationSkeleton.war" (runtime-name : "GenericEnterpriseApplicationSkeleton.war")
16:37:30,854 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 26) JBAS018559: Deployed "EAApplication.ear" (runtime-name : "EAApplication.ear")
16:37:30,855 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014777:   Services which failed to start:      service jboss.deployment.unit."GenericEnterpriseApplicationSkeleton.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."GenericEnterpriseApplicationSkeleton.war".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment "GenericEnterpriseApplicationSkeleton.war"

16:37:31,036 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http:// 127.0.0.1:9990/management
16:37:31,037 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http:// 127.0.0.1:9990
16:37:31,037 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss EAP 6.1.0.GA (AS 7.2.0.Final-redhat-8) started (with errors) in 5102ms - Started 198 of 260 services (1 services failed or missing dependencies, 60 services are passive or on-demand)

Please do have a look.

解决方案

I got similar but not the exact error as mentioned by you. I solved it by bypassing the default Jboss Webservices implementation.

I commented out the following lines in the standalone.xml

    <extension module="org.jboss.as.webservices"/>

and the subsystem

    <subsystem xmlns="urn:jboss:domain:webservices:1.2">
        <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>
        <client-config name="Standard-Client-Config"/>
    </subsystem>

Please see the link on how I got the idea - https://developer.jboss.org/thread/221654. Hope this helps.

这篇关于如何在jboss eap 6.1上部署cxf Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆