Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-2782

Tika not able to load class in case of custom config

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.12, 1.2, 1.2.1
    • 1.0.13, 1.2.2, 1.3.0, 1.4
    • lucene
    • None

    Description

      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

          <parser name="parse-dcxml" class="org.apache.tika.parser.xml.DcXMLParser">
            <mime>application/xml</mime>
            <mime>image/svg+xml</mime>
          </parser>
      

      Throws following exception in OSGi env

      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
      

      Attachments

        1. OAK-2782-branch-1.0.patch
          2 kB
          Chetan Mehrotra
        2. OAK-2782-trunk.patch
          2 kB
          Chetan Mehrotra

        Activity

          People

            chetanm Chetan Mehrotra
            chetanm Chetan Mehrotra
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: