You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by sn...@apache.org on 2017/11/28 10:48:08 UTC

[nutch] 01/02: NUTCH-2458

This is an automated email from the ASF dual-hosted git repository.

snagel pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nutch.git

commit c17dd1dd6bf914beb7b13528c95b487630f86905
Author: Markus Jelsma <ma...@apache.org>
AuthorDate: Fri Nov 10 10:56:56 2017 +0100

    NUTCH-2458
---
 .../parse-tika/src/java/org/apache/nutch/parse/tika/TikaParser.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugin/parse-tika/src/java/org/apache/nutch/parse/tika/TikaParser.java b/src/plugin/parse-tika/src/java/org/apache/nutch/parse/tika/TikaParser.java
index 49dc378..73cd083 100644
--- a/src/plugin/parse-tika/src/java/org/apache/nutch/parse/tika/TikaParser.java
+++ b/src/plugin/parse-tika/src/java/org/apache/nutch/parse/tika/TikaParser.java
@@ -239,7 +239,7 @@ public class TikaParser implements org.apache.nutch.parse.Parser {
         // see if a Tika config file can be found in the job file
         URL customTikaConfig = conf.getResource(customConfFile);
         if (customTikaConfig != null)
-          tikaConfig = new TikaConfig(customTikaConfig);
+          tikaConfig = new TikaConfig(customTikaConfig, this.getClass().getClassLoader());
       } catch (Exception e1) {
         String message = "Problem loading custom Tika configuration from "
             + customConfFile;

-- 
To stop receiving notification emails like this one, please contact
"commits@nutch.apache.org" <co...@nutch.apache.org>.