airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From patanac...@apache.org
Subject svn commit: r1166452 - /incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/services/impl/PropertiesBasedServiceImpl.java
Date Wed, 07 Sep 2011 22:32:29 GMT
Author: patanachai
Date: Wed Sep  7 22:32:29 2011
New Revision: 1166452

URL: http://svn.apache.org/viewvc?rev=1166452&view=rev
Log:
Fix classloader problem

Modified:
    incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/services/impl/PropertiesBasedServiceImpl.java

Modified: incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/services/impl/PropertiesBasedServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/services/impl/PropertiesBasedServiceImpl.java?rev=1166452&r1=1166451&r2=1166452&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/services/impl/PropertiesBasedServiceImpl.java
(original)
+++ incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/services/impl/PropertiesBasedServiceImpl.java
Wed Sep  7 22:32:29 2011
@@ -137,7 +137,7 @@ public class PropertiesBasedServiceImpl 
              */
             if (this.properties == null) {
                 log.info("try to load default properties: " + FILENAME);
-                URL url = ClassLoader.getSystemResource(FILENAME);
+                URL url = this.getClass().getClassLoader().getResource(FILENAME);
 
                 this.properties = new Properties();
                 this.properties.load(url.openStream());



Mime
View raw message