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 60456D878 for ; Tue, 14 May 2013 06:49:23 +0000 (UTC) Received: (qmail 34393 invoked by uid 500); 14 May 2013 06:49:23 -0000 Delivered-To: apmail-felix-commits-archive@felix.apache.org Received: (qmail 34364 invoked by uid 500); 14 May 2013 06:49:23 -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 34356 invoked by uid 99); 14 May 2013 06:49:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 May 2013 06:49:23 +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:20 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 41D4C23889ED for ; Tue, 14 May 2013 06:48:59 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r861934 - in /websites/staging/felix/trunk/content: ./ documentation/faqs/apache-felix-scr-plugin-faq.html Date: Tue, 14 May 2013 06:48:59 -0000 To: commits@felix.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130514064859.41D4C23889ED@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: buildbot Date: Tue May 14 06:48:58 2013 New Revision: 861934 Log: Staging update by buildbot for felix Modified: websites/staging/felix/trunk/content/ (props changed) websites/staging/felix/trunk/content/documentation/faqs/apache-felix-scr-plugin-faq.html Propchange: websites/staging/felix/trunk/content/ ------------------------------------------------------------------------------ --- cms:source-revision (original) +++ cms:source-revision Tue May 14 06:48:58 2013 @@ -1 +1 @@ -1478675 +1482228 Modified: websites/staging/felix/trunk/content/documentation/faqs/apache-felix-scr-plugin-faq.html ============================================================================== --- websites/staging/felix/trunk/content/documentation/faqs/apache-felix-scr-plugin-faq.html (original) +++ websites/staging/felix/trunk/content/documentation/faqs/apache-felix-scr-plugin-faq.html Tue May 14 06:48:58 2013 @@ -94,12 +94,13 @@ for documentation on that plugin.

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

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

java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
 
@@ -120,8 +121,11 @@ for documentation on that plugin.

... </plugin> + + +

or in the special case of slf4j, using slf4j API 1.6 or higher solves the problem as well

- Rev. 1438983 by fmeschbe on Sat, 26 Jan 2013 22:54:42 +0000 + Rev. 1482228 by cziegeler on Tue, 14 May 2013 06:48:44 +0000
Apache Felix, Felix, Apache, the Apache feather logo, and the Apache Felix project