This is an automated email from the ASF dual-hosted git repository.

dsmiley pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/main by this push:
     new 4f99d7672a7 SOLR-17069: update solr-jetty-context.xml (#3760)
4f99d7672a7 is described below

commit 4f99d7672a7ce7d85cec96eaf1d750a56d10d12c
Author: David Smiley <[email protected]>
AuthorDate: Thu Oct 16 16:30:59 2025 -0400

    SOLR-17069: update solr-jetty-context.xml (#3760)
    
    To replace deprecated config/API with newer.
    Addresses a warning log message about this problem.
---
 solr/server/contexts/solr-jetty-context.xml | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/solr/server/contexts/solr-jetty-context.xml 
b/solr/server/contexts/solr-jetty-context.xml
index bd281afaacf..b6ac292c226 100644
--- a/solr/server/contexts/solr-jetty-context.xml
+++ b/solr/server/contexts/solr-jetty-context.xml
@@ -16,17 +16,14 @@
   Therefore, if we want to deduplicate these Jetty jars, we need to remove the 
class packages that Solr uses from the
   Jetty "server" class matcher, using the "-" prefix in from of the 
sub-package name.
 
-  The default server class matcher can be found here:
-  
https://github.com/eclipse/jetty.project/blob/jetty-10.0.12/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebAppContext.java#L178
-
   Setting parentLoaderPriority=true is also necessary in order to be able to 
use these classes from the server classloader.
 
-  Documentation for this can be found here: 
https://www.eclipse.org/jetty/documentation/jetty-10/old_docs/index.html#jetty-classloading
+  Documentation for this can be found here: 
https://jetty.org/docs/jetty/12.1/programming-guide/server/http.html#handler-use-webapp-context-class-loading
   -->
   <Set name="parentLoaderPriority">true</Set>
-  <Call name="addServerClassMatcher">
+  <Call name="addHiddenClassMatcher">
     <Arg>
-      <New id="removeServerClasses" 
class="org.eclipse.jetty.ee10.webapp.ClassMatcher">
+      <New id="removeServerClasses" 
class="org.eclipse.jetty.util.ClassMatcher">
         <Arg>
           <Array type="java.lang.String">
             <Item>-org.eclipse.jetty.</Item>

Reply via email to