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
Actual behavior (the bug)
When running javalin using JPMS or Jlinked images, I get this error
Exception in thread "main" java.util.ServiceConfigurationError: org.slf4j.spi.SLF4JServiceProvider: module io.javalin does not declare `uses`
at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:593)
at java.base/java.util.ServiceLoader.checkCaller(ServiceLoader.java:579)
at java.base/java.util.ServiceLoader.<init>(ServiceLoader.java:507)
at java.base/java.util.ServiceLoader.load(ServiceLoader.java:1698)
at io.javalin@6.1.1/io.javalin.util.Util.slf4jServiceImplementationExists(Util.kt:45)
at io.javalin@6.1.1/io.javalin.util.Util.printHelpfulMessageIfLoggerIsMissing(Util.kt:53)
at io.javalin@6.1.1/io.javalin.jetty.JettyServer.start(JettyServer.kt:64)
at io.javalin@6.1.1/io.javalin.Javalin.start(Javalin.java:123)
at avaje.javalin.example@1.0.0-SNAPSHOT/com.jojo.javalin.api.JavalinAPI.main(JavalinAPI.java:15)
Actual behavior (the bug)
When running javalin using JPMS or Jlinked images, I get this error
It seems that
javalin/javalin/src/main/java/io/javalin/util/Util.kt
Lines 43 to 49 in 7da42d0
uses org.slf4j.spi.SLF4JServiceProvider
statement in the module-info appears to have been removed.Expected behavior
The application doesn't die.
To Reproduce
jlink
branchrun.sh
or therunJlinked.sh
scriptThe text was updated successfully, but these errors were encountered: