Getting "Caused by: java.lang.NoSuchMethodError: org.jboss.logging.Logger.getLoggerPlugin()Lorg/jboss/logging/LoggerPlugin" in EAP 6 while calling SOAP service
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Issue
- Users are trying to remotely call service of SOA-P 5.3 server form JBoss EAP 6.1. For this they are finding error of conflicting two jars jboss-logging-spi and jboss-logging-3.1.2.GA-redhat-1.
Caused by: java.lang.NoSuchMethodError: org.jboss.logging.Logger.getLoggerPlugin()Lorg/jboss/logging/LoggerPlugin;
at org.jboss.aop.util.logging.AOPLogger.<init>(AOPLogger.java:63)
at org.jboss.aop.util.logging.AOPLogger.getLogger(AOPLogger.java:44)
at org.jboss.aop.AspectManager.<clinit>(AspectManager.java:109)
Resolution
If service invoker conflicts with the logging framework then exclude the JBoss logging module from being loaded as following with the help of jboss-deployment-structure.xml:
jboss-deployment-structure.xml
<jboss-deployment-structure>
<deployment>
<!-- Exclusions allow you to prevent the server from automatically adding
some dependencies -->
<exclusions>
<module name="org.jboss.logging" />
</exclusions>
</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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
