You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by bi...@apache.org on 2020/04/16 07:39:01 UTC

[axis-axis2-java-savan] 29/36: Use the correct class loader in SavanModule (this allows reading the config file even if the core jar is in axis2/lib)

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

billblough pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-savan.git

commit 5fdea3c43115fbed909cd4e0cf4ce3b01ead22ce
Author: Glen Daniels <gd...@apache.org>
AuthorDate: Wed Aug 20 13:11:22 2008 +0000

    Use the correct class loader in SavanModule (this allows reading the config file even if the core jar is in axis2/lib)
    
    Use lowercase module name
---
 .../java/org/apache/savan/module/SavanModule.java  |  2 +-
 modules/mar/module.xml                             | 48 +++++++++++-----------
 2 files changed, 25 insertions(+), 25 deletions(-)

diff --git a/modules/core/src/main/java/org/apache/savan/module/SavanModule.java b/modules/core/src/main/java/org/apache/savan/module/SavanModule.java
index 07167dd..2341853 100644
--- a/modules/core/src/main/java/org/apache/savan/module/SavanModule.java
+++ b/modules/core/src/main/java/org/apache/savan/module/SavanModule.java
@@ -51,7 +51,7 @@ public class SavanModule implements Module {
         ConfigurationManager configurationManager = new ConfigurationManager();
         try {
             ClassLoader moduleClassLoader = module.getModuleClassLoader();
-            configurationManager.configure(getClass().getClassLoader());
+            configurationManager.configure(moduleClassLoader);
         } catch (SavanException e) {
             log.error("Exception thrown while trying to configure the Savan module", e);
         }
diff --git a/modules/mar/module.xml b/modules/mar/module.xml
index 05636b1..5eed28d 100644
--- a/modules/mar/module.xml
+++ b/modules/mar/module.xml
@@ -1,24 +1,24 @@
-<module name="Savan" class="org.apache.savan.module.SavanModule">
-
-  <operation name="SavanInOutOperation" mep="http://www.w3.org/2004/08/wsdl/in-out">
-    <messageReceiver class="org.apache.savan.messagereceiver.SavanInOutMessageReceiver"/>
-    <actionMapping>http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe</actionMapping>
-    <actionMapping>http://schemas.xmlsoap.org/ws/2004/08/eventing/Renew</actionMapping>
-    <actionMapping>http://schemas.xmlsoap.org/ws/2004/08/eventing/GetStatus</actionMapping>
-    <actionMapping>http://schemas.xmlsoap.org/ws/2004/08/eventing/Unsubscribe</actionMapping>
-    <actionMapping>http://wso2.com/eventing/Subscribe</actionMapping>
-    <actionMapping>http://wso2.com/eventing/Renew</actionMapping>
-    <actionMapping>http://wso2.com/eventing/Unsubscribe</actionMapping>
-    <actionMapping>http://wso2.com/eventing/GetStatus</actionMapping>
-  </operation>
-
-  <operation name="atom" mep="http://www.w3.org/2004/08/wsdl/in-out">
-    <messageReceiver class="org.apache.savan.atom.AtomMessageReceiver"/>
-  </operation>
-
-  <operation name="publish" mep="http://www.w3.org/2004/08/wsdl/in-out">
-    <messageReceiver class="org.apache.savan.messagereceiver.PublishingMessageReceiver"/>
-    <actionMapping>http://ws.apache.org/ws/2007/05/eventing-extended/Publish</actionMapping>
-  </operation>
-
-</module>
+<module name="savan" class="org.apache.savan.module.SavanModule">
+
+  <operation name="SavanInOutOperation" mep="http://www.w3.org/2004/08/wsdl/in-out">
+    <messageReceiver class="org.apache.savan.messagereceiver.SavanInOutMessageReceiver"/>
+    <actionMapping>http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe</actionMapping>
+    <actionMapping>http://schemas.xmlsoap.org/ws/2004/08/eventing/Renew</actionMapping>
+    <actionMapping>http://schemas.xmlsoap.org/ws/2004/08/eventing/GetStatus</actionMapping>
+    <actionMapping>http://schemas.xmlsoap.org/ws/2004/08/eventing/Unsubscribe</actionMapping>
+    <actionMapping>http://wso2.com/eventing/Subscribe</actionMapping>
+    <actionMapping>http://wso2.com/eventing/Renew</actionMapping>
+    <actionMapping>http://wso2.com/eventing/Unsubscribe</actionMapping>
+    <actionMapping>http://wso2.com/eventing/GetStatus</actionMapping>
+  </operation>
+
+  <operation name="atom" mep="http://www.w3.org/2004/08/wsdl/in-out">
+    <messageReceiver class="org.apache.savan.atom.AtomMessageReceiver"/>
+  </operation>
+
+  <operation name="publish" mep="http://www.w3.org/2004/08/wsdl/in-out">
+    <messageReceiver class="org.apache.savan.messagereceiver.PublishingMessageReceiver"/>
+    <actionMapping>http://ws.apache.org/ws/2007/05/eventing-extended/Publish</actionMapping>
+  </operation>
+
+</module>