Hi,
We recently added nlog4j-1.2.14 as the logging mechanism for Apache
Directory Server.
I've been developing another library, called Atlassian User, which
includes ApacheDS, and all of its dependencies. I have recently begun to
integrate Atlassian User with another application, which uses log4j-1.2.8 .
When working on the integration within IDEA I encounter
NoSuchMethodError(s) on simple logging statements which *only* use a
String as an argument to the logger (e.g. log.debug("example message" +
exception.getMessage()):
java.lang.NoSuchMethodError:
org.apache.log4j.Logger.debug(Ljava/lang/String;)V
I've looked at the source of nlog4j and log4j and I can see the slight
difference in Category - nlog4j specifies a String, instead of an
object, for methods such as debug(..), info(..), etc..
I've also written a quick test application which uses two classes - one
dependent on log4j and one dependent on nlog4j. A runtime
IncompatibleClassChangeError occurs:
Exception in thread "main" java.lang.IncompatibleClassChangeError
Can you please advise me as to how to overcome this problem? If nlog4j
cannot work alongside log4j libraries then many pre-existing
applications will not be able to use ApacheDS.
Cheers,
Nick
--
ATLASSIAN - http://www.atlassian.com/
Confluence - the enterprise wiki - tried it yet?
http://www.atlassian.com/confluence/
--
_______________________________________________
nlog4j-dev mailing list
[email protected]
http://slf4j.org/mailman/listinfo/nlog4j-dev