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 B19C6200CFE for ; Fri, 8 Sep 2017 17:05:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B0697160CC7; Fri, 8 Sep 2017 15:05:00 +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 0198C160CB2 for ; Fri, 8 Sep 2017 17:04:59 +0200 (CEST) Received: (qmail 1180 invoked by uid 500); 8 Sep 2017 15:04:58 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 1169 invoked by uid 99); 8 Sep 2017 15:04:57 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Sep 2017 15:04:57 +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 2F51C1A78B8 for ; Fri, 8 Sep 2017 15:04:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.901 X-Spam-Level: X-Spam-Status: No, score=-0.901 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id T3mMKtWJ4tFI for ; Fri, 8 Sep 2017 15:04:54 +0000 (UTC) Received: from mail-vk0-f44.google.com (mail-vk0-f44.google.com [209.85.213.44]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id A544060CE6 for ; Fri, 8 Sep 2017 15:04:53 +0000 (UTC) Received: by mail-vk0-f44.google.com with SMTP id o22so3727798vke.1 for ; Fri, 08 Sep 2017 08:04:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=bAIHEOxBb7b8Iprp7Kl2dORFW4+6E/dKZJnHKwza0nU=; b=Zjq1EJ/JDzLzzgMl4eOSV7YKbSyh8FwNqtqGqt3DB/4jMBkTBbTPBCEyL3LeuoqQlO 3pL7PEn1WZXch5cjB1Z/zoOjeuvYe3IIFL+XHexYhguJCVeNzcGp+tgdRdtyYDYSEsNk V3jTd1sY5qNlfwdqyUda6cUVluHBaTtc9ARhYFJmZi6rdtHSfUoNTWNA/Ll6bVPmcSnz Q9A0wSF9E8WBTOmIiqc4kNMI5fu6gmxYderWrMWVi4CZr7lmRJV0Se3w9SIMlsgWfb9A Jf5bXFAszuPSLM54LdU68nuQIwQOV4+GH4uEnJsBZSc6R304co90erEkG6DVqxqAAT2P aayQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=bAIHEOxBb7b8Iprp7Kl2dORFW4+6E/dKZJnHKwza0nU=; b=IqFvl9eMpbMRmHQ1/gtPP368okygDv6ICpvM2fE4S2BdxShj9pvsD0oaO+lCHH3W9q MjuhjDJHXgojefUTFFEQnnAl/17rmXMqaiQzPyRAsBu/3sIPD9nMuhavfLF9LDumNQ4S DmFjgWhRf8o9ZhErPzaZUOpMzUSnsosmJ5kUnSchllE6Ij0eqKo4odQMeqpjnQRRJaHM A9aRbsLr9aq47Leg+COtp8cx7fnYFnzQNSJMWy3yqLzuyfmOiZLiWnIEEPF++dg/o8Hg hRpExXtwqxm4HHLvgCOwpEiB5cFvXdsoTmf0YtClnyYYWMTOOZ3ktGCUJZAp0hC4NQmd A5gQ== X-Gm-Message-State: AHPjjUg8arUoYMAuxrYRzbWXwqb8CAlPIt4l203AHg+mCGwy2NfbVx3S aWzhVVfh6boJedCnWOiS2NYV1xlOnq4x X-Google-Smtp-Source: AOwi7QCWubTglwawjVzojK7++23NXaXkjbi71bQ3Myw1F0SwzZroqLUiN2ojr1WIpLjRF/vRQPvHHuqz00KEF04srR4= X-Received: by 10.31.230.129 with SMTP id d123mr1919904vkh.64.1504883092385; Fri, 08 Sep 2017 08:04:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.6.69 with HTTP; Fri, 8 Sep 2017 08:04:51 -0700 (PDT) In-Reply-To: References: From: Matt Sicker Date: Fri, 8 Sep 2017 10:04:51 -0500 Message-ID: Subject: Re: Plugins.dat file not packing with jar for OSGi bundle To: Log4J Users List Content-Type: multipart/alternative; boundary="94eb2c0949162688930558aee61f" archived-at: Fri, 08 Sep 2017 15:05:00 -0000 --94eb2c0949162688930558aee61f Content-Type: text/plain; charset="UTF-8" Thanks for the update! This may be useful to add to the manual. https://issues.apache.org/jira/browse/LOG4J2-2040 On 8 September 2017 at 01:11, Asma Zinneera Jabir wrote: > Solved this. > > The resources aren't packed to the bundle by default. I used > to pack the resources. You can refer Apache Felix Maven > Bundle Plugin (BND) Documentation > apache-felix-maven-bundle-plugin-bnd.html> > Added the following line after > > ${project.build.directory}/classes/ > > > On Fri, Sep 8, 2017 at 10:18 AM, Matt Sicker wrote: > > > Sounds like this could be a bug with the maven-bundle-plugin. Have you > > tried bnd-maven-plugin? > > > > Also, chances are there could be some ClassLoader issues anyways > > considering all the log4j-core imports we've added to log4j-api to fix > > similar issues. If you have issues with that, a bug report would be > great. > > > > On 7 September 2017 at 13:11, Asma Zinneera Jabir > > wrote: > > > > > I want to create an osgi bundle with custom appenders in it and tried > > with > > > creating a simple maven project. The Plugins.dat file gets packed in > the > > > jar with the simple maven pom. When I add the apache felix plugin and > > > change packaging to bundle to make it an OSGI bundle the Plugins.dat > > does > > > not get packed. The pom elements I used to convert it to an OSGI > > > bundle is as below. > > > > > > bundle and > > > > > > > > > org.apache.felix > > > maven-bundle-plugin > > > 3.0.1 > > > true > > > > > > > > > ${project.artifactId} > > SymbolicName> > > > ${project.artifactId} > > > 1.0.0 > > > com.example.host.bundle > > > > > > com.example.log4j2.plugins.* > > > > > > > > > *;resolution:=optional > > > > > > > > > !com.example.log4j2.plugins.* > > > > > > > > > > > > > > > > > > > > > > > -- > > Matt Sicker > > > -- Matt Sicker --94eb2c0949162688930558aee61f--