NoSuchMethodError when using JDG HotRod client

Solution Verified - Updated -

Issue

  • There are some problems with finding the correct JBoss logging jars in the classpath

    java.lang.NoSuchMethodError: org.jboss.logging.Logger.getMessageLogger(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
        at org.infinispan.client.hotrod.logging.LogFactory.getLog(LogFactory.java:37)
        at org.infinispan.client.hotrod.RemoteCacheManager.<clinit>(RemoteCacheManager.java:154)
    
    or
    
    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)
    (snip)
        at org.infinispan.client.hotrod.logging.LogFactory.getLog(LogFactory.java:37)
        at org.infinispan.client.hotrod.RemoteCacheManager.<clinit>(RemoteCacheManager.java:154)
    

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 5
  • JBoss SOA Platform (SOA-P)
    • 5
  • JBoss Data Grid (JDG) 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content