B4J Question jServer 4 - Keeping Jetty Up to Date

tchart

Well-Known Member
Licensed User
Longtime User
Erel,

Given jServer 4 is not a fat JAR are there any implications of updating the versions of the Jetty libraries and modifying the XML?

e.g. can we swap out version 11.0.9 for 11.0.20?

Reason being there are several CVEs that relate to Jetty 11 up to 11.0.15

Alternatively, can the jServer 4 source be added to your GitHub (I didnt see it there) so I can build it myself?

Thanks
 

tchart

Well-Known Member
Licensed User
Longtime User
Thanks Erel. I have tested 11.0.20 and it works!

I copied the jar/xml, renamed to jServer-11.0.20, created a folder called jserver-11.0.20 and updated the XML as required.

I downloaded Jetty 11.0.20 (the zip version) from the project website. Unzipped and copied the libraries across. NOTE the libraries are split across multiple directories in the zip file but need to be placed in the single "jserver-11.0.20" folder

1715886986970.png


1715886960064.png


XML:
<version>11.20</version>
    <dependsOn>c3p0-0.9.5.2</dependsOn>
    <dependsOn>c3p0-oracle-thin-extras-0.9.5.2</dependsOn>
    <dependsOn>mchange-commons-java-0.2.11</dependsOn>
    <dependsOn>json</dependsOn>
    <dependsOn>jserver-11.0.20/http2-common-11.0.20.jar</dependsOn>
    <dependsOn>jserver-11.0.20/http2-server-11.0.20.jar</dependsOn>
    <dependsOn>jserver-11.0.20/jetty-alpn-java-server-11.0.20.jar</dependsOn>
    <dependsOn>jserver-11.0.20/jetty-alpn-server-11.0.20.jar</dependsOn>
    <dependsOn>jserver-11.0.20/jetty-io-11.0.20.jar</dependsOn>
    <dependsOn>jserver-11.0.20/jetty-jakarta-servlet-api-5.0.2.jar</dependsOn>
    <dependsOn>jserver-11.0.20/jetty-jakarta-websocket-api-2.0.0.jar</dependsOn>
    <dependsOn>jserver-11.0.20/jetty-server-11.0.20.jar</dependsOn>
    <dependsOn>jserver-11.0.20/jetty-servlet-11.0.20.jar</dependsOn>
    <dependsOn>jserver-11.0.20/jetty-servlets-11.0.20.jar</dependsOn>
    <dependsOn>jserver-11.0.20/jetty-slf4j-impl-11.0.20.jar</dependsOn>
    <dependsOn>jserver-11.0.20/jetty-util-11.0.20.jar</dependsOn>
    <dependsOn>jserver-11.0.20/slf4j-api-2.0.9.jar</dependsOn>
    <dependsOn>jserver-11.0.20/websocket-core-common-11.0.20.jar</dependsOn>
    <dependsOn>jserver-11.0.20/websocket-core-server-11.0.20.jar</dependsOn>
    <dependsOn>jserver-11.0.20/websocket-jakarta-client-11.0.20.jar</dependsOn>
    <dependsOn>jserver-11.0.20/websocket-jakarta-common-11.0.20.jar</dependsOn>
    <dependsOn>jserver-11.0.20/websocket-jakarta-server-11.0.20.jar</dependsOn>
    <dependsOn>jserver-11.0.20/websocket-jetty-api-11.0.20.jar</dependsOn>
    <dependsOn>jserver-11.0.20/websocket-jetty-common-11.0.20.jar</dependsOn>
    <dependsOn>jserver-11.0.20/websocket-jetty-server-11.0.20.jar</dependsOn>
    <dependsOn>jserver-11.0.20/websocket-servlet-11.0.20.jar</dependsOn>
    <dependsOn>jserver-11.0.20/jetty-http-11.0.20.jar</dependsOn>
    <dependsOn>jserver-11.0.20/jetty-security-11.0.20.jar</dependsOn>
    <dependsOn>jserver-11.0.20/http2-hpack-11.0.20.jar</dependsOn>
    <dependsOn>jserver-11.0.20/jetty-webapp-11.0.20.jar</dependsOn>
 
Upvote 0

tchart

Well-Known Member
Licensed User
Longtime User
Upvote 0
Top