uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From swirl <lriwsw...@gmail.com>
Subject Invalid descriptor at jar
Date Mon, 28 Apr 2014 08:50:23 GMT
I have a tomcat web application that uses Uima for text processing.
I used the Uimafit's auto type detection for loading the types.

On uimafit 2.4.0, there was not problem, 
after I used 2.4.2 with uimafit legacy support,
I am getting the error below when running the web application:

2014-04-28 16:22:38 WARN  TypeSystemDescription:158 - 
[jar:file:/var/lib/tomcat7/webapps/demo-web-1.0.1/WEB-INF/lib
/cleartk-examples-0.6.3.jar!
/org/cleartk/examples/TypeSystem.xml] is not a type file. Ignoring.

org.apache.uima.util.InvalidXMLException: Invalid descriptor at jar:file:
/var/lib/tomcat7/webapps/demo-web-1.0.1/WEB-INF/lib/
cleartk-examples-0.6.3.jar!/org/cleartk/examples/TypeSystem.xml.
at org.apache.uima.util.impl.XMLParser_impl.parse(XMLParser_impl.java:196)
at org.apache.uima.util.impl.XMLParser_impl.parseTypeSystemDescription(
XMLParser_impl.java:718)
at org.apache.uima.util.impl.XMLParser_impl.parseTypeSystemDescription(
XMLParser_impl.java:705)
at org.uimafit.factory.TypeSystemDescriptionFactory.
createTypeSystemDescription(TypeSystemDescriptionFactory.java:150)
at org.uimafit.factory.AnalysisEngineFactory.createPrimitiveDescription(
AnalysisEngineFactory.java:225)
at org.cleartk.syntax.opennlp.SentenceAnnotator.getDescription(
SentenceAnnotator.java:76)
	

This is how my pom.xml looks like:
<dependency>
	<groupId>org.apache.uima</groupId>
	<artifactId>uimaj-core</artifactId>
	<version>2.4.2</version>
</dependency>
<dependency>
	<groupId>org.apache.uima</groupId>
	<artifactId>uimaj-document-annotation</artifactId>
	<version>2.4.2</version>
</dependency>
<dependency>
	<groupId>org.apache.uima</groupId>
	<artifactId>uimaj-tools</artifactId>
	<version>2.4.2</version>
</dependency>
<dependency>
	<groupId>org.uimafit</groupId>
	<artifactId>uimafit</artifactId>
	<version>1.4</version>
</dependency>
<dependency>
	<groupId>org.apache.uima</groupId>
	<artifactId>uimafit-legacy-support</artifactId>
	<version>2.0.0</version>
</dependency>


Was the error due to upgrading to 2.4.2?
Is my pom correct?

Please help. Thanks!


Mime
View raw message