On 7/4/22 02:05, Paul Ryder wrote:
Can anyone give me pointers to updating the jetty version on Solr 8.1.1? Is it
just a case of overwriting the jetty jars in dist?
If you upgrade all the jetty jars in all locations under the program
server directory, that will update Jetty.
But I need to caution you ... that upgrade may not actually work. If
Solr's code utilizes anything that exists in the older Jetty version
that is not present or has changed in the newer version, Solr may fail
to function correctly. In theory because the jetty update would be a
point release within version 9.4, there should not be any changes like
that ... but that cannot be guaranteed by this group.
Here is a listing of the jetty jars in the server directory of a
pre-release version of 8.11.2 that I compiled. This excludes dist,
because those are not normally used by the server. All of these jars
would need to be updated:
elyograg@bilbo:~$ sudo find /opt/solr-8.11.2-SNAPSHOT/server -name
"jetty*.jar"
/opt/solr-8.11.2-SNAPSHOT/server/lib/jetty-security-9.4.44.v20210927.jar
/opt/solr-8.11.2-SNAPSHOT/server/lib/jetty-continuation-9.4.44.v20210927.jar
/opt/solr-8.11.2-SNAPSHOT/server/lib/jetty-servlet-9.4.44.v20210927.jar
/opt/solr-8.11.2-SNAPSHOT/server/lib/jetty-util-9.4.44.v20210927.jar
/opt/solr-8.11.2-SNAPSHOT/server/lib/jetty-alpn-server-9.4.44.v20210927.jar
/opt/solr-8.11.2-SNAPSHOT/server/lib/jetty-deploy-9.4.44.v20210927.jar
/opt/solr-8.11.2-SNAPSHOT/server/lib/jetty-http-9.4.44.v20210927.jar
/opt/solr-8.11.2-SNAPSHOT/server/lib/jetty-rewrite-9.4.44.v20210927.jar
/opt/solr-8.11.2-SNAPSHOT/server/lib/jetty-jmx-9.4.44.v20210927.jar
/opt/solr-8.11.2-SNAPSHOT/server/lib/jetty-xml-9.4.44.v20210927.jar
/opt/solr-8.11.2-SNAPSHOT/server/lib/jetty-webapp-9.4.44.v20210927.jar
/opt/solr-8.11.2-SNAPSHOT/server/lib/jetty-io-9.4.44.v20210927.jar
/opt/solr-8.11.2-SNAPSHOT/server/lib/jetty-alpn-java-server-9.4.44.v20210927.jar
/opt/solr-8.11.2-SNAPSHOT/server/lib/jetty-server-9.4.44.v20210927.jar
/opt/solr-8.11.2-SNAPSHOT/server/lib/jetty-servlets-9.4.44.v20210927.jar
/opt/solr-8.11.2-SNAPSHOT/server/solr-webapp/webapp/WEB-INF/lib/jetty-util-9.4.44.v20210927.jar
/opt/solr-8.11.2-SNAPSHOT/server/solr-webapp/webapp/WEB-INF/lib/jetty-client-9.4.44.v20210927.jar
/opt/solr-8.11.2-SNAPSHOT/server/solr-webapp/webapp/WEB-INF/lib/jetty-alpn-java-client-9.4.44.v20210927.jar
/opt/solr-8.11.2-SNAPSHOT/server/solr-webapp/webapp/WEB-INF/lib/jetty-alpn-client-9.4.44.v20210927.jar
/opt/solr-8.11.2-SNAPSHOT/server/solr-webapp/webapp/WEB-INF/lib/jetty-http-9.4.44.v20210927.jar
/opt/solr-8.11.2-SNAPSHOT/server/solr-webapp/webapp/WEB-INF/lib/jetty-io-9.4.44.v20210927.jar
A question for my fellow devs: I think it might be a mistake to include
jetty-util, jetty-http, and jetty-io in the webapp. They are already
included in server/lib, and weird classloader issues often result from
including the same jar more than once. Thoughts?
Thanks,
Shawn