Closed JustinVoitel closed 3 years ago
In this case, the program runs in the tomcat application server. You need to pass an instance of the tomcat class loader to Microstream.
so instead of:
sm = EmbeddedStorage.start(root, Paths.get("/etc/microstream/testapp"));
sm = EmbeddedStorage.Foundation(Paths.get("/etc/microstream/testapp"))
.onConnectionFoundation(cf -> cf.setClassLoaderProvider(
ClassLoaderProvider.New(Thread.currentThread().getContextClassLoader())
))
.start(root);
https://manual.docs.microstream.one/data-store/configuration
Thanks for the fast response 👍It is now working as expected!
Iam trying to integrate Microstream into a vaadin application but after Instantiating the database and running it again I constantly get this error printed: My DataRoot object looks like this:
But I think this is not the troublemaker. Is it maybe, because the underrlying devserver runs with springboot and it cannot cast back the stored root object ?
Steps to recreate
in AboutView.java add:
Maybe iam doing something wrong or there is still something missing, but help would be appreciated :)
Running on Ubuntu 20.04 using openjdk version "11.0.9.1" 2020-11-04