Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tika is missing jhighlight #3

Open
buchi opened this issue Oct 3, 2018 · 0 comments
Open

Tika is missing jhighlight #3

buchi opened this issue Oct 3, 2018 · 0 comments

Comments

@buchi
Copy link
Member

buchi commented Oct 3, 2018

When indexing a document that contains e.g. XHTML Solr fails with a java.lang.NoClassDefFoundError.

Traceback:

o.a.s.s.HttpSolrCall null:java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/uwyn/jhig
hlight/renderer/XhtmlRendererFactory
        at org.apache.solr.servlet.HttpSolrCall.sendError(HttpSolrCall.java:664)
        at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:532)
        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:384)
        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:330)
...

This is because jhighlight was removed from the Solr distribution but Tika is still using it: https://issues.apache.org/jira/browse/SOLR-7317
https://issues.apache.org/jira/browse/TIKA-1581

Workaround:
Download jhighlight-1.0.jar from https://mvnrepository.com/artifact/com.uwyn/jhighlight/1.0 to contrib/extraction/lib folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant