您的位置:首页 > 其它

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

2014-08-30 12:09 881 查看
今天在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包,发现有一项:

<dependency>
<groupId>io.netty</groupId>
<artifactId>netty</artifactId>
<version>3.5.5.Final</version>
</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!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐