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

remm pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new ef44b46e30 Fix ordering issue creating the classpath
ef44b46e30 is described below

commit ef44b46e305d238bba71cd3fd53f0289f23e52a4
Author: remm <[email protected]>
AuthorDate: Thu Nov 13 17:11:44 2025 +0100

    Fix ordering issue creating the classpath
    
    BZ69837 again.
---
 java/org/apache/catalina/loader/WebappLoader.java | 6 +++---
 webapps/docs/changelog.xml                        | 4 ++++
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/java/org/apache/catalina/loader/WebappLoader.java 
b/java/org/apache/catalina/loader/WebappLoader.java
index fb69b84828..6a474efaea 100644
--- a/java/org/apache/catalina/loader/WebappLoader.java
+++ b/java/org/apache/catalina/loader/WebappLoader.java
@@ -354,13 +354,13 @@ public class WebappLoader extends LifecycleMBeanBase 
implements Loader, Property
             classLoader.setResources(context.getResources());
             classLoader.setDelegate(this.delegate);
 
-            // Configure our repositories
-            setClassPath();
-
             setPermissions();
 
             classLoader.start();
 
+            // Configure our repositories
+            setClassPath();
+
             String contextName = context.getName();
             if (!contextName.startsWith("/")) {
                 contextName = "/" + contextName;
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 9944202fed..8eef0e842e 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -119,6 +119,10 @@
         <bug>69877</bug>: Catch IllegalArgumentException when processing URIs
         when creating the classpath to handle invalid URIs. (remm)
       </fix>
+      <fix>
+        Fix populating the classpath with the webapp classloader repositories.
+        (remm)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Clustering">


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to