Good morning Erel,
I'm using jServer for http connections serving content. I'm using JakartaWsLibrary for the communications.. connect, auth, get media records, server info etc.. I like Jakarta for this because of the events it supports (_onOpen, onMessage, onClose, _on Error and _onException).
jServer is working fine as media is sent to the device but the jakarta websocket generates the error upon calling the start method after packaging. I found that the error
java.lang.RuntimeException: Cannot load platform configurator may be due to a service injection issue. I found some info on the subject here
https://github.com/jakartaee/websocket/issues/469
That post makes a suggestion on how to fix the issue however I can only look into the libraries. I cannot make changes to them.
The jakarta packages jServer uses from directory b4j\libraries\jserver package websocket-jakarta-server-11.0.9 (found in META-INF\maven\org.eclipse.jetty.websocket\websocket-jakarta-server\pom.xml) shows:
<instructions>
<Bundle-Description>jakarta.websocket.server Implementation</Bundle-Description>
<Export-Package>
org.eclipse.jetty.websocket.jakarta.server.*;version="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"
</Export-Package>
<Require-Capability>osgi.extender; filter:="(osgi.extender=osgi.serviceloader.registrar)";resolution:=optional</Require-Capability>
<Provide-Capability>
osgi.serviceloader;osgi.serviceloader=org.eclipse.jetty.webapp.Configuration,osgi.serviceloader;osgi.serviceloader=jakarta.servlet.ServletContainerInitializer,osgi.serviceloader;osgi.serviceloader=jakarta.websocket.server.ServerEndpointConfig$Configurator
</Provide-Capability>
</instructions>
Which is probably why jServer works. The JakartaWsLibrary doesn't have this pom file. It just has a few classes.
I'm still trying to grasp the fundamental usage of
options --add-exports, --add-opens, --add-modules, --add-reads, and --patch-module.
And am hoping that correctly implementing these will correct the issue.
Or maybe I'm way off base.
