eclipse-sparkplug / sparkplug

Sparkplug
Eclipse Public License 2.0
115 stars 39 forks source link

Compatibility with Spring boot framework #516

Open ehsan-elwan opened 9 months ago

ehsan-elwan commented 9 months ago

What do you want to know?

I have a spring boot 3.2.3 module JAVA 21 that is connected to MQTT broker using spring boot integration, I would like to use the Eclipse Tahu core library to handle the encode/decode out/incoming messages. After adding the maven dependency org.eclipse.tahu:tahu-core:1.0.8 (without actually using it in the code) the app starts but override my config and run always in trace mode for logs. And it throws errors about Tomcat library not found like so, org.apache.tomcat.jni.LibraryNotFoundError: Can't load library: /home/user/IdeaProjects/demo/bin/libtcnative-2.so ..... Removing the dependency would resolve the traces and missing library issue, but then I would really love to use this project instead of rewriting a parser.

(Reproducibility)To test this further, I started a new Spring boot project using spring initializr with only spring web starter as dependency, same result, as soon as I add org.eclipse.tahu:tahu-core:1.0.8 depnedency The app start throwing the same errors.

When running the examples in the main repo without spring boot it works just fine.

I don't know if that is a bug or not, but I would love if someone can help out with this

Is this related to a Sparkplug Listing request? If so, link the issue from https://github.com/eclipse-sparkplug/sparkplug.listings here.

No response

Version

3.0.0 (Default)

Accept EFTL Terms