Return-Path: X-Original-To: apmail-uima-user-archive@www.apache.org Delivered-To: apmail-uima-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F36FE9BCC for ; Fri, 2 Mar 2012 16:04:50 +0000 (UTC) Received: (qmail 18312 invoked by uid 500); 2 Mar 2012 16:04:50 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 18285 invoked by uid 500); 2 Mar 2012 16:04:50 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 18277 invoked by uid 99); 2 Mar 2012 16:04:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2012 16:04:50 +0000 X-ASF-Spam-Status: No, hits=0.9 required=5.0 tests=RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gcaug-uima-user@m.gmane.org designates 80.91.229.3 as permitted sender) Received: from [80.91.229.3] (HELO plane.gmane.org) (80.91.229.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2012 16:04:41 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S3Uxq-0004Vw-Vl for user@uima.apache.org; Fri, 02 Mar 2012 17:04:14 +0100 Received: from 84.88.76.136 ([84.88.76.136]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Mar 2012 17:04:14 +0100 Received: from j+asf by 84.88.76.136 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Mar 2012 17:04:14 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: user@uima.apache.org From: Jens Grivolla Subject: ConceptMapper: tokenizer doesn't get PEAR classpath Date: Fri, 02 Mar 2012 17:03:57 +0100 Lines: 24 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 84.88.76.136 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111108 Lightning/1.0b2 Thunderbird/3.1.16 X-Virus-Checked: Checked by ClamAV on apache.org Hi, when using the ConceptMapper from addons as a PEAR we are having classpath problems. The ConceptMapper launches a tokenizer AE using its XML descriptor, but at that point the classpath set from the PEAR does not get used. This means that it is impossible to point to a tokenizer packaged together with the CM based AE, or it is at least necessary to add the tokenizer classes (or jar) as well as all of its dependencies to the global classpath. It all seems to come down to (AnnotatorAdapter.java:97): ae = UIMAFramework.produceAnalysisEngine(aeSpecifier); But I don't see why the classpath that is used by the ConceptMapper would not apply here. It must have to do with how the classpath is adjusted "locally" for PEARs instead of being global to the whole JVM, but I haven't been able to figure it out yet. Any ideas? Thanks, Jens