You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by pa...@apache.org on 2011/09/08 00:32:29 UTC

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

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());