This content has been marked as final.
Show 1 reply
-
1. Re: IllegalAccessError when trying to implement custom log4j
tomstrummer Nov 6, 2008 2:59 PM (in response to mike.kushner)-- Bump
I'm seeing this same problem; albeit for a slightly different reason. I'm using SLF4J-log4j, which seems like it's attempting to set the priority. Here's the relevant stacktrace bits:java.lang.IllegalAccessError: tried to access field org.apache.log4j.Priority.level from class org.apache.log4j.Hierarchy at org.apache.log4j.Hierarchy.setThreshold(Hierarchy.java:180) at org.apache.log4j.Hierarchy.<init>(Hierarchy.java:91) at org.apache.log4j.LogManager.<clinit>(LogManager.java:78) at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:178)
Thanks in advance.