JCas type was not declared in the XML type descriptor

240 views
Skip to first unread message

Tristan Miller

unread,
Oct 2, 2013, 3:16:05 AM10/2/13
to uimafi...@googlegroups.com
Greetings.

I'm trying to upgrade a project from uimaFIT 1.4.0 to 2.0.0. I fixed
all the syntax errors resulting from the API changes, so everything
compiles now. But now my JUnit tests are failing with errors like 'JCas
type "de.tudarmstadt.ukp.dkpro.wsd.type.WSDItem" used in Java code, but
was not declared in the XML type descriptor.' But that type is defined
in a WSDItem.xml file in my project, which appears where I expect it in
both the source and target folders.

I know from
https://code.google.com/p/uimafit/wiki/TypeDescriptorDetection that I
can make the types detectable with a types.txt file in META-INF.
However, I never previously needed such a file, so why would I need one now?

Regards,
Tristan

--
Tristan Miller, Doctoral Researcher
Ubiquitous Knowledge Processing Lab (UKP-TUDA)
Department of Computer Science, Technische Universität Darmstadt
Tel: +49 6151 16 6166 | Web: http://www.ukp.tu-darmstadt.de/

signature.asc

Richard Eckart de Castilho

unread,
Oct 2, 2013, 3:22:12 AM10/2/13
to uimafi...@googlegroups.com
In older days, DKPro Core (and other frameworks) used very generous wildcards in the
types.txt files which may have cought your types too. To avoid including types that
are not meant to be included by a certain module, these wildcards have been removed
and the types.txt files now point only and explicitly to the type system files used
by a certain module.

If you provide a type system descriptor, you should set up a types.txt file pointing
exactly to your descriptor.

Cheers,

-- Richard

Torsten Zesch

unread,
Oct 2, 2013, 3:30:55 AM10/2/13
to uimafi...@googlegroups.com

And you need to change the folder name so that it matches the new package name. T

--
You received this message because you are subscribed to the Google Groups "uimafit-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uimafit-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages