You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by swirl <lr...@gmail.com> on 2014/04/28 10:50:23 UTC
Invalid descriptor at jar
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!
Re: Invalid descriptor at jar
Posted by swirl <lr...@gmail.com>.
Richard Eckart de Castilho <re...@...> writes:
>
> <at> Xalan: Something like this (see source code of EnvironmentCheck):
>
> PrintWriter sendOutputTo = new PrintWriter(System.out, true);
> EnvironmentCheck app = new EnvironmentCheck();
> app.checkEnvironment(sendOutputTo);
>
> You could also try upgrading to UIMA-J 2.5.0 - it contains a workaround
> for UIMA-2155. If the problem persists with 2.5.0, it probably has another
cause.
>
Thanks Richard.
I upgraded to UIMA 2.5.0 and the issue was resolved.
Thank you very much for your help.
Re: Invalid descriptor at jar
Posted by Richard Eckart de Castilho <re...@apache.org>.
@Xalan: Something like this (see source code of EnvironmentCheck):
PrintWriter sendOutputTo = new PrintWriter(System.out, true);
EnvironmentCheck app = new EnvironmentCheck();
app.checkEnvironment(sendOutputTo);
You could also try upgrading to UIMA-J 2.5.0 - it contains a workaround
for UIMA-2155. If the problem persists with 2.5.0, it probably has another cause.
-- Richard
On 28.04.2014, at 12:05, swirl <lr...@gmail.com> wrote:
> Richard Eckart de Castilho <re...@...> writes:
>
>>
>> You may experience UIMA-2155 [1].
>>
>> Please check what version of Xalan is used at runtime - it should not be
> 2.6.0 or earlier.
>>
>
>
> Thanks for your fast response.
>
> How do I check the Xalan version at runtime?
>
> BTW, I tried putting Xalan 2.7.0 and 2.7.1 onto my web app's lib/. Both gave a
> different error from what I posted previously.
Re: Invalid descriptor at jar
Posted by swirl <lr...@gmail.com>.
Richard Eckart de Castilho <re...@...> writes:
>
> You may experience UIMA-2155 [1].
>
> Please check what version of Xalan is used at runtime - it should not be
2.6.0 or earlier.
>
Thanks for your fast response.
How do I check the Xalan version at runtime?
BTW, I tried putting Xalan 2.7.0 and 2.7.1 onto my web app's lib/. Both gave a
different error from what I posted previously.
Re: Invalid descriptor at jar
Posted by Richard Eckart de Castilho <re...@apache.org>.
You may experience UIMA-2155 [1].
Please check what version of Xalan is used at runtime - it should not be 2.6.0 or earlier.
-- Richard
[1] https://issues.apache.org/jira/browse/UIMA-2155
On 28.04.2014, at 10:50, swirl <lr...@gmail.com> wrote:
> 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!
>