Skip to content

CSRFGuard server startup failure issue due to java.lang.UnsupportedClassVersionError: ch/qos/logback/classic/spi/LogbackServiceProvider #139

Answered by forgedhallpass
vinayakcc asked this question in Q&A
Discussion options

You must be logged in to vote

org.owasp.csrfguard.CsrfGuardServletContextListener
java.lang.UnsupportedClassVersionError: ch/qos/logback/classic/spi/LogbackServiceProvider has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 (unable to load class ch.qos.logback.classic.spi.LogbackServiceProvider)

The LogbackServiceProvider in versions > 1.4.x was compiled using Java 11 and you are using Java 8.

Luckily Logback is just an SLF4J 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.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@forgedhallpass
Comment options

Answer selected by forgedhallpass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants