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 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.