Hi, On Fri, Jul 6, 2012 at 6:27 PM, Kevin Milburn <kmilb...@gpslsolutions.com> wrote: > It appears my main mistake is trying to use Tika or TikaConfig, like all > every example I've found has done, which appears to be completely > incompatible with using Tika in an OSGI environment! :(
That shouldn't be the case. What's the code you're using. You'll want to make sure that both the tika-bundle and tika-core bundles are actually started/activated by the OSGi environment, as otherwise the relevant Activators that Tika uses to hook up with the available services won't get started. Adding a breakpoint or a System.out print to the o.a.t.config.TikaActivator class in tika-core and the o.a.t.parser.internal.Activator class in tika-parsers/-bundle should help making sure that these Activators really are being invoked by the OSGi environment. > e.g. the following produces no output, despite the file containing text. > Tika tika = new Tika(); > System.out.print(tika.parseToString(new FileInputStream(xmlFile))); See the BundleIT test case inside the tika-bundle component. That's a pretty similar piece of code that works fine in an OSGi environment. BR, Jukka Zitting