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
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Nutch-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-developers