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 8274418731 for ; Sun, 2 Aug 2015 12:49:13 +0000 (UTC) Received: (qmail 35788 invoked by uid 500); 2 Aug 2015 12:49:13 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 35725 invoked by uid 500); 2 Aug 2015 12:49:13 -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 35713 invoked by uid 99); 2 Aug 2015 12:49:12 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2015 12:49:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 4C8AB1A9510 for ; Sun, 2 Aug 2015 12:49:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.879 X-Spam-Level: ** X-Spam-Status: No, score=2.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=googlemail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id SNsKkfRuAD-W for ; Sun, 2 Aug 2015 12:49:11 +0000 (UTC) Received: from mail-ig0-f173.google.com (mail-ig0-f173.google.com [209.85.213.173]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 2D8D442E74 for ; Sun, 2 Aug 2015 12:49:11 +0000 (UTC) Received: by iggf3 with SMTP id f3so41318419igg.1 for ; Sun, 02 Aug 2015 05:48:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=z9oy/KZYeMd3168QGU5cyqgJVSYFjrsZVfg+SqZIARU=; b=NPZId18WV/uWJLWxcBwEAKLvGBwicZq7EbjBcnmKCbLNb7q4TbQIs2muAcQkUcM7L8 WS3QkDiPk7t3uznLPiSH+YNoTjcFBtUgIfrJJx9X6bEfOKG0SO09d3ScIhCgwONBTgA7 BACUbP75696tlqKf81Cp3FrjDrBx3Ss9n8+w8VG59EeE3MJdnQ5nyEeUsK/+TTSmd/tr N7JBisDohdXSiHJmGsOTKEA7MsQEnYyGRKW8GQGU7/IPEU9wIoKH9wy+qL/2/jsR8swG yMvI7g8XoMD3/2tSOtfR3GkS3A44sB11y/vi5YLWjGrhKo+5y7W8c9NOf+qrXNgMOBjp 2X2g== MIME-Version: 1.0 X-Received: by 10.50.60.68 with SMTP id f4mr17223725igr.94.1438519705777; Sun, 02 Aug 2015 05:48:25 -0700 (PDT) Received: by 10.64.107.1 with HTTP; Sun, 2 Aug 2015 05:48:25 -0700 (PDT) Date: Sun, 2 Aug 2015 14:48:25 +0200 Message-ID: Subject: ResourceInitializationException: The class doesn't implement org.apache.uima.resource.SharedResourceObject From: Sergii Poluektov To: user@uima.apache.org Content-Type: multipart/alternative; boundary=089e0160b63e10bb51051c5378d0 --089e0160b63e10bb51051c5378d0 Content-Type: text/plain; charset=UTF-8 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 --089e0160b63e10bb51051c5378d0--