【问题标题】:Intellij error during artifact deployment. Jboss工件部署期间的 Intellij 错误。老板
【发布时间】:2017-05-07 07:01:04
【问题描述】:

我正在尝试在 intellij 上运行一个项目。我使用的是wildfly,它的配置是正确的,因为如果我点击运行,项目会正常启动,但是如果我点击调试它会出现以下错误。

我发现了一些与这个问题有关的线程,但没有一个能解决问题。有人可以帮忙吗?

注意:我从完全独立的配置开始 wildfly

谢谢

Connected to server
[2016-12-21 04:23:04,640] Artifact catix-web:war exploded: Artifact is being deployed, please wait...
16:23:04,740 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0027: Starting deployment of "Catix" (runtime-name: "Catix.war")
16:23:06,522 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0059: Class Path entry xercesImpl.jar in /home/ricardo/IdeaProjects/Catix/catix-web/target/Catix/WEB-INF/lib/xalan-2.6.0.jar  does not point to a valid jar for a Class-Path reference.
16:23:06,522 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0059: Class Path entry xml-apis.jar in /home/ricardo/IdeaProjects/Catix/catix-web/target/Catix/WEB-INF/lib/xalan-2.6.0.jar  does not point to a valid jar for a Class-Path reference.
16:23:06,525 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0059: Class Path entry xbean.jar in /home/ricardo/IdeaProjects/Catix/catix-web/target/Catix/WEB-INF/lib/batik-js-1.7.jar  does not point to a valid jar for a Class-Path reference.
16:23:06,583 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.deployment.unit."Catix.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."Catix.war".PARSE: WFLYSRV0153: Failed to process phase PARSE of deployment "Catix.war"
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:163)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.jboss.msc.service.ServiceNotFoundException: Service service jboss.ejb.default-resource-adapter-name-service not found
    at org.jboss.msc.service.ServiceContainerImpl.getRequiredService(ServiceContainerImpl.java:669)
    at org.jboss.as.ejb3.deployment.processors.MessageDrivenComponentDescriptionFactory.getDefaultResourceAdapterName(MessageDrivenComponentDescriptionFactory.java:274)
    at org.jboss.as.ejb3.deployment.processors.MessageDrivenComponentDescriptionFactory.processMessageBeans(MessageDrivenComponentDescriptionFactory.java:154)
    at org.jboss.as.ejb3.deployment.processors.MessageDrivenComponentDescriptionFactory.processAnnotations(MessageDrivenComponentDescriptionFactory.java:81)
    at org.jboss.as.ejb3.deployment.processors.AnnotatedEJBComponentDescriptionDeploymentUnitProcessor.processAnnotations(AnnotatedEJBComponentDescriptionDeploymentUnitProcessor.java:57)
    at org.jboss.as.ejb3.deployment.processors.AbstractDeploymentUnitProcessor.deploy(AbstractDeploymentUnitProcessor.java:81)
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:156)
    ... 5 more

16:23:06,585 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 2) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "Catix")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"Catix.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Catix.war\".PARSE: WFLYSRV0153: Failed to process phase PARSE of deployment \"Catix.war\"
    Caused by: org.jboss.msc.service.ServiceNotFoundException: Service service jboss.ejb.default-resource-adapter-name-service not found"}}
16:23:06,586 ERROR [org.jboss.as.server] (management-handler-thread - 2) WFLYSRV0021: Deploy of deployment "Catix.war" was rolled back with the following failure message: 
{"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"Catix.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Catix.war\".PARSE: WFLYSRV0153: Failed to process phase PARSE of deployment \"Catix.war\"
    Caused by: org.jboss.msc.service.ServiceNotFoundException: Service service jboss.ejb.default-resource-adapter-name-service not found"}}
16:23:06,606 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0028: Stopped deployment Catix (runtime-name: Catix.war) in 20ms
16:23:06,607 INFO  [org.jboss.as.controller] (management-handler-thread - 2) WFLYCTL0183: Service status report
WFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit."Catix.war".PARSE

[2016-12-21 04:23:06,633] Artifact catix-web:war exploded: Error during artifact deployment. See server log for details.
[2016-12-21 04:23:06,634] Artifact catix-web:war exploded: java.lang.Exception: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"Catix.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Catix.war\".PARSE: WFLYSRV0153: Failed to process phase PARSE of deployment \"Catix.war\"
    Caused by: org.jboss.msc.service.ServiceNotFoundException: Service service jboss.ejb.default-resource-adapter-name-service not found"}}

【问题讨论】:

  • 你是如何启动服务器的?您使用的是standalone-full.xml 配置吗?
  • 已经解决了问题。谢谢。

标签: java intellij-idea jboss server wildfly


【解决方案1】:

我会从您的 WEB-INF/lib 中删除 Xalan 和 Xerces JAR。服务器应该使用自己的版本。

我将最后一条错误消息剪切并粘贴到 Google 中并得到了this

【讨论】:

  • 不,和以前一样
【解决方案2】:

当然不行,我以为启动脚本中的这个命令(运行/调试配置->启动/连接选项卡)既用于运行又用于调试。事实证明,您需要显式选择调试并将相同的配置放入启动脚本中。我的注意力不集中

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-11-11
    • 2020-12-17
    • 1970-01-01
    • 1970-01-01
    • 2015-08-02
    • 1970-01-01
    • 1970-01-01
    • 2017-12-09
    相关资源
    最近更新 更多