I am using jetty 9 to launch my app, and it do reflection on libs to find extensions, providers, and so on...
java.lang.RuntimeException: Error scanning entry META-INF/versions/9/org/apache/logging/log4j/util/ProcessIdUtil.class from jar file:/home/damien/projets/myapp/server/build/serverBaseDir_jetty9/webapps-exploded/localsite-api-server/webapp/WEB-INF/lib/log4j-api-2.9.1.jar
at org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:913) ~[jetty-annotations-9.2.22.v20170606.jar:9.2.22.v20170606]
... 6 common frames omitted
Caused by: java.lang.IllegalArgumentException: null
at org.objectweb.asm.ClassReader.<init>(Unknown Source) ~[asm-5.0.3.jar:5.0.3]
at org.objectweb.asm.ClassReader.<init>(Unknown Source) ~[asm-5.0.3.jar:5.0.3]
at org.objectweb.asm.ClassReader.<init>(Unknown Source) ~[asm-5.0.3.jar:5.0.3]
at org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:973) ~[jetty-annotations-9.2.22.v20170606.jar:9.2.22.v20170606]
at org.eclipse.jetty.annotations.AnnotationParser.parseJarEntry(AnnotationParser.java:956) ~[jetty-annotations-9.2.22.v20170606.jar:9.2.22.v20170606]
at org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:909) ~[jetty-annotations-9.2.22.v20170606.jar:9.2.22.v20170606]
... 6 common frames omitted
By replacing log4j 2 with a slf4j bridge, this would fix my problem. Is there any other solution to fix my problem ?
Thanks.