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 15C28186A9 for ; Thu, 13 Aug 2015 13:39:38 +0000 (UTC) Received: (qmail 63355 invoked by uid 500); 13 Aug 2015 13:38:39 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 63320 invoked by uid 500); 13 Aug 2015 13:38:39 -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 63298 invoked by uid 99); 13 Aug 2015 13:38:39 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Aug 2015 13:38:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id E75C6DD5DB for ; Thu, 13 Aug 2015 13:38:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.5 X-Spam-Level: ** X-Spam-Status: No, score=2.5 tagged_above=-999 required=6.31 tests=[RDNS_NONE=2.5] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id WgVXtv-nuxZr for ; Thu, 13 Aug 2015 13:38:29 +0000 (UTC) Received: from spamd3-us-west.apache.org (unknown [209.188.14.142]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTP id 28CF339FE3 for ; Thu, 13 Aug 2015 10:14:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 7338819ADCE for ; Thu, 13 Aug 2015 10:14:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id UGPRLDh98Iz3 for ; Thu, 13 Aug 2015 10:14:25 +0000 (UTC) Received: from spamd1-us-west.apache.org (unknown [209.188.14.142]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id 1F6F631C5B for ; Thu, 13 Aug 2015 09:33:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id CCCFFDD31E for ; Thu, 13 Aug 2015 09:33:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 4v7V_L0j5HGp for ; Thu, 13 Aug 2015 09:33:03 +0000 (UTC) Received: from spamd3-us-west.apache.org (unknown [209.188.14.142]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id 564393471A for ; Thu, 13 Aug 2015 09:16:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 0DA69187DAA for ; Thu, 13 Aug 2015 09:16:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Lgrg-USZjXkm for ; Thu, 13 Aug 2015 09:16:38 +0000 (UTC) Received: from spamd4-us-west.apache.org (unknown [209.188.14.142]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id B04CF5184C for ; Thu, 13 Aug 2015 08:57:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 38D3AC0718 for ; Thu, 13 Aug 2015 08:57:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id GjrB4QGsLTJr for ; Thu, 13 Aug 2015 08:57:46 +0000 (UTC) Received: from spamd1-us-west.apache.org (unknown [209.188.14.142]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTP id ABC5A25485 for ; Thu, 13 Aug 2015 06:52:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 0EF8BDD217 for ; Thu, 13 Aug 2015 06:52:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id OWv-xAUW5Vti for ; Thu, 13 Aug 2015 06:52:51 +0000 (UTC) Received: from spamd4-us-west.apache.org (unknown [209.188.14.142]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTP id 9E29A26E64 for ; Thu, 13 Aug 2015 06:43:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id C6368C12DC for ; Thu, 13 Aug 2015 06:43:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 2JZcc_nOBBJc for ; Thu, 13 Aug 2015 06:43:39 +0000 (UTC) Received: from spamd3-us-west.apache.org (unknown [209.188.14.142]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTP id 30D9836B89 for ; Wed, 12 Aug 2015 22:11:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 7FE69183970 for ; Wed, 12 Aug 2015 22:10:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 5-C7Ay-R-7fM for ; Wed, 12 Aug 2015 22:10:49 +0000 (UTC) Received: from gateway22.websitewelcome.com (gateway22.websitewelcome.com [192.185.47.79]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id CD15234C31 for ; Wed, 12 Aug 2015 22:01:39 +0000 (UTC) Received: by gateway22.websitewelcome.com (Postfix, from userid 500) id 9CF74DB3D6803; Wed, 12 Aug 2015 17:01:32 -0500 (CDT) Received: from gator3253.hostgator.com (gator3253.hostgator.com [198.57.247.217]) by gateway22.websitewelcome.com (Postfix) with ESMTP id 8D1E4DB3D67B1 for ; Wed, 12 Aug 2015 17:01:32 -0500 (CDT) Received: from [129.34.20.19] (port=44838 helo=[9.2.54.162]) by gator3253.hostgator.com with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1ZPe5U-0009yw-2r for user@uima.apache.org; Wed, 12 Aug 2015 17:01:32 -0500 Subject: Re: ResourceInitializationException: The class doesn't implement org.apache.uima.resource.SharedResourceObject To: user@uima.apache.org References: From: Marshall Schor Message-ID: <55CBC23D.9090302@schor.com> Date: Wed, 12 Aug 2015 18:01:33 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3253.hostgator.com X-AntiAbuse: Original Domain - uima.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - schor.com X-BWhitelist: no X-Source-IP: 129.34.20.19 X-Exim-ID: 1ZPe5U-0009yw-2r X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([9.2.54.162]) [129.34.20.19]:44838 X-Source-Auth: msa+schor.com X-Email-Count: 1 X-Source-Cap: bWlzY2hvcjttaXNjaG9yO2dhdG9yMzI1My5ob3N0Z2F0b3IuY29t There's an easy fix (maybe!). The PEAR's classpath cannot contain the UIMA framework classes; I'm guessing that it does. So - just remove uima-core (?) from the set of Jars in the PEAR's classpath, and this will fix it. Let me know if this works! -Marshall On 8/2/2015 8:48 AM, Sergii Poluektov wrote: > Hello Everyone, > > i am trying to develop a simple analysis engine component which should make > use of an > external resource.I followed the example 6 from the UIMA tutorials and my > tests run without any > problems: The external resource is loaded, the analysis engine uses the > information stored in > the external resource and produces correct output. > > However, after I packed the the component into a PEAR and then tried to > install it, the verification process > throws the ResourceInitializationException, saying that my external > resource implementation class > does not implement the org.apache.uima.resource.SharedResourceObject (even > though it does). > > The fragment in the code where the error is thrown is in > org.apache.uima.resource.impl.ResourceManager_impl.java line 607. > During the debugging I could figure out that if the Application ClassLoader > is used (this is the case when > instantiating the component) to load the external resource implementation > class, then there is no error. > However when the UIMA extension ClassLoader is used then the error is > thrown(this is the case when > verifying the component). > > I also checked that all the needed jars are included and that the class > path is correct. > > Thanks in advance for your help. > > Cheers, > Sergii >