You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@any23.apache.org by "Kadri Tabaku (JIRA)" <ji...@apache.org> on 2014/12/18 10:43:14 UTC

[jira] [Commented] (ANY23-151) Error while loading Tika configuration

    [ https://issues.apache.org/jira/browse/ANY23-151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14251432#comment-14251432 ] 

Kadri Tabaku commented on ANY23-151:
------------------------------------

The problem is with nutch classloader which can't find <path>/apache-any23-mime-1.1.jar!/org/apache/any23/mime/mimetypes.xml in org.apache.tika.mime.MimeTypesFactory line 116 (MimeTypesReader.class.getResource(filePath)).
The classloader il looking in the path of nutch lib folder for org/apache/any23/mime/mimetypes.xml not in nutch plugins forlder.
I solved the problem creating a jar with only mimetypes.xml in org.apache.any23.mime package and put it in nutch lib folder.

> Error while  loading Tika configuration
> ---------------------------------------
>
>                 Key: ANY23-151
>                 URL: https://issues.apache.org/jira/browse/ANY23-151
>             Project: Apache Any23
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 0.7.0
>            Reporter: Dat Tran
>            Assignee: Peter Ansell
>
> I am developing a parse-plugin for nutch with any23. When I create new instance of Any23, the runtime exception occurs
> Error while loading Tika configuration.
> java.lang.RuntimeException: Error while loading Tika configuration.
> 	at org.apache.any23.mime.TikaMIMETypeDetector.<init>(TikaMIMETypeDetector.java:212)
> 	at org.apache.any23.Any23.<init>(Any23.java:83)
> 	at org.apache.any23.Any23.<init>(Any23.java:119)
> 	at org.apache.nutch.parse.any23.Any23Parser.getParse(Any23Parser.java:71)
> 	at org.apache.nutch.parse.ParseCallable.call(ParseCallable.java:35)
> 	at org.apache.nutch.parse.ParseCallable.call(ParseCallable.java:24)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> 	at java.lang.Thread.run(Thread.java:679)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)