Hi, On Mon, Dec 10, 2012 at 10:08 AM, Arkadi Colson <[email protected]> wrote: > I'm using Tika 1.2 with Solr and I'm getting this error when extracting the > contents of a text file. Anybody an idea? > Do you need more information? Pls let me know... > > SEVERE: null:java.lang.RuntimeException: java.lang.NoClassDefFoundError: > org/apache/tika/parser/txt/UniversalEncodingListener
The text parser is trying to use the juniversalchardet library [1,2], but it looks like the library isn't present in the classpath. A simple fix would be to just add the library to your deployment. We should probably also make Tika degrade more gracefully when a particular encoding detector is not present. [1] http://code.google.com/p/juniversalchardet/ [2] http://search.maven.org/#artifactdetails%7Ccom.googlecode.juniversalchardet%7Cjuniversalchardet%7C1.0.3%7Cjar BR, Jukka Zitting
