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 8BCC7200ACA for ; Thu, 9 Jun 2016 18:49:34 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8A8CA160A58; Thu, 9 Jun 2016 16:49:34 +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 D16F4160A29 for ; Thu, 9 Jun 2016 18:49:33 +0200 (CEST) Received: (qmail 80660 invoked by uid 500); 9 Jun 2016 16:49:27 -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 80649 invoked by uid 99); 9 Jun 2016 16:49:27 -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; Thu, 09 Jun 2016 16:49:27 +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 757FD1805B3 for ; Thu, 9 Jun 2016 16:49:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-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 gGooN5ygKbdX for ; Thu, 9 Jun 2016 16:49:26 +0000 (UTC) Received: from mail-qk0-f173.google.com (mail-qk0-f173.google.com [209.85.220.173]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 1C9F45F19B for ; Thu, 9 Jun 2016 16:49:26 +0000 (UTC) Received: by mail-qk0-f173.google.com with SMTP id i187so23885644qkd.3 for ; Thu, 09 Jun 2016 09:49:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=rtWBZvpsY+vVliDxLpRuEuTO3ldVY5NBU5hLtFuhjO4=; b=Hm7l3U3UhRN5qEjki2e2dxGehaH4ydhklK+kTg2rOnR1ktZtdnwCxdjEOBxi65/LNH YCBVvryvjIjq1IlSFwVqpGRueQvT9VUaF2wCgDS+fdjI24ZdO64+7j1yB5A9SYfbZ6et sNHrUgP20tTp3zFsvKG9W997Ehw7PVxzmH7khnjSVVfWcdYg+IJjIkuHJqJTg3tnA7pU QBPZOVUow+frnarB04krSML3Vv6JTg+Bdty+zaasojT8QYU6CG3U+X5jeCjLrV1/Hb00 ktFUXRZPXRoXfXydZB1yQgHzoZACd+VZevM14WSOPCSMCvm/4WAsbi2cL+qQBmvZMKqj lDPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=rtWBZvpsY+vVliDxLpRuEuTO3ldVY5NBU5hLtFuhjO4=; b=dy48zCULnOb1GWzZIFRH27oqD+nR953G0a/17c9dnbznHRkRmqr/TZ+Ro0+F7q21QB ewpHUXhd+MFkU60Eb7+vFv2CWkr5zwLf+TwjadDDNRpMwHBsIb0UicoozgSvemnh/Ip8 vDDCBLZcIx5INs3zyOYQJ73wS+iCY6gyDKtafPZWCZTofpmwskT6iwVdqNxviCChj9Cv kFcWYw48Q+YkOS7wRj0loArUO534ZKwm7qELIA8gzYreUJuqizmRzxfrg5Mj21P3lJ+j YKpwQ17PEoD9mWyRrhoRGUXIH1XK5CAr47hn3W3BZgD5qR1XOBbzzZw46jmm39+c54wJ 6IpA== X-Gm-Message-State: ALyK8tJpfQq9zW/9yNA8dA+BeIHnFzUIDjuplSXl/Lxu+3KiIX4xN8u2hokncfsDeuy56lyOc1IE89ZhGjhI5g== X-Received: by 10.55.149.135 with SMTP id x129mr11416856qkd.140.1465490959044; Thu, 09 Jun 2016 09:49:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.57.164 with HTTP; Thu, 9 Jun 2016 09:49:18 -0700 (PDT) From: Anthony Maire Date: Thu, 9 Jun 2016 18:49:18 +0200 Message-ID: Subject: Cannot load custom plugin with the "packages" configuration property when packaged in a jar file To: log4j-user@logging.apache.org Content-Type: multipart/alternative; boundary=94eb2c08853c0916810534db34a3 archived-at: Thu, 09 Jun 2016 16:49:34 -0000 --94eb2c08853c0916810534db34a3 Content-Type: text/plain; charset=UTF-8 Hello I'm trying to test some custom filters/layout with an existing application. When I use them in a dummy test application launched from eclipse, everything if fine, they are correctly loaded if I specify a "packages" property in the configuration However, when packaging the plugin classes in a jar file to run with the real applications, they are not loaded, cf this log with status="trace" I made another test: I removed the plugins source from my eclipse, and run the dummy application that was working with the jar file in the classpath, the plugins are not loaded too. I made sure that the jar is in the classpath: the dummy application starts with a Class.forName() on one of the plugin classes and it does succeed ... 2016-06-09 17:50:18,488 main DEBUG Installed script engines 2016-06-09 17:50:23,998 main DEBUG Oracle Nashorn Version: 1.8.0_45, Language: ECMAScript, Threading: Not Thread Safe, Compile: true, Names: {nashorn, Nashorn, js, JS, JavaScript, javascript, ECMAScript, ecmascript} 2016-06-09 17:50:24,013 main DEBUG Took 0,007874 seconds to load 0 plugins from package com.***.util.logging.log4j Any idea ? Regards, Anthony --94eb2c08853c0916810534db34a3--