[ https://issues.apache.org/jira/browse/TIKA-966?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jukka Zitting resolved TIKA-966. -------------------------------- Resolution: Fixed Fix Version/s: 1.3 Assignee: Jukka Zitting I updated Tika documentation to more accurately describe the current version of {{tika-bundle}}. The start sequence problem you describe is most likely just a matter of timing in your test case. Tika uses a {{ServiceTracker}} to keep track of all available parser services, so the order in which the bundles are started shouldn't matter. Since your test case as included in the Eclipse bug report you filed runs already in the _activator_, I suspect that you're simply experiencing a race condition where the parser services have not yet become available by the time your test code runs. The explicit {{tikaBundle.start()}} call you show in the last comment breaks this race by forcing the bundle to finish activating itself before your test case is run. A better solution would be to move your test code out of the activator to a place where it gets invoked only once all relevant bundles are active. > org.apache.tika.Tika missing from tika-bundle-1.2.jar > ----------------------------------------------------- > > Key: TIKA-966 > URL: https://issues.apache.org/jira/browse/TIKA-966 > Project: Tika > Issue Type: Bug > Components: packaging > Affects Versions: 1.2 > Reporter: Gary Karasiuk > Assignee: Jukka Zitting > Fix For: 1.3 > > > In version 0.9 I was able to use the org.apache.tika.Tika class in my OSGi > application simply by including the tika-bundle. > I am now trying to move to version 1.2 and this class is missing from the > tika-bundle-1.2.jar > The top level documentation says "Tika bundle. An OSGi bundle that includes > everything you need to use all Tika functionality in an OSGi environment." so > I think that this should be continued to included. > I tried including the tika-core-1.2.jar into my application, but even after > fiddling with various start levels I can't get the Tika class to find the > parsers in the tika-bundle. -- 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