[jboss-dev] obtain server connection vs jboss-logging

Aleksandar Kostadinov akostadi at redhat.com
Tue Oct 14 09:21:08 EDT 2008



> Adrian Brock wrote, On 10/08/2008 02:51 PM (EEST):
>> FIXES:
>>
>> * Remove jboss-logging-log4j.jar from the classpath
>> which will then use the "NullLogger"

I removed that but still see the same issue. I eventually removed the 
jar itself and excluded jbossall-client.jar. To check I'm really not 
having it somewhere

Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());
Thread.currentThread().getContextClassLoader().loadClass("org.jboss.logging.log4j.Log4jLoggerPlugin");
It throws
java.lang.ClassNotFoundException: org.jboss.logging.log4j.Log4jLoggerPlugin


My only guess is that it is searching for the jboss-logging-log4j.jar in 
some predefined locations and happens to find and load it under the 
hood. Anyways I filed https://jira.jboss.org/jira/browse/JBLOGGING-7

Any help to workaround that issue will be appreciated!



More information about the jboss-development mailing list