Hi everybody,

I am using the Apache Tika libraries [1] in my GWT project. All JUnit
test pass fine but in hosted mode, Tika does not find any parsers.
I've checked the source and see that they use the ServiceRegistry [2]
to find parsers, and in hosted mode, none are found.

When I put the Tika JARs into project/war/WEB-INF/lib/, Tika finds all
parsers in hosted mode, but I am not so happy with this as I am using
Maven to manage dependencies (and mvn eclipse:eclipse together with
the GWT Eclipse Plugin).

Tika offers me to pass a class loader to the ServiceRegistry. Is there
a way I can find a suitable class loader?
I have tried Thread.currentThread().getContextClassLoader() (the
standard one) and its parent without success.

Any ideas?

Thanks in advance,
Kaspar

[1] http://tika.apache.org/download.html, version 0.8-SNAPSHOT
[2] 
http://download.oracle.com/javase/1.4.2/docs/api/javax/imageio/spi/ServiceRegistry.html

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to