Katrin Tomanek wrote:
Hi,
we are currently building PEAR files from out UIMA components.
Currently, we are a little bit confused whether the type system as
java classes (not only the type system descriptor) has to be included
into the PEAR.
When I include it, everything works fine. When I omit the java classes
for the type system, I get a ClassNotFoundException. Is this normal
behavior? Shouldn't PEAR generator automatically create java classes
of the types from the type system descriptor and add it to the PEAR
package?
regards,
Katrin
Hi Katrin,
If you have to package the java type system classes with your PEAR file
depends on your application. If your application still have the same
java type system classes in the classpath you don't have to package them
with the PEAR file again (e.g. DocumentAnnotation java type system
class). But I guess in the most cases the application does not have the
classes already in the classpath, so it is necessary to package them
with the PEAR package.
The PEAR packager does not create the java type system classes. This
functionality is available at the CDE (Component Descriptor Editor)
where you can specify for which type system you want to generate the
type system classes. You also need the type system classes to get your
UIMA component code compiled, so you have to generate the type system
classes before the code is packaged into a PEAR.
-- Michael