When the UIMA AS Client is initialized the type system for its casPool comes from that of the remote service, optionally merged with that of the registered collection reader if there is one. MyAnnotation will have to be defined in one of those two to be in the CAS definition.
Eddie On Thu, Dec 16, 2010 at 7:02 AM, David García <[email protected]> wrote: > Hi, > > I am modifying RunRemoteAsyncAE.java. What I'd like to do is to make an > annotation in the Cas. > In the case of an empty Cas: > > CAS cas = uimaEEEngine.getCAS(); > > I want to send a default text: > > cas.setDocumentText("Some text to send to AS service."); > > and create an annotation: > > MyAnnotation ma = new MyAnnotation(cas.getJCas()); > > But I get "JCas type "MyAnnotation" used in Java code, but was not > declared in the XML type descriptor" > > > The Java implementation of the annotation is found, as it is defined, but as > it isn't a UIMA Analisys Engine, it hasn't access to the type system of the > pipeline. > How should I solve this issue? > > > Regards, > David >
