You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Davide Giannella (JIRA)" <ji...@apache.org> on 2016/03/02 12:20:18 UTC
[jira] [Updated] (OAK-2782) Tika not able to load class in case of
custom config
[ https://issues.apache.org/jira/browse/OAK-2782?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davide Giannella updated OAK-2782:
----------------------------------
Fix Version/s: 1.4
> Tika not able to load class in case of custom config
> ----------------------------------------------------
>
> Key: OAK-2782
> URL: https://issues.apache.org/jira/browse/OAK-2782
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: lucene
> Affects Versions: 1.0.12, 1.2, 1.2.1
> Reporter: Chetan Mehrotra
> Assignee: Chetan Mehrotra
> Fix For: 1.0.13, 1.2.2, 1.3.0, 1.4
>
> Attachments: OAK-2782-branch-1.0.patch, OAK-2782-trunk.patch
>
>
> If a custom config file is used to configure Tika then Tika is not able to load the configured parser classes
> For e.g. with config having following entry
> {code:xml}
> <parser name="parse-dcxml" class="org.apache.tika.parser.xml.DcXMLParser">
> <mime>application/xml</mime>
> <mime>image/svg+xml</mime>
> </parser>
> {code}
> Throws following exception in OSGi env
> {noformat}
> Caused by: java.lang.ClassNotFoundException: org.apache.tika.parser.xml.DcXMLParser not found by org.apache.tika.core [82]
> at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1558)
> at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)
> at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1998)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:270)
> at org.apache.tika.config.ServiceLoader.getServiceClass(ServiceLoader.java:189)
> at org.apache.tika.config.TikaConfig.parserFromDomElement(TikaConfig.java:318)
> ... 52 common frames omitted
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)