On 2012/07/06 16:14, Jukka Zitting wrote:
The tika-bundle should start up Parser and Detector services that
tika-core will then access through the OSGi framework.
OK, I've done a bit more debugging, and think I know where I've gone
wrong.
Having got a breakpoint in the right place, I can see that the Parser
and Detector services are being generate correctly.
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! :(
e.g. the following produces no output, despite the file containing text.
Tika tika = new Tika();
System.out.print(tika.parseToString(new FileInputStream(xmlFile)));