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 "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2015/04/16 19:57:00 UTC

[jira] [Created] (OAK-2782) Tika not able to load class in case of custom config

Chetan Mehrotra created OAK-2782:
------------------------------------

             Summary: 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.2, 1.0.12, 1.2.1
            Reporter: Chetan Mehrotra
            Assignee: Chetan Mehrotra
             Fix For: 1.0.13, 1.3.0, 1.2.2


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)