[
https://issues.apache.org/jira/browse/LOG4J2-2690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16930086#comment-16930086
]
Tobias Diez commented on LOG4J2-2690:
-------------------------------------
The gradle configuration seems to be correct, but no files are generated by the
annotation processor. The compiler arguments look as follows:
{noformat}
-source 11 -target 11 -d D:\Programming\Projects\Jabref\build\classes\java\main
-encoding UTF-8 -g -sourcepath -processorpath
C:\Users\Tobi\.gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-core\3.0.0-SNAPSHOT\183ef7187016871a22aff897bd2548a57f617bb9\log4j-core-3.0.0-SNAPSHOT.jar;C:\Users\Tobi\.gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-plugins\3.0.0-SNAPSHOT\54bd9f6debcabe6d28f74e9cb4f2e52b4ff2c3ff\log4j-plugins-3.0.0-SNAPSHOT.jar;C:\Users\Tobi\.gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-api\3.0.0-SNAPSHOT\c24ff6a058a6a8917a227bc9f1a846a54fda4466\log4j-api-3.0.0-SNAPSHOT.jar
-s
D:\Programming\Projects\Jabref\build\generated\sources\annotationProcessor\java\main
-XDuseUnsharedTable=true -classpath -proc:none -Xlint:none --module-path
bunchOfJarFiles ...
{noformat}
Maybe it should be `--processor-module-path` ? How can I invoke the argument
processor directly from the command line to test around?
> Custom appenders no longer found with Java 11
> ---------------------------------------------
>
> Key: LOG4J2-2690
> URL: https://issues.apache.org/jira/browse/LOG4J2-2690
> Project: Log4j 2
> Issue Type: Bug
> Components: Appenders
> Affects Versions: 2.12.1
> Environment: Java 11.2
> {noformat}
> compile group: 'org.slf4j', name: 'slf4j-api', version: '1.8.0-beta4'
> compile 'org.apache.logging.log4j:log4j-slf4j18-impl:2.12.1'
> compile 'org.apache.logging.log4j:log4j-jcl:2.12.1'
> compile 'org.apache.logging.log4j:log4j-api:2.12.1'
> compile 'org.apache.logging.log4j:log4j-core:2.12.1'{noformat}
> Reporter: Tobias Diez
> Priority: Major
>
> After upgrading to Java 11, the custom appenders are no longer found. The
> following errors are shown when running the app:
> {noformat}
> 2019-09-10 21:44:54,195 main ERROR Error processing element GuiAppender
> ([Appenders: null]): CLASS_NOT_FOUND
> 2019-09-10 21:44:54,240 main ERROR Appenders contains an invalid element or
> attribute "OurApplicationInsightsAppender"
> 2019-09-10 21:44:54,261 main ERROR Unable to locate appender
> "applicationInsightsAppender" for logger config "root"
> 2019-09-10 21:44:54,262 main ERROR Unable to locate appender "GuiLogger" for
> logger config "org.jabref"
> 2019-09-10 21:44:54,262 main ERROR Unable to locate appender "GuiLogger" for
> logger config "org.apache.pdfbox"{noformat}
> The log4j config file can be found here:
> https://github.com/JabRef/jabref/blob/master/src/main/resources/log4j2.xml
> and the appender here:
> https://github.com/JabRef/jabref/blob/master/src/main/java/org/jabref/gui/logging/GuiAppender.java
> (They were working with Java 8, so it shouldn't be a configuration problem.)
--
This message was sent by Atlassian Jira
(v8.3.2#803003)