[
https://issues.apache.org/jira/browse/TIKA-968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jukka Zitting resolved TIKA-968.
--------------------------------
Resolution: Fixed
Fix Version/s: 1.3
Assignee: Jukka Zitting
The lack of the Commons Logging dependency is actually intentional, though the
fact that is's marked as optional in the bundle manifest is not. I fixed that
in revision 1369624.
The reason why we'd rather not include the logging library inside tika-bundle
is that a deployment probably wants to use something like Pax Logging or
another OSGi Log service implementation to control how log messages are
handled. That's only possible if tika-bundle imports the logging packages from
another bundle.
> tika-bundle missing org.apache.commons.logging.LogFactory
> ---------------------------------------------------------
>
> Key: TIKA-968
> URL: https://issues.apache.org/jira/browse/TIKA-968
> Project: Tika
> Issue Type: Bug
> Components: packaging
> Affects Versions: 1.2
> Reporter: Gary Karasiuk
> Assignee: Jukka Zitting
> Fix For: 1.3
>
>
> Trying to invoke the PDFParser from the tika-bundle results in this error:
> java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
> at org.apache.pdfbox.pdfparser.BaseParser.<clinit>(BaseParser.java:58)
> at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1089)
> at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1055)
> at org.apache.tika.parser.pdf.PDFParser.parse(PDFParser.java:123)
> at
> org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)
> at
> org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)
> at
> org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)
> at
> org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)
> at org.apache.tika.Tika.parseToString(Tika.java:421)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira