jServer-11.0.26
1. Copied the jar/xml from jServer 4.03, and renamed to jServer-11.0.26.jar & jServer-11.0.26.xml.
2. Downloaded Jetty 11.0.26, created a folder called jserver-11.0.26 in the B4J internal libraries folder and copied the required files from jetty 11.0.26 into the jserver-11.0.26 folder.
[NOTE: the downloaded Jetty 11.0.26 file contained many more jar files than in the existing jserver folders; I copied across only the new equivalents of the jar files that existed in the original jserver folder - I presume the others are not needed (perhaps someone can confirm this?)]
3. Amended the jServer-11.0.26.xml file sections <version> to 11.26, & each <dependsOn> to use the jServer 11.0.26 files in a folder named
jserver-11.0.26.
4. Removed the module info (module-info.class) from these jars:
jetty-io-11.0.26.jar,
jetty-alpn-java-server-11.0.26.jar,
http2-server-11.0.26.jar,
http2-hpack-11.0.26.jar,
http2-common-11.0.26.jar,
jetty-alpn-server-11.0.26.jar.
5. Added the IncludedModules as described above
After this, my server app runs OK through the IDE and building a standalone package goes through without any errors too.
jWebSocketClient-11.0.26
1. Copied the existing library files (jWebSocketClient.jar & jWebSocketClient.xml) and renamed them with '-11.0.26' appended to the file name -
jWebSocketClient-11.0.26.jar & jWebSocketClient-11.0.26.xml).
2. Ammended the jWebSocketClient-11.0.26.xml file sections <version> to 11.26, & each <dependsOn> to use the jServer 11.0.26 files in a folder named
jserver-11.0.26.
3. In app main module changed the existing dependency to
#AdditionalJar: jserver-11.0.26/jetty-webapp-11.0.26.jar
and added the IncludedModules declaration described in
@Erel's post linked above.
At this point the app ran OK but building a stand-alone package generated an error:
Exception in thread "main" java.lang.module.FindException: Module org.slf4j not found, required by org.eclipse.jetty.util
4. Based on
@teddybear's post above, I removed the module info (module-info.class) from jetty-util-11.0.26.jar.
A new error:
Exception in thread "main" java.lang.module.FindException: Module org.slf4j not found, required by org.eclipse.jetty.websocket.core.common
5. Removed the module info (module-info.class) from websocket-core-common-11.0.26.jar, then ....
module-info.java:7: error: package javax.imageio.spi is not visible
uses javax.imageio.spi.ImageReaderSpi;
^
(package javax.imageio.spi is declared in module java.desktop, but module b4j does not read it)
1 error
6. So I added java.desktop to the #PackagerProperty: IncludedModules declaration.
And now the app seems to be running and packaging successfully.