NoSuchMethodError: org.jboss.logmanager.LogContext.getAttachment(...) in JBoss EAP 5.x
Issue
- We are migrating an application from JBoss AS 5.1.0 (community) to JBoss EAP 5.1.2 that packages Infinispan, and are getting the following exception during deployment. The exception is related to JBoss Logging 3.0, which is a dependency of Infinispan 5.0.1 that we use as the cache for Hibernate.
Caused by: java.lang.NoSuchMethodError: org.jboss.logmanager.LogContext.getAttachment(Ljava/lang/String;Lorg/jboss/logmanager/Logger$AttachmentKey;)Ljava/lang/Object;
at org.jboss.logging.JBossLogManagerProvider.doGetLogger(JBossLogManagerProvider.java:52)
at org.jboss.logging.JBossLogManagerProvider.getLogger(JBossLogManagerProvider.java:47)
at org.jboss.logging.Logger.getLogger(Logger.java:2164)
at org.jboss.logging.Logger.getMessageLogger(Logger.java:2263)
at org.jboss.logging.Logger.getMessageLogger(Logger.java:2215)
- We are packaging Hibernate 4.1, which depends on JBoss Logging 3.1.
java.lang.NoSuchMethodError: org.jboss.logmanager.LogContext.getAttachment(Ljava/lang/String;Lorg/jboss/logmanager/Logger$AttachmentKey;)
Environment
- JBoss Enterprise Application Platform (EAP)
- 5.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.