CSRFGuard server startup failure issue due to java.lang.UnsupportedClassVersionError: ch/qos/logback/classic/spi/LogbackServiceProvider #139
-
Hi, `C:...\Projects\Others\OWASP\www-project-csrfguard\master\www-project-csrfguard>mvn -Pdeploy-jsp-webapp -pl csrfguard-test/csrfguard-test-jsp tomcat7:run Oct 07, 2022 12:28:40 PM org.apache.catalina.startup.ContextConfig processAnnotationsJar Oct 07, 2022 12:28:40 PM org.apache.catalina.startup.ContextConfig processAnnotationsJar Oct 07, 2022 12:28:40 PM org.apache.catalina.core.StandardContext listenerStart Oct 07, 2022 12:28:40 PM org.apache.catalina.core.StandardContext startInternal |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
When application is ran using the other command `C:...\Projects\Others\OWASP\www-project-csrfguard\master\www-project-csrfguard>mvn pre-integration-test -Pdeploy-jsp-webapp -pl csrfguard-test/csrfguard-test-jsp Oct 07, 2022 12:40:28 PM org.apache.catalina.startup.ContextConfig processAnnotationsJar Oct 07, 2022 12:40:28 PM org.apache.catalina.startup.ContextConfig processAnnotationsJar Oct 07, 2022 12:40:28 PM org.apache.catalina.core.StandardContext listenerStart Oct 07, 2022 12:40:28 PM org.apache.catalina.core.StandardContext startInternal |
Beta Was this translation helpful? Give feedback.
-
The Luckily |
Beta Was this translation helpful? Give feedback.
The
LogbackServiceProvider
in versions >1.4.x
was compiled using Java 11 and you are using Java 8.Luckily
Logback
is just anSLF4J
implementation and it is only added as a test dependency. You can either try adding an older version of it (e.g.1.3.x
) or upgrade your Java version.