[ https://issues.apache.org/jira/browse/STORM-1386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15612283#comment-15612283 ]
Sébastien Volle edited comment on STORM-1386 at 10/28/16 12:18 PM: ------------------------------------------------------------------- I have a similar problem. I'm stuck with log4j-core 2.4 in my application and I get illegal access errors due to API changes between 2.1 and 2.4 {code} Exception in thread "main" 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 {code} Would it be possible to shade logging dependencies and allow users to use whatever version of log4j they see fit, or does shading logging pose a particular problem? Thanks. was (Author: svolle): I have a similar problem. I'm stuck with log4j-core 2.4 in my application and I get illegal access errors due to API changes between 2.1 and 2.4 {code} Exception in thread "main" 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 {code} Would it be possible to shade logging dependencies and allow users to use whatever version of log4j they see fit, or does logging pose a particular problem? Thanks. > Problem using a newer version of log4j-core > ------------------------------------------- > > Key: STORM-1386 > URL: https://issues.apache.org/jira/browse/STORM-1386 > Project: Apache Storm > Issue Type: Question > Components: storm-core > Affects Versions: 0.10.0 > Environment: Ubuntu 14.04, Ambari 2.1.2 with HDP-2.3.2.0-2950 > Reporter: Vassilis Sotiridis > Priority: Minor > > Storm 0.10.0 comes with log4j-core 2.1 and I can't find any way to override > it in my app. I need 2.4.x+ in order to use the kafka appender. I have even > tried to relocate the org.apache.logging.log4j in my shade configuration but > even then I'm getting errors like this : > ERROR StatusLogger Log4j2 could not find a logging implementation. Please add > log4j-core to the classpath. Using SimpleLogger to log to the console... > Thanks in advance. -- This message was sent by Atlassian JIRA (v6.3.4#6332)