[ https://issues.apache.org/jira/browse/LOG4J2-662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14039746#comment-14039746 ]
Remko Popma commented on LOG4J2-662: ------------------------------------ The trace output shows a few interesting points: First, these three lines of log output are coming from log4j-1.2, not log4j2... {code} ERROR [stderr] [thread] log4j:WARN no appender could be found for logger ... ERROR [stderr] [thread] log4j:WARN Please initialize the log4j system properly ERROR [stderr] [thread] log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig ... {code} This means that some code that is being executed is using the log4j-1.2 API. You may be able to resolve this by simply adding the log4j-1.2-api-2.0.jar to the classpath. Then the lines below that {code} ERROR [stderr] [thread] ERROR StatusLogger Could not search jar file '/path/to/something.war/WEB-INF/lib/log4j-core-2.0-rc1.jar/org/apache/logging/log4j/core/' for classes matching criteria: annotated with @Plugin file not found ... ERROR [stderr] [thread] ERROR StatusLogger Could not search jar file '/path/to/something.war/WEB-INF/lib/log4j-core-2.0-rc1.jar/org/apache/logging/log4j/core/' for classes matching criteria: annotated with @Plugin is assignable to LogEventPatternConverter file not found ... {code} These status log statements _are_ coming from log4j2, but there seems to be something wrong. Log4j is trying to open a FileInputStream to a File with path '/path/to/something.war/WEB-INF/lib/log4j-core-2.0-rc1.jar/org/apache/logging/log4j/core/', but gets a FileNotFoundException. What I don't understand is why the path became the way it is instead of just '/path/to/something.war/WEB-INF/lib/log4j-core-2.0-rc1.jar'. Is it possible that the log4j2 jar files have been unzipped into the something.war/WEB-INF/lib folder? > AsyncLogger Missing File Location and Line > ------------------------------------------ > > Key: LOG4J2-662 > URL: https://issues.apache.org/jira/browse/LOG4J2-662 > Project: Log4j 2 > Issue Type: Bug > Components: Configurators > Affects Versions: 2.0-rc1 > Environment: CentOS release 6.5 (Final) > Memory 16GB > AMD Phenom(tm) II X6 1090T Processor > JBoss 7.1.0-cr1 > Reporter: Bobby > Labels: async, file > Attachments: log4j2-notshowing-file-location.png, log4j2-trace > (2).png, log4j2.xml > > > Using attached configuration file, i wasn't able to print filename and file > line in log. -- This message was sent by Atlassian JIRA (v6.2#6252) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org