Return-Path: X-Original-To: apmail-felix-commits-archive@www.apache.org Delivered-To: apmail-felix-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D0437D868 for ; Tue, 14 May 2013 06:49:07 +0000 (UTC) Received: (qmail 28524 invoked by uid 500); 14 May 2013 06:49:07 -0000 Delivered-To: apmail-felix-commits-archive@felix.apache.org Received: (qmail 28370 invoked by uid 500); 14 May 2013 06:49:06 -0000 Mailing-List: contact commits-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list commits@felix.apache.org Received: (qmail 28341 invoked by uid 99); 14 May 2013 06:49:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 May 2013 06:49:05 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 May 2013 06:49:04 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 82C6F2388847; Tue, 14 May 2013 06:48:44 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1482228 - /felix/site/trunk/content/documentation/faqs/apache-felix-scr-plugin-faq.mdtext Date: Tue, 14 May 2013 06:48:44 -0000 To: commits@felix.apache.org From: cziegeler@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130514064844.82C6F2388847@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: cziegeler Date: Tue May 14 06:48:44 2013 New Revision: 1482228 URL: http://svn.apache.org/r1482228 Log: CMS commit to felix by cziegeler Modified: felix/site/trunk/content/documentation/faqs/apache-felix-scr-plugin-faq.mdtext Modified: felix/site/trunk/content/documentation/faqs/apache-felix-scr-plugin-faq.mdtext URL: http://svn.apache.org/viewvc/felix/site/trunk/content/documentation/faqs/apache-felix-scr-plugin-faq.mdtext?rev=1482228&r1=1482227&r2=1482228&view=diff ============================================================================== --- felix/site/trunk/content/documentation/faqs/apache-felix-scr-plugin-faq.mdtext (original) +++ felix/site/trunk/content/documentation/faqs/apache-felix-scr-plugin-faq.mdtext Tue May 14 06:48:44 2013 @@ -26,12 +26,13 @@ During a SCR plugin run, a syntax error ## NoClassDefFoundError during build -If the javadoc tags are used (and not the annotations) then the QDox library is used to parse/introspect the java class. For this the classes have to be loaded and static fields have to be initialized. If you have have for example something like +This error might happen with older versions of the Maven SCR Plugins in combination with javadoc tags or newer versions in combination with the annotations. +In both cases, the scanned classes have to be loaded and static fields have to be initialized. If you have have for example something like :::java private static final org.slf4f.Logger LOGGER = org.slf4j.LoggerFactory.getLogger("name"); -in your code, during the plugin run, a slf4j logger is tried to instantiated. This requires an implementation of the logger. Ususally your module only depends on the slf4j API and therefore a +in your code, during the plugin run, a slf4j logger is tried to be instantiated. This requires an implementation of the logger. Ususally your module only depends on the slf4j API and therefore a :::plaintext java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder @@ -55,3 +56,4 @@ In these cases you should add a dependen ... +or in the special case of slf4j, using slf4j API 1.6 or higher solves the problem as well \ No newline at end of file