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

Peter Ansell commented on ANY23-151:
------------------------------------

The code is a little strange right now. In the ivy.xml file, there is a 
declaration to use openrdf-sesame-1.2.7, and no inclusion of any23, while in 
the lib directory there is any23-0.7.0 and only three sesame jar files (you are 
missing the essential sesame-utils jar which you would get if you were using 
maven or ivy as a dependency resolution tool). Any23 has not yet updated to 
Sesame-2.7.0, see ANY23-141, and that is all that is in Maven Central right 
now, so you will need to use that or use Sesame-2.6,10 from 
repo.aduna-software.org.

You will need to remove the openrdf-sesame-1.2.7 artifact from your ivy.xml 
file also to avoid conflicts. In addition, there really is no way of using 
Any23 without Tika, so you will also need to include it, even if you don't want 
to. It is a linked dependency and there is no way around it. Nutch seems to use 
Tika internally anyway, so you shouldn't be adding a new dependency.

Have you used Sesame before this project by the way?

Hope that helps, however I think you should continue this with the Nutch 
developers, as they will know more about their Ant+Ivy build system, which 
should be able to fetch Maven artifacts, but it doesn't seem like this is a bug 
with Any23.
                
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to