tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Paulin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TIKA-1769) External parsers can't be used when using tika-bundle
Date Sat, 31 Oct 2015 15:34:27 GMT

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

Bob Paulin commented on TIKA-1769:
----------------------------------

Hi Joseph,  the issue with ExternalParsers in OSGi goes a bit deeper that that.  There is
actually a split package with the tika-core bundle.  See TIKA-1507.

> External parsers can't be used when using tika-bundle
> -----------------------------------------------------
>
>                 Key: TIKA-1769
>                 URL: https://issues.apache.org/jira/browse/TIKA-1769
>             Project: Tika
>          Issue Type: Bug
>    Affects Versions: 1.10
>            Reporter: Joseph North
>
> {{tika-bundle}} does not import the {{org.apache.tika.parser.external}} package, so you
can't use parsers that require the {{ExternalParser}} class.
> One example is the {{GDALParser}}:
> java.lang.NoClassDefFoundError: org/apache/tika/parser/external/ExternalParser
> 	at org.apache.tika.parser.gdal.GDALParser.parse(GDALParser.java:233)
> 	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
> 	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
> 	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
> 	at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)
> ...
> Caused by: java.lang.ClassNotFoundException: org.apache.tika.parser.external.ExternalParser
cannot be found by org.apache.tika.bundle_1.10.0
> 	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
> 	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
> 	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
> 	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)



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

Mime
View raw message