Thanks, is there a way to check what type system the AS service uses?
MyAnnotation is declared in the capabilities section of the aggregate descriptor of the service (AS primitive, made from merging a few PEARS). The type system itself (its XML definition) is imported in the separate AE descriptors, which works without problems in other settings (e.g. deploying the aggregate PEAR through SimpleServer).
Jens On 12/16/2010 02:44 PM, Eddie Epstein wrote:
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
