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 <lriwsw...@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! >