添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

启动wildfly服务器报错,报错信息:

17 : 14 : 50 , 733 ERROR [org.jboss. as .controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ( "add" ) failed - address: ([( "deployment" => "YZYWeiXin.war" )]) - failure description: { "WFLYCTL0080: Failed services" => { "jboss.persistenceunit.\"YZYWeiXin.war#cnsoftbei-yzy\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"YZYWeiXin.war#cnsoftbei-yzy\": java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Caused by: java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory" }, "WFLYCTL0412: Required services that are not installed:" => [ "jboss.persistenceunit.\"YZYWeiXin.war#cnsoftbei-yzy\"" ], "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined 17 : 14 : 50 , 737 ERROR [org.jboss. as .controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ( "add" ) failed - address: ([( "deployment" => "labmanagement.war" )]) - failure description: { "WFLYCTL0080: Failed services" => { "jboss.persistenceunit.\"labmanagement.war#labUnit\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"labmanagement.war#labUnit\": java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Caused by: java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory" }, "WFLYCTL0412: Required services that are not installed:" => [ "jboss.persistenceunit.\"labmanagement.war#labUnit\"" ], "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined 17 : 14 : 50 , 740 ERROR [org.jboss. as .controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ( "add" ) failed - address: ([( "deployment" => "jpa.war" )]) - failure description: { "WFLYCTL0080: Failed services" => { "jboss.persistenceunit.\"jpa.war#engine_diagnosis_system\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jpa.war#engine_diagnosis_system\": java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Caused by: java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory" }, "WFLYCTL0412: Required services that are not installed:" => [ "jboss.persistenceunit.\"jpa.war#engine_diagnosis_system\"" ], "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined 17 : 14 : 50 , 745 ERROR [org.jboss. as .controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ( "add" ) failed - address: ([( "deployment" => "EngineDiagnosisSystem.war" )]) - failure description: { "WFLYCTL0080: Failed services" => { "jboss.persistenceunit.\"EngineDiagnosisSystem.war#engine_diagnosis_system\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"EngineDiagnosisSystem.war#engine_diagnosis_system\": java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Caused by: java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory" }, "WFLYCTL0412: Required services that are not installed:" => [ "jboss.persistenceunit.\"EngineDiagnosisSystem.war#engine_diagnosis_system\"" ], "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined

二、原因分析

2.1 报错关键字

1.(Controller Boot Thread) WFLYCTL0013: Operation (“add”) failed - address: ([(“deployment” => “YZYWeiXin.war”)]) - failure
2.org.jboss.msc.service.StartException in service jboss.persistenceunit.\”YZYWeiXin.war#cnsoftbei-yzy\”: java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory

2.2 可能原因分析

1. 可能原因一:hibernate与dom4j的配置存在问题,比如版本冲突问题。
这个问题其实已经遇到过多次了,在使用
mvn clean package wildfly:deploy
命令部署项目时也会报关于dom4j的错误,而dom4j大多与hibernate,jpa的配置有关,所以,可能原因一:
hibernate与dom4j的配置存在问题,比如版本冲突问题。
2. 可能原因二:之前的项目存在问题,也是版本冲突问题。

三、问题解决

这个解决方法过于笼统,但是能解决问题:
1.删掉$WILDFLY_HOME/standalone/deploments目录下部署的项目;
de
2.删掉$WILDFLY_HOME/standalone/configration/standalone.xml文件中出错的项目部署。
dep

四、相关问题

服务器启动时端口被占用问题,参见博客:
http://blog.csdn.net/qq_33429968/article/details/72453652

wildfly服务器系列--widlfly启动Operation ("add") failed失败以及org.dom4j.DocumentFactory cannot be cast to org.d 一、问题描述  启动wildfly服务器报错,报错信息:   17:14:50,733 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "YZYWeiXi
error14:04:02,723 ERROR [ org .jboss.as.controller.management- operation ] (ServerService Thread Pool -- 27) JBAS014612: Operation (" add ") failed - add ress: ([ ("subsystem" => "datasources"), ("jdb
报错内容: 15:07:50,724 ERROR [ org .jboss.as.controller.management- operation ] (Controller Boot Thread) WFLYCTL0013 : Operation (" add ") failed - add ress: ([("deployment" => "MESwell.ear")]) - failure description: "WFLYCTL0212: Duplicate resource [(\"deploymen.
首先,SSH的课程正在学习,而代表S的Struts一开始配置就出现错误了(不会吧 在我出错的时候,看到很多同学都交了作业了,QAQ 所以我觉得是自己打错的问题,毕竟老师的答案都有给出 然后找啊找,很难才找到。 首先建了ssh03的项目,项目结构是这样的 这里大致上是没什么问题,接着看下去,自己配置的struts.xml: 来找个碴吧!和
21:44:20,275 ERROR [ org .jboss.as.controller.management- operation ] (Controller Boot Thread) WFLYCTL0013 : Operation (" add ") failed - add ress: ([     ("subsystem" => "datasources"),     ("data-source"
myeclipse为2016版本 wildfly 为8.0 安装配置遇到的问题真的数不胜数,而且网上的安装配置有点参差不齐,于是就自己安装啦,然后出错、闪退,最后发现原来是自己很多配置错了,而且还打错。。。 正常应该是这个样子的: 大部分都是INFO,没有ERRORo(* ̄▽ ̄*)ブ开心 不过也有不正常的时候: *bin 里面就是一些可执行的脚本文件,有添加用户的、 启动 的脚本等 *docs 就是 服务器 的基础文件 *domain 服务器 启动 方式有两种,一种是standalone,另一种就是domain的分布式 启动 ,里面放了domain 启动 的相关配置 *standa