The signature of org.apache.log4j.helpers.Loader.getResource() has changed between 1.1 and 1.2. In 1.1, it is: public static URL getResource(String resource, Class clazz) In 1.2, it changed to: public static URL getResource(String resource) We are using 3rd party software that relies on the first method signature, so we see a NoSuchMethodError when using 1.2. We would like to updated to 1.2 to make use of the MDC class. Can a backwards compatibility method be added to this class?
Compatibility method added to both v1_2-branch and HEAD. Excellent timing since a 1.2 maintenance release (1.2.12) is imminent. Please report any other issues as quickly as possible since no additional work on the v1_2-branch is currently planned after the release. To check out the v1_2-branch source cvs -d:pserver:anoncvs@cvs.apache.org:/home/cvspublic co -r v1_2-branch logging-log4j The HEAD as many known compatibility issues with 1.2 which we are working to resolve, so it is highly unlikely that it could act as a drop-in for log4j 1.1 at this time.
If there is a release candidate available we will test it for any other compat issues?
I will be building a 1.2.12rc1 build later tonight. Watch the log4j-dev email list for details.
1.2.12rc1 has fixed the problem for us - thanks very much!