You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the same code base using JDK 8 works as expected, but after switching to JDK 11 a NoClassDefFoundError is thrown
Caused by: java.lang.NoClassDefFoundError: javax/activation/MimeType
at org.zalando.logbook.servlet.RemoteRequest.isFormRequest(RemoteRequest.java:119)
at org.zalando.logbook.servlet.RemoteRequest.withBody(RemoteRequest.java:100)
at org.zalando.logbook.DefaultLogbook.write(DefaultLogbook.java:45)
at org.zalando.logbook.servlet.NormalStrategy.logRequestIfNecessary(NormalStrategy.java:48)
at org.zalando.logbook.servlet.NormalStrategy.doFilter(NormalStrategy.java:32)
at org.zalando.logbook.servlet.LogbookFilter.doFilter(LogbookFilter.java:39)
at org.zalando.logbook.servlet.HttpFilter.doFilter(HttpFilter.java:31)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
On the same code base using JDK 8 works as expected, but after switching to JDK 11 a NoClassDefFoundError is thrown
Please consider the application at:
https://github.com/acet/logbook_demo_spring_starter
using both JDK 8 and JDK 11
Possible Fix
Include
as a dependency in logback-servlet
Context
I use JDK 11 and so I must currently include javax.activation in my dependencies currently to work around this
The text was updated successfully, but these errors were encountered: