Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id CB2F1200CC5 for ; Tue, 11 Jul 2017 16:48:39 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C9E00166120; Tue, 11 Jul 2017 14:48:39 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 200D016611F for ; Tue, 11 Jul 2017 16:48:38 +0200 (CEST) Received: (qmail 28566 invoked by uid 500); 11 Jul 2017 14:48:38 -0000 Mailing-List: contact users-help@ace.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@ace.apache.org Delivered-To: mailing list users@ace.apache.org Received: (qmail 28501 invoked by uid 99); 11 Jul 2017 14:48:35 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2017 14:48:35 +0000 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 73C5F195E54 for ; Tue, 11 Jul 2017 14:48:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.001 X-Spam-Level: X-Spam-Status: No, score=-3.001 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id XTSTyODEQUTv for ; Tue, 11 Jul 2017 14:48:33 +0000 (UTC) Received: from ipo1.ise.fhg.de (ipo1.ise.fhg.de [153.96.32.67]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id CBA8E629B8 for ; Tue, 11 Jul 2017 12:20:25 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.40,346,1496102400"; d="scan'208,217";a="18307139" Received: from exmail1.ise.fhg.de (HELO smtphost.ise.fraunhofer.de) ([192.168.227.11]) by ipo1.ise.fhg.de with ESMTP/TLS/AES128-SHA; 11 Jul 2017 12:20:19 +0000 Received: from x0025.ise.fhg.de ([172.18.12.53]) by smtphost.ise.fraunhofer.de with esmtp (Exim 4.84_2) (envelope-from ) id 1dUu9J-0006lZ-C1 for users@ace.apache.org; Tue, 11 Jul 2017 14:20:17 +0200 Reply-To: simon.huebner@ise.fraunhofer.de From: Simon Huebner Organization: ISE Fraunhofer To: users@ace.apache.org Subject: Problem with ArtifactRecognizer for custom artifacts Message-ID: <5dc8174f-83c9-228d-39e2-026af0186db8@ise.fraunhofer.de> Date: Tue, 11 Jul 2017 14:20:17 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------7A3E11DF5915C1AC287C240B" archived-at: Tue, 11 Jul 2017 14:48:40 -0000 --------------7A3E11DF5915C1AC287C240B Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hello, i am currently trying to add an resource processor for an custom artifact, following the docs (they are outdated) under: https://ace.apache.org/docs/adding-custom-artifact-types.html I written a bundle with an Activator and a class implements ArtifactRecognizer, ArtifactHelper. Currently we are running an ACE 2.1.0 allinone server. The bundle was installed and started over the gogo shell. If i add a custom artifact over the ui, it seams the recognizer is not called for a custom artifact. None off my debug outputs where logged. ACE shows an error: "Artifact <> not recognized!" I think I'm doing something wrong in the Activator, here is the start method: @Override public void start(BundleContext context) throws Exception { String[] services = {ArtifactRecognizer.class.getName(), ArtifactHelper.class.getName()}; MyArtifactHelper recognizer = new MyArtifactHelper(); Hashtable properties = new Hashtable(); properties.put(ArtifactObject.KEY_MIMETYPE, MyArtifactHelper.MIMETYPE); context.registerService( services, recognizer, properties ); } I have a processor as well, but as i understand this is not necessary at these place. Can anyone help me, or has a guide with more details? Kind regards, Simon -- Simon Huebner, B.Sc. Information Technology Fraunhofer-Institut für Solare Energiesysteme ISE Heidenhofstrasse 2, 79110 Freiburg, Germany Phone: +49(0)761/4588-5695 Fax: +49(0)761/4588-9123 simon.huebner@ise.fraunhofer.de http://www.ise.fraunhofer.de --------------7A3E11DF5915C1AC287C240B--