ClassNotFoundException is thrown when deploying an application that uses Jackson annotations to JBoss EAP 6.0

Solution Verified - Updated -

Issue

Our application uses Jackson core ASL annotations and in development mode we added the following dependency:

<dependency>
    <groupId>org.codehaus.jackson</groupId>
    <artifactId>jackson-core-asl</artifactId>
    <version>1.9.2-redhat-1</version>
    <scope>provided</scope>
</dependency>

When we deploy this application to JBoss EAP 6.x, however, we have a ClassNotFoundError as below:

Caused by: java.lang.ClassNotFoundException: org.codehaus.jackson.JsonGenerationException from [Module "deployment.your-deployment.jar:main" from Service Module Loader]
    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

How can we solve this?

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 6.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.