On 18/11/2012 01:04, Nick Burch wrote: > On Sat, 17 Nov 2012, Jason Judge wrote: >> -bash-4.1$ java -jar tika-app-1.2.jar >> Exception in thread "main" java.lang.RuntimeException: Unable to parse the >> default media type registry >> Caused by: org.apache.tika.mime.MimeTypeException: Invalid type configuration >> Caused by: org.apache.tika.mime.MimeTypeException: Invalid media type name: >> application/dita+xml;format=map >> at >> org.apache.tika.mime.MimeTypesReader.startElement(MimeTypesReader.java:148) >> at gnu.xml.stream.SAXParser.parse(libgcj.so.10) > > I think you've got a buggy java xml library. Can you try with openjdk rather > than gcj and/or try upgrading gcj? > > Nick
Nick, I'm was using libgcj 4.4.6, which seems to be the latest for CentOS 6.3, so far as I can see (in rpm format, at least). I've installed openjdk: # yum install java-1.7.0-openjdk and that works a treat - fast too. Demo page here: http://cumulus.acadweb.co.uk/tika/test1.php I have not uninstalled the original jdk, and openjdk has blatted its own executables over those original ones, so I'm not sure the best course of action now. What happens when two installed packages attempt to occupy the same space on CentOS? I will uninstall both and reinstall openjdk if the consensus is that I'm storing up trouble. For now it "works", which could just be a fluke. Thanks for your help. -- Jason
