码迷,mamicode.com
首页 > Web开发 > 详细

"org.jboss.netty.internal.LoggerConfigurator".DESCRIBED is already registered 的解决办法

时间:2014-08-30 12:36:59      阅读:406      评论:0      收藏:0      [点我收藏+]

标签:des   style   blog   http   color   os   io   strong   ar   

今天在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包,发现有一项:

bubuko.com,布布扣
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 的解决办法

标签:des   style   blog   http   color   os   io   strong   ar   

原文地址:http://www.cnblogs.com/yjmyzz/p/3946277.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!