Hi Alexander,

Can you have a look at the classpath(s) that might be involved in your
particular embedding?  Do you have multiple ways (under multiple class loaders)
that the UIMA framework Jars might be loaded?  Is there anything that is
overriding some of the UIMA Jars in the classpath?

(From the previous thread on this topic):

The UIMA framework is looking up "cpeDescription" (the XML element name) in a
table that is supposed to be configured by the class
org.apache.uima.impl.FactoryConfig.xml (in the uimaj-core source, under
/src/main/resources). This file has an entry for the elements the normal UIMA
parser should recognize. The default factoryConfig file has one for
cpeDescription, but this is overridable, by earlier Jars in the classpath.

-Marshall

On 8/18/2011 7:35 AM, Alexander Klenner wrote:
> Hi,
>
> I have some working CPEs now (finally!). At least they do work perfectly 
> inside the UIMA CPE GUI. As a next step I wanted to start them from inside 
> another java application. Whenever I try this, I get the following error: 
>
> Caused by: org.apache.uima.util.InvalidXMLException: The XML parser 
> encountered an unknown element type: cpeDescription.
>       at 
> org.apache.uima.util.impl.XMLParser_impl.buildObject(XMLParser_impl.java:277)
>       at 
> org.apache.uima.util.impl.SaxDeserializer_impl.getObject(SaxDeserializer_impl.java:115)
>       at 
> org.apache.uima.util.impl.XMLParser_impl.parse(XMLParser_impl.java:185)
>
> Again, I found this error in the archiv of the mailing list, but no solution 
> to it (http://osdir.com/ml/apache.uima.general/2008-03/msg00042.html).
>
> This also happens if I try to start one of the uima example cpe descriptors 
> from inside other Java applications. I do start the cpe decriptor as 
> suggested in the tutorial section:
>
>
>
> --
> Dipl. Bioinformatiker Alexander G. Klenner
> Fraunhofer-Institute for Algorithms and Scientific Computing (SCAI)
> Schloss Birlinghoven, D-53754 Sankt Augustin
> Tel.: +49 - 2241 - 14 - 2736
> E-mail: [email protected]
> Internet: http://www.scai.fraunhofer.de
>
>
>

Reply via email to