apache/uima-uimaj

Improve deployment in OSGi environments

Closed this issue · 0 comments

Is your feature request related to a problem? Please describe.
UIMA does not work well in OSGi environments where JCas classes are distributed across different bundles. Cf. https://issues.apache.org/jira/browse/UIMA-6468

UIMA assume that it has a "global view" on all JCas classes that exist outside PEARs. With PEARs we have a strong isolation and the PEARs should provide their own copies of the JCas classes. But in OSGi, the situation is much more heterogeneous.

Describe the solution you'd like
We probably need a mechanism through which OSGi bundles can publish their JCas classes so that the UIMA framework can find and load them all. This should enable the "global view" that the JCas implementation assumes. Of course, in this situation there must never be the case that the same JCas class is provided by multiple bundles. But OSGi mandates anyway that one packages is always in one bundle.

Describe alternatives you've considered
Not sure if there are alternatives...

Additional context
Similar problem exists for type-system-descriptor detection in uimaFIT.