org.jboss.netty.internal.LoggerConfigurator.DESCRIBED is already registered 的解决办法
生活随笔
收集整理的這篇文章主要介紹了
org.jboss.netty.internal.LoggerConfigurator.DESCRIBED is already registered 的解决办法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
今天在jboss 6.2 EAP上部署一個項目時,報以下錯誤:
org.jboss.msc.service.DuplicateServiceException: Service jboss.pojo."org.jboss.netty.internal.LoggerConfigurator".DESCRIBED is already registered
這類錯誤一般是項目依賴的jar包與jboss自帶的module沖突引起的,根據"org.jboss.netty.internal.LoggerConfigurator"中的netty關鍵字,檢查了下pom中依賴的jar包,發現有一項:
1 <dependency> 2 <groupId>io.netty</groupId> 3 <artifactId>netty</artifactId> 4 <version>3.5.5.Final</version> 5 </dependency> View Code然后到jboss所在的目錄?jboss-eap-6.2\modules\system\layers\base\org\jboss\netty\main 下,果然也找到了netty-3.6.6.Final-redhat-1.jar,也就是說jboss已經自帶了netty。
最后把pom.xml中的netty依賴項去掉,再部署,OK!
?
總結
以上是生活随笔為你收集整理的org.jboss.netty.internal.LoggerConfigurator.DESCRIBED is already registered 的解决办法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: category使用 objc_setA
- 下一篇: Linux下磁盘IO读写性能测试脚本