On Thu, Oct 20, 2016 at 12:04 PM, Jeremy Heiler <jeremyhei...@gmail.com> wrote:
> On Thu, Oct 20, 2016 at 1:26 PM, Jeremy Heiler <jeremyhei...@gmail.com> > wrote: > > > > On Thu, Oct 20, 2016 at 12:58 PM, Gary Gregory <garydgreg...@gmail.com> > wrote: > > > > > > From the stack trace, as you mention, this is the error: > > > > > > Caused by: java.lang.IllegalAccessError: tried to access method > > > > org.apache.logging.log4j.core.lookup.MapLookup.newMap(I) > Ljava/util/HashMap; > > > from class org.apache.logging.log4j.core.lookup.MainMapLookup > > > > > > These two classes should come from the same package in the same jar. > > > Log4jServletContainerInitializer is in a different jar, which should > not > > > matter. > > > > > > Hm... how can this error happen? Could each class be loaded from > different > > > versions of the core jar? How is that even possible? Or did the web > > > container explode the jars somehow? ... > > > > As I said, my project only contains the one version of log4j. (Unless > Tomcat is sneaking something in that I'm not seeing.) > > Forgive me, for I have sinned. I never did a 'clean' after updating the > version in my POM. Apparently Inteillj's "rebuild project" feature does not > do that. So, the exploded WAR file in target/ had both versions of log4j. > > Sorry for the noise... > All clear! ;-) Gary -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org Java Persistence with Hibernate, Second Edition <https://www.amazon.com/gp/product/1617290459/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1617290459&linkCode=as2&tag=garygregory-20&linkId=cadb800f39946ec62ea2b1af9fe6a2b8> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1617290459> JUnit in Action, Second Edition <https://www.amazon.com/gp/product/1935182021/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182021&linkCode=as2&tag=garygregory-20&linkId=31ecd1f6b6d1eaf8886ac902a24de418%22> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182021> Spring Batch in Action <https://www.amazon.com/gp/product/1935182951/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182951&linkCode=%7B%7BlinkCode%7D%7D&tag=garygregory-20&linkId=%7B%7Blink_id%7D%7D%22%3ESpring+Batch+in+Action> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182951> Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory