NutchConf should use the thread context classloader
---------------------------------------------------
Key: NUTCH-142
URL: http://issues.apache.org/jira/browse/NUTCH-142
Project: Nutch
Type: Improvement
Versions: 0.7
Reporter: Mike Cannon-Brookes
Right now NutchConf uses it's own static classloader which is _evil_ in a J2EE
scenario.
This is simply fixed. Line 52:
private ClassLoader classLoader = NutchConf.class.getClassLoader();
Should be:
private ClassLoader classLoader =
Thread.currentThread().getContextClassLoader();
This means no matter where Nutch classes are loaded from, it will use the
correct J2EE classloader to try to find configuration files (ie from
WEB-INF/classes).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira