java.lang.ClassNotFoundException: org.jboss.netty.container.microcontainer.NettyLoggerConfigurator in JBoss EAP / Fuse

Solution Unverified - Updated -

Environment

Red Hat JBoss Fuse Service Works 6.x

Issue

  • We are getting this error in our application:
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.pojo."org.jboss.netty.internal.LoggerConfigurator".DESCRIBED: org.jboss.msc.service.StartException in service jboss.pojo."org.jboss.netty.internal.LoggerConfigurator".DESCRIBED: java.lang.ClassNotFoundException: org.jboss.netty.container.microcontainer.NettyLoggerConfigurator from [Module "deployment.example-service.ear:main" from Service Module Loader]
...
Caused by: java.lang.ClassNotFoundException: org.jboss.netty.container.microcontainer.NettyLoggerConfigurator from [Module "deployment.example-service.ear:main" from Service Module Loader]

Resolution

Declare a JBoss Modules dependency on org.jboss.netty in jboss-deployment-structure.xml such as:

<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
  <deployment>
    <dependencies>
      <module name="org.jboss.netty" export="true"/>
    </dependencies>
  </deployment>
</jboss-deployment-structure>

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.