[ http://issues.apache.org/jira/browse/NUTCH-142?page=all ] Piotr Kosiorowski closed NUTCH-142: -----------------------------------
Fix Version: 0.7.2-dev 0.8-dev Resolution: Fixed > 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 > Fix For: 0.7.2-dev, 0.8-dev > > 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