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

jialiang pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new a89f761ac4 AMBARI-26255: fix can't add capacity-scheduler views (#3913)
a89f761ac4 is described below

commit a89f761ac4e97933b03b5a956e8fa33506aa626c
Author: jialiang <[email protected]>
AuthorDate: Thu Dec 12 08:56:56 2024 +0800

    AMBARI-26255: fix can't add capacity-scheduler views (#3913)
---
 .../src/main/java/org/apache/ambari/server/view/ViewArchiveUtility.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/ambari-server/src/main/java/org/apache/ambari/server/view/ViewArchiveUtility.java
 
b/ambari-server/src/main/java/org/apache/ambari/server/view/ViewArchiveUtility.java
index d1cd11518c..23b3ded6d7 100644
--- 
a/ambari-server/src/main/java/org/apache/ambari/server/view/ViewArchiveUtility.java
+++ 
b/ambari-server/src/main/java/org/apache/ambari/server/view/ViewArchiveUtility.java
@@ -65,7 +65,7 @@ public class ViewArchiveUtility {
    */
   public ViewConfig getViewConfigFromArchive(File archiveFile)
       throws JAXBException, IOException {
-    ClassLoader cl = URLClassLoader.newInstance(new 
URL[]{archiveFile.toURI().toURL()});
+    ClassLoader cl = URLClassLoader.newInstance(new 
URL[]{archiveFile.toURI().toURL()}, null);
 
     InputStream configStream = cl.getResourceAsStream(VIEW_XML);
     if (configStream == null) {


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

Reply via email to