Return-Path: Delivered-To: apmail-uima-user-archive@www.apache.org Received: (qmail 64821 invoked from network); 24 Apr 2010 15:48:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Apr 2010 15:48:03 -0000 Received: (qmail 30878 invoked by uid 500); 24 Apr 2010 15:48:03 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 30817 invoked by uid 500); 24 Apr 2010 15:48:02 -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 30808 invoked by uid 99); 24 Apr 2010 15:48:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Apr 2010 15:48:02 +0000 X-ASF-Spam-Status: No, hits=4.4 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tong.fin2@gmail.com designates 209.85.160.175 as permitted sender) Received: from [209.85.160.175] (HELO mail-gy0-f175.google.com) (209.85.160.175) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Apr 2010 15:47:55 +0000 Received: by gya1 with SMTP id 1so5086011gya.6 for ; Sat, 24 Apr 2010 08:47:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=7m5KcA11x+8tDInTitSZSTDqw1SlnTuEpQuZUFTIQxI=; b=QZ1izw5925PmfWbNGVDTLk8mJZQBqZlRGeVlPZHGSR111uYMzVZ5BNwI7ihXh1y3yQ jpoxqZLTnPcy3aLPAEVsa/WkWKxLnZEs/hVoxDEiyfftvefwgoNu70yux1y0HanTVWdW HN1IwUjou2t/wZseqNtBhgfQu1hLkATsyCuOY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=pX+QU4aw8OYC+g7LpuOIDW86c4Ye9BeQnb8wV+F7PsR2lZnpfokYVd5ebruchGbei1 FZTepmD3nE8muIgmnqyUb8Fgg04SZokIOWM1264mE1y3bf6PZixDdNfEg8j8vBnhmW1N nQWhkgwyZmpn0WO7ZgweKJIZMqSACMlJc7olk= MIME-Version: 1.0 Received: by 10.150.56.27 with SMTP id e27mr1767573yba.81.1272124054038; Sat, 24 Apr 2010 08:47:34 -0700 (PDT) Received: by 10.151.84.15 with HTTP; Sat, 24 Apr 2010 08:47:33 -0700 (PDT) In-Reply-To: References: Date: Sat, 24 Apr 2010 11:47:33 -0400 Message-ID: Subject: Re: ResourceAccessException by using getResourceFilePath in Eclipse Plug-In From: Tong Fin To: user@uima.apache.org Content-Type: multipart/alternative; boundary=000e0cd5c89259e8240484fd7669 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd5c89259e8240484fd7669 Content-Type: text/plain; charset=ISO-8859-1 Kai, Is your plugin a compressed jar (like com.myconpany.myplugin.jar) or a folder ? If the plugin is a jar and you try to read a file from the path, it might not work. -- Tong On Sat, Apr 24, 2010 at 6:56 AM, Kai Schlamp wrote: > Hello. > > I already asked a similiar question about a year ago. But I never solved > that > problem. Maybe there is a solution in the meantime or just did overlook > something at that time. > > My UIMA analysis engine can also be run inside the Eclipse environment as > an > Eclipse Plug-in. The problem is that I have to get the absolute path of > some > resource (for an integrated third party library). > > This is works correctly, but I don't need a stream: > getContext().getResourceAsStream("resource") > > But this doesn't work (throws an ResourceAccessException): > getContext().getResourceFilePath("resource") > > And yes ... I already use: Eclipse-RegisterBuddy: org.apache.uima.runtime > and "resource" is on the classpath (that is why the first method call > works). > > Any suggestions? > > Regards, > Kai > > --000e0cd5c89259e8240484fd7669--