Thanks for the response.... replies in-line below...

On Thu, Mar 15, 2012 at 9:58 AM, Nick Burch <[email protected]> wrote:
> On Tue, 13 Mar 2012, Jon Gorrono wrote:
>>
>> The tika-app jar properly identifies the misnamed file so it's either a
>> classpath or a implementation issue
>
>
> You'll need to have the Tika Parsers jar (and associated dependencies) for
> it to work properly. We do have unit tests for this, and as long as the
> parser jar + dependencies are there, then the appropriate detector will
> fire. It may be worth making sure you use a recent nightly build, or waiting
> for Tika 1.1 (hopefully due soon) though, as I seem to recall we had to fix
> an ordering problem at some point
>
>
>> Also ContainerAwareDetector does not seem to exist in 1.0 ... this leads
>> me to think that that part was abstracted for ease of use and the docs are
>> now outdated(?)
>
>
> Which docs were you looking at? ContainerAwareDetector has gone, yes, it's
> now handled by the same service loading mechanism that parsers use

http://tika.apache.org/1.0/detection.html

And this

http://tika.apache.org/1.0/gettingstarted.html

.. is where I am getting the list of jars to put on the classpath....
all in that list are present with the same version listed and there
are not conflicts with other versions


>
>
>> But should I then be wrapping the inputstream in a TikaInputStream?
>
>
> If you have a File, then I'd suggest you use a TikaInputStream



Ok, I wrapped the file ... right now I the same (no) effect.




>
>
>> I also tried the detection after creating a spingbean for the Tika class
>> in the hope that it might wake up a hidden 'inner-self' :)
>
>
> Not sure if it'll help or not, but you could look at Alfresco for an example
> (though a large one!) of using spring beans with Tika for detection

I just thought that using Spring might help some aspect of the
detection bootstrapping, like getting the OSGi environment squared
away... but if that is not the case, I'll just be as well to do
without it.


>
> Nick



-- 
Jon Gorrono
PGP Key: 0x5434509D -
http{pgp.mit.edu:11371/pks/lookup?search=0x5434509D&op=index}
GSWoT Introducer - {GSWoT:US75 5434509D Jon P. Gorrono <jpgorrono -
www.gswot.org>}
http{middleware.ucdavis.edu}

Reply via email to