1) You can make the whole phoenix to log over log4j and this will make
your "log" calls from the mailet to be logged by log4j too.
http://wiki.apache.org/james/log4j
2) Are you using James 2.2.0 or James 2.3.0? The classloaders have
changed between the 2 versions.
Stefano
Thomas Dudziak wrote:
Hi folks,
when I use Log4j in a mailet, then I get this error:
java.lang.NoSuchFieldError: level
at org.apache.log4j.spi.RootLogger.setLevel(RootLogger.java:65)
at org.apache.log4j.spi.RootLogger.<init>(RootLogger.java:44)
at org.apache.log4j.LogManager.<clinit>(LogManager.java:78)
at my.mailet.TestMailet.<clinit>(TestMailet.java:16)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
...
Log4j is version 1.2.13 and it's jar is present. And AFAICT neither
James nor Phoenix does use log4j (another older log4j jar might
explain this error) ?
any idea ?
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]