Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-142 - NutchConf should use the thread context classloader. (Mike Cannon-Brookes).

Piotr Kosiorowski80de699678cc
diff --git a/src/java/org/apache/nutch/util/NutchConf.java b/src/java/org/apache/nutch/util/NutchConf.java
index e6faa1a49..672197d3f 100644
--- a/src/java/org/apache/nutch/util/NutchConf.java
+++ b/src/java/org/apache/nutch/util/NutchConf.java
@@ -52,7 +52,8 @@ public class NutchConf {
private ArrayList resourceNames = new ArrayList();
private Properties properties;
- private ClassLoader classLoader = NutchConf.class.getClassLoader();
+ private ClassLoader classLoader =
+ Thread.currentThread().getContextClassLoader();
/** A new configuration. */
public NutchConf() {