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
then quarkus does not start the application successfully and the following stacktrace is shown:
2024-03-01 10:38:59,512 INFO [org.ecl.ser.per.typ.PersistenceTypeHandlerManager] (Quarkus Main Thread) Initializing type handler manager
Exception in thread "Thread-38" java.lang.NoClassDefFoundError: javax/servlet/Filter
at spark.embeddedserver.EmbeddedServers.initialize(EmbeddedServers.java:41)
at spark.Service.lambda$init$2(Service.java:618)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.ClassNotFoundException: javax.servlet.Filter
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
at io.quarkus.bootstrap.classloading.QuarkusClassLoader.loadClass(QuarkusClassLoader.java:518)
at io.quarkus.bootstrap.classloading.QuarkusClassLoader.loadClass(QuarkusClassLoader.java:468)
... 3 more
The spark-java REST service was intended to provide the Api to standalone java apps too, that’s why it has jetty and other stuff included. There is currently no other implementation.
As Quarkus provides a great REST support you may implement the four required routes directly in your app to get rid of the sparkjava implementation.
Please see the Microstream issues #549 and #695 for additional information.
By the way, a possible Quarkus extension in the future could potentially provide these REST endpoints by default for the Quarkus DevConsole and the application itself.
Environment Details
Describe the bug
I use EclipseStore in Quarkus (in JVM-Mode) sucessfully after changing the
ClassLoaderProvider
according to https://stackoverflow.com/questions/65898882/quarkus-with-microstream-classloader-problems:However, when using the eclipse-store "rest-interface":
then quarkus does not start the application successfully and the following stacktrace is shown:
I also tried to use another spark-version as suggested in microstream-one/microstream#238:
I also tried to solve this issue by making the javax.servlet-api-dependency explicit:
But that doesn't help. Looking at the classpath I can see that javax.servlet.api exists:
To Reproduce
Use EclipseStore in Quarkus and initialize a
StorageRestService
by storage-restservice.Expected behavior
Using a StorageRestService should work.
The text was updated successfully, but these errors were encountered: