tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TIKA-1073) root@localhost# java -jar tika-app-1.3.jar Failed to load Main-Class manifest attribute from tika-app-1.3.jar
Date Tue, 05 Feb 2013 06:38:13 GMT

    [ https://issues.apache.org/jira/browse/TIKA-1073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13571090#comment-13571090
] 

Ravi commented on TIKA-1073:
----------------------------

I downloaded the jar from another mirror and now it worked with following error:

root@localhost# cat ~/public_html/user_resume/215_1359957872_Ravi_Resume.doc | java -jar tika-app-1.3.jar
|grep nauki
Exception in thread "main" java.lang.RuntimeException: Unable to parse the default media type
registry
   at org.apache.tika.mime.MimeTypes.getDefaultMimeTypes(MimeTypes.java:502)
   at org.apache.tika.detect.DefaultDetector.<init>(DefaultDetector.java:98)
   at org.apache.tika.cli.TikaCLI.<init>(TikaCLI.java:304)
   at org.apache.tika.cli.TikaCLI.main(TikaCLI.java:106)
Caused by: org.apache.tika.mime.MimeTypeException: Invalid type configuration
   at org.apache.tika.mime.MimeTypesReader.read(MimeTypesReader.java:119)
   at org.apache.tika.mime.MimeTypesFactory.create(MimeTypesFactory.java:64)
   at org.apache.tika.mime.MimeTypesFactory.create(MimeTypesFactory.java:93)
   at org.apache.tika.mime.MimeTypesFactory.create(MimeTypesFactory.java:149)
   at org.apache.tika.mime.MimeTypes.getDefaultMimeTypes(MimeTypes.java:499)
   ...3 more
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 org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
   at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
   at javax.xml.parsers.SAXParser.parse(libgcj.so.10)
   at org.apache.tika.mime.MimeTypesReader.read(MimeTypesReader.java:115)
   ...7 more

                
> root@localhost# java -jar tika-app-1.3.jar                       Failed to load Main-Class
manifest attribute from tika-app-1.3.jar
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TIKA-1073
>                 URL: https://issues.apache.org/jira/browse/TIKA-1073
>             Project: Tika
>          Issue Type: Task
>          Components: config
>    Affects Versions: 1.3
>         Environment: local unix machine x84_64 Intel
>            Reporter: Ravi
>            Priority: Blocker
>   Original Estimate: 10,080h
>  Remaining Estimate: 10,080h
>
> I am new to Java. I downloaded TIKA and tried to run jar file directly to parse a .DOCX
file. But its giving error.
> " Failed to load Main-Class manifest attribute from tika-app-1.3.jar"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message