> On 30. Sep 2024, at 20:02, Daniel Cosio <dcco...@gmail.com> wrote:
> 
> No.. this simple test fails
> @Test
> public void testJCas() throws Exception {
> JCas jcas = CasCreationUtils.createCas().getJCas();
> Pair p = new Pair(jcas);
> }
> org.apache.uima.cas.CASRuntimeException: JCas type 
> "org.apache.ctakes.typesystem.type.util.Pair" used in Java code, but was not 
> declared in the XML type descriptor.

Ok, this is perfectly normal. You create a CAS without specifying any type 
system.

Either you need to specify a type system description to the 
CasCreationUtils.createCas() or you need to use e.g the 
JCasFactory.createJCas() from uimaFIT which supports auto-discovery of type 
system descriptions (see 
https://uima.apache.org/d/uimafit-current/fit.html#_ugr.tools.uimafit.typesystem).

-- Richard

Reply via email to