Netbeans 无法处理部署的阶段分析

Netbeans 无法处理部署的阶段分析,netbeans,deployment,webserver,war,wildfly-8,Netbeans,Deployment,Webserver,War,Wildfly 8,我试图在wildfly-8上部署LBatch.war,方法是将war文件放在服务器的部署文件夹中,然后在Netbeans中启动服务器并结束以下异常 14:39:53,810 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-10) MSC000001: Failed to start service jboss.deployment.unit."LBatch.war".PARSE: org.jboss.msc.service.Sta

我试图在wildfly-8上部署
LBatch.war
,方法是将war文件放在服务器的部署文件夹中,然后在Netbeans中启动服务器并结束以下异常

14:39:53,810 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-10) MSC000001: Failed to start service jboss.deployment.unit."LBatch.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."LBatch.war".PARSE: JBAS018733: Failed to process phase PARSE of deployment "LBatch.war"
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.0.0.Final.jar:8.0.0.Final]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_40]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_40]
    at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS015599: Apache CXF library (cxf-bundle-2.6.6.jar) detected in ws endpoint deployment; either provide a proper deployment replacing embedded libraries with container module dependencies or disable the webservices subsystem for the current deployment adding a proper jboss-deployment-structure.xml descriptor to it. The former approach is recommended, as the latter approach causes most of the webservices Java EE and any JBossWS specific functionality to be disabled.
    at org.jboss.as.webservices.deployers.WSLibraryFilterProcessor.deploy(WSLibraryFilterProcessor.java:71)
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.0.0.Final.jar:8.0.0.Final]
    ... 5 more

14:39:53,815 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "LBatch.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"LBatch.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"LBatch.war\".PARSE: JBAS018733: Failed to process phase PARSE of deployment \"LBatch.war\"
    Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS015599: Apache CXF library (cxf-bundle-2.6.6.jar) detected in ws endpoint deployment; either provide a proper deployment replacing embedded libraries with container module dependencies or disable the webservices subsystem for the current deployment adding a proper jboss-deployment-structure.xml descriptor to it. The former approach is recommended, as the latter approach causes most of the webservices Java EE and any JBossWS specific functionality to be disabled."}}
14:39:53,856 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 32) JBAS018559: Deployed "LBatch.war" (runtime-name : "LBatch.war")
14:39:53,858 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014777:   Services which failed to start:      service jboss.deployment.unit."LBatch.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."LBatch.war".PARSE: JBAS018733: Failed to process phase PARSE of deployment "LBatch.war"

14:39:53,891 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
14:39:53,891 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
14:39:53,892 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: WildFly 8.0.0.Final "WildFly" started (with errors) in 5084ms - Started 218 of 267 services (1 services failed or missing dependencies, 89 services are lazy, passive or on-demand)
14:39:54,233 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015877: Stopped deployment LBatch.war (runtime-name: LBatch.war) in 146ms
14:39:54,287 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018558: Undeployed "LBatch.war" (runtime-name: "LBatch.war")
14:39:54,287 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777:   Services which failed to start:      service jboss.deployment.unit."LBatch.war".PARSE

出于某种原因,如果将CXF依赖项添加到项目中,Wildfly会不高兴

它正在抱怨
cxf-bundle-2.6.6.jar

确保你的项目没有包含那个JAR。如果您正在使用Maven,请检查依赖关系层次结构,因为即使您没有直接包含它,您正在使用的其他项目也可能包含它


我不知道为什么Wildfly会抱怨这件事。可能它已经有了自己的依赖项集,不需要您插入您的依赖项集。

这基本上是同一个问题,我只是在回答时参考了JBossWS文档,解释了该做什么(即定义JBoss模块依赖项并避免在部署中捆绑CXF)。

请参阅