[ 
http://issues.apache.org/jira/browse/NUTCH-142?page=comments#action_12361492 ] 

Piotr Kosiorowski commented on NUTCH-142:
-----------------------------------------

Thanks. Fixed in 0.7 branch. Left open to fix it in trunk after cleaning trunk 
JUnit test problems (in next few days).

> 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

Reply via email to