Hi Nick I don't have any other tika jar's in my classpath and have not tampered with the xml parser. I removed all the mime type from the tika-mimetypes.xml file and retained only the text/html mime type. Then built a new jar and it started working. ~ Karthik
On Mon, May 21, 2012 at 5:04 PM, Nick Burch <[email protected]> wrote: > On Fri, 18 May 2012, Karthik Deivasigamani wrote: > >> I wanted to try out tika for our parsing needs. Tried downloading the >> tika-app-1.0.jar & 1.1 jar file and also build it locally from the src >> using mvn. Both seem to give me the same error message as below : >> >> *[karthik@karthik-linux contentextraction]$ java -jar tika-app-1.0.jar >> input.html * >> >> Exception in thread "main" java.lang.RuntimeException: Unable to read >> default mimetypes >> at org.apache.tika.mime. >> MimeTypes.getDefaultMimeTypes(**MimeTypes.java:574) >> at org.apache.tika.detect.**DefaultDetector.<init>(** >> DefaultDetector.java:63) >> at org.apache.tika.cli.TikaCLI.<**init>(TikaCLI.java:275) >> at org.apache.tika.cli.TikaCLI.**main(TikaCLI.java:94) >> Caused by: org.apache.tika.mime.**MimeTypeException: Invalid media type >> name: >> application/activemessage >> > > Are you sure you haven't got any other Tika jars on your classpath? And > have you done something bizzare with the XML parser that your JVM uses by > default? > > Nick >
