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 525A5200BD4 for ; Fri, 16 Dec 2016 13:44:31 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 50EC5160B32; Fri, 16 Dec 2016 12:44:31 +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 7344B160AF6 for ; Fri, 16 Dec 2016 13:44:30 +0100 (CET) Received: (qmail 45446 invoked by uid 500); 16 Dec 2016 12:44:29 -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 45435 invoked by uid 99); 16 Dec 2016 12:44:29 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Dec 2016 12:44:29 +0000 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 1BDAFC036D for ; Fri, 16 Dec 2016 12:44:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.699 X-Spam-Level: * X-Spam-Status: No, score=1.699 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, KAM_ASCII_DIVIDERS=0.8, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id N1EVY_76JC9R for ; Fri, 16 Dec 2016 12:44:28 +0000 (UTC) Received: from mail-pf0-f177.google.com (mail-pf0-f177.google.com [209.85.192.177]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id D15DA61F17 for ; Fri, 16 Dec 2016 12:44:27 +0000 (UTC) Received: by mail-pf0-f177.google.com with SMTP id c4so14562587pfb.1 for ; Fri, 16 Dec 2016 04:44:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:date:subject:message-id :references:in-reply-to:to; bh=5OWQgXZ6gsAB6i8TKh5ONPp7De4mkl3V1elIzx6oTQs=; b=PKPN2/I/D0PD93Na176gp6Iau89oqrV25MNv1UYNFapbsxUD3TqLmfB4pfAFcivcN+ 1JIzcKTgFryp8IOT1g9l/QqVWodwK0J6shEtGs3XZxCArp8p+jK0Gfc/WGLA8VGqVs2o sT0MncPFYGEXuOag38imAgeJRZHPwtQ7DHHdz6Vbm7jFVQG/oMKBeo+jNB3GHl6R/r1o ck/otsH8B49u5+kEDdRBz0vPx/RowrC58hErPJYvjB2YF6qpYxdLpQPMdFN6wVx7AQ/3 I1ETks1DF6NiI953ZRoyP9tQCpb/1alCysGFB6jn6cCTanrXz81XrY71tIdTFXsvqF2r fsSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version:date :subject:message-id:references:in-reply-to:to; bh=5OWQgXZ6gsAB6i8TKh5ONPp7De4mkl3V1elIzx6oTQs=; b=gSmY1VDHkTGDsaixFkhZLuWZmx0wHw7geQyUnASJzniHq6PpVAif0c44kh2CFBxSyd EwJTtIbdzT4LZDz7RtZVf0rGXLE+p/gFYxEnbwZN4SGXF5WFeZvYe6wEK9x4vGRBaOUh s3QZ0vWLWz/Xj5l0atwCH61cDvN5IUpxbDDUXPfwuE8sIcV9lFKwYCeQcho8RO1NaOew i0Alv8ALsouCjrT5KcUAuLoZx4ZoJrQlTz3PNVtdi2U6sI/vs9jHzBFVbsazgNRxRwfm 2qqCVYwN4Ru+sKzY5LjoEgIZpTvJW56pldIhckLmAgatv55JlcUjw6sLJZoMybums1X3 Fb6g== X-Gm-Message-State: AKaTC01KE3wwv+D1JT2fsdARk8LIxN9t+8/zTgIx5oqF1GCFyO1rmk9oce8/bqAKiQZF9Q== X-Received: by 10.84.143.162 with SMTP id 31mr6657952plz.2.1481892266818; Fri, 16 Dec 2016 04:44:26 -0800 (PST) Received: from [10.97.188.108] (pw126254198241.8.panda-world.ne.jp. [126.254.198.241]) by smtp.gmail.com with ESMTPSA id 1sm11987602pgp.1.2016.12.16.04.44.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Dec 2016 04:44:26 -0800 (PST) From: Remko Popma Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Date: Fri, 16 Dec 2016 21:44:19 +0900 Subject: Re: Generating Extended Loggers command fails with NoClassDefFoundError Message-Id: References: <3AB5747D-9A63-44EF-A973-6C085AF3FAAB@gmail.com> In-Reply-To: To: Log4J Users List X-Mailer: iPhone Mail (14B100) archived-at: Fri, 16 Dec 2016 12:44:31 -0000 Ah, sorry, I overlooked your email.=20 Glad you got it working.=20 We'll revert the change that introduced the dependency on log4j-api, that sh= ould not be necessary.=20 Sent from my iPhone > On 16 Dec 2016, at 18:02, "sbiradar75@gmail.com" wro= te: >=20 > It was missing the api jar, and I got it working now. Thanks! >=20 >> On 2016-12-16 03:43 (-0500), "sbiradar75@gmail.com"= wrote:=20 >> Its on the path, and btw am running from the -bin folder, and the command= is same as whats gien an example on the webpage, v2.7, and I'm running on m= ac: >> java -cp log4j-core-2.7.jar 'org.apache.logging.log4j.core.tools.Generate= $ExtendedLogger' \ >> com.mycomp.ExtLogger DIAG=3D350 NOTICE=3D450 VERBOSE=3D550 > com/m= ycomp/ExtLogger.java >>=20 >> Thanks. >>=20 >>> On 2016-12-15 17:36 (-0500), Remko Popma wrote:=20= >>> Hi, >>>=20 >>> The tool didn't use to require the log4j-api on the classpath. Not sure= what happened there, apologies.=20 >>>=20 >>> For now please try to generate again with both the api and the core jars= in the classpath.=20 >>>=20 >>> Remko >>>=20 >>> Sent from my iPhone >>>=20 >>>> On 16 Dec 2016, at 3:16, Gary Gregory wrote: >>>>=20 >>>> The api or core jar on the classpath? >>>>=20 >>>> Gary >>>>=20 >>>> On Dec 15, 2016 8:59 AM, "sbiradar75@gmail.com" >>>> wrote: >>>>=20 >>>>> Hi, >>>>>=20 >>>>> I tried to create an extended logger with the command provided at the >>>>> below page, but it failed with - Exception in thread "main" java.lang.= NoClassDefFoundError: >>>>> org/apache/logging/log4j/util/Strings >>>>> URL - http://logging.apache.org/log4j/2.0/manual/customloglevels.html#= >>>>> CustomLoggers >>>>>=20 >>>>> Am I missing something? >>>>>=20 >>>>> Thanks. >>>>>=20 >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org >>>>> For additional commands, e-mail: log4j-user-help@logging.apache.org >>>>>=20 >>>>>=20 >>>=20 >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org >>> For additional commands, e-mail: log4j-user-help@logging.apache.org >>>=20 >>>=20 >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org >> For additional commands, e-mail: log4j-user-help@logging.apache.org >>=20 >>=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org > For additional commands, e-mail: log4j-user-help@logging.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org