/**
 * A container for static utility methods related to logging.
 * By default, CXF logs to java.util.logging. An application can change this. 
To log to another system, the
 * application must provide an object that extends {...@link 
AbstractDelegatingLogger}, and advertise that class
 * via one of the following mechanisms:
 * <ul>
 * <li>Create a file, in the classpath, named 
META-INF/cxf/org.apache.cxf.logger. 
 * This file should contain the fully-qualified name
 * of the class, with no comments, on a single line.</li>
 * <li>Call {...@link #setLoggerClass(Class)} with a Class<?> reference to the 
logger class.</li>
 * </ul>
 * CXF provides {...@link Log4jLogger} to use log4j instead of 
java.util.logging.
 */
http://www.jarvana.com/jarvana/view/org/apache/cxf/cxf-bundle/2.1/cxf-bundle-2.1-sources.jar!/org/apache/cxf/common/logging/LogUtils.javasuggest
 change <groupId>org.apache.log4j</groupId>
suggest insert <version>1.2.15</version>

hth
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Fri, 18 Sep 2009 02:49:28 -0700
> From: [email protected]
> To: [email protected]
> Subject: java.lang.NoClassDefFoundError: /Appender
> 
> 
> Hello...
> 
> Any reason why I am encountering this error while I am packaging my module.
> I checked and the org/apache/log4j/Appender is in my
> .m2\repository\log4j\log4j\1.2.15 directory but from the logs below, log4j
> is not being loaded. Am not sure if that is causing the error. Please help.
> My Pom.xml includes the log4j. Thanks in advance.
> 
> <dependency>
>             <groupId>log4j</groupId>
>             <artifactId>log4j</artifactId>
> </dependency>
> 
> Its dependencies (if any) will NOT be available to the current build.
> [INFO] [cxf-codegen:wsdl2java {execution: generate-sources}]
> [FATAL ERROR] org.apache.cxf.maven_plugin.WSDL2JavaMojo#execute() caused a
> linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check
> the realms:
> [FATAL ERROR] Plugin realm =
> app0.child-container[org.apache.cxf:cxf-codegen-plugin:2.0.6]
> urls[0] = file:/C:/Documents and
> Settings/gandz/.m2/repository/org/apache/cxf/cxf-codegen-plugin/2.0.6/cxf-codegen-plugin-2.0.6.jar
> urls[1] = file:/C:/Documents and
> Settings/gandz/.m2/repository/org/apache/cxf/cxf-tools-common/2.0.6/cxf-tools-common-2.0.6.jar
> urls[2] = file:/C:/Documents and
> Settings/gandz/.m2/repository/velocity/velocity/1.4/velocity-1.4.jar
> urls[3] = file:/C:/Documents and
> Settings/gandz/.m2/repository/velocity/velocity-dep/1.4/velocity-dep-1.4.jar
> urls[4] = file:/C:/Documents and
> Settings/gandz/.m2/repository/wsdl4j/wsdl4j/1.6.1/wsdl4j-1.6.1.jar
> urls[5] = file:/C:/Documents and
> Settings/gandz/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.0/jaxb-xjc-2.0.jar
> urls[6] = file:/C:/Documents and
> Settings/gandz/.m2/repository/com/sun/xml/bind/jaxb-impl/2.0.5/jaxb-impl-2.0.5.jar
> urls[7] = file:/C:/Documents and
> Settings/gandz/.m2/repository/javax/xml/bind/jaxb-api/2.0/jaxb-api-2.0.jar
> urls[8] = file:/C:/Documents and
> Settings/gandz/.m2/repository/javax/xml/soap/saaj-api/1.3/saaj-api-1.3.jar
> urls[9] = file:/C:/Documents and
> Settings/gandz/.m2/repository/org/apache/cxf/cxf-api/2.0.6/cxf-api-2.0.6.jar
> urls[10] = file:/C:/Documents and
> Settings/gandz/.m2/repository/org/apache/geronimo/specs/geronimo-activation_1.1_spec/1.0.2/geronimo-activation_1.1_spec-1.0.2.jar
> urls[11] = file:/C:/Documents and
> Settings/gandz/.m2/repository/org/apache/cxf/cxf-common-utilities/2.0.6/cxf-common-utilities-2.0.6.jar
> urls[12] = file:/C:/Documents and
> Settings/gandz/.m2/repository/org/springframework/spring-core/2.0.8/spring-core-2.0.8.jar
> urls[13] = file:/C:/Documents and
> Settings/gandz/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
> urls[14] = file:/C:/Documents and
> Settings/gandz/.m2/repository/org/springframework/spring-beans/2.0.8/spring-beans-2.0.8.jar
> urls[15] = file:/C:/Documents and
> Settings/gandz/.m2/repository/org/springframework/spring-context/2.0.8/spring-context-2.0.8.jar
> urls[16] = file:/C:/Documents and
> Settings/gandz/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
> urls[17] = file:/C:/Documents and
> Settings/gandz/.m2/repository/org/apache/geronimo/specs/geronimo-annotation_1.0_spec/1.1.1/geronimo-annotation_1.0_spec-1.1.1.jar
> urls[18] = file:/C:/Documents and
> Settings/gandz/.m2/repository/org/apache/geronimo/specs/geronimo-ws-metadata_2.0_spec/1.1.2/geronimo-ws-metadata_2.0_spec-1.1.2.jar
> urls[19] = file:/C:/Documents and
> Settings/gandz/.m2/repository/org/apache/geronimo/specs/geronimo-stax-api_1.0_spec/1.0.1/geronimo-stax-api_1.0_spec-1.0.1.jar
> urls[20] = file:/C:/Documents and
> Settings/gandz/.m2/repository/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.jar
> urls[21] = file:/C:/Documents and
> Settings/gandz/.m2/repository/org/apache/ws/commons/schema/XmlSchema/1.4.2/XmlSchema-1.4.2.jar
> urls[22] = file:/C:/Documents and
> Settings/gandz/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar
> urls[23] = file:/C:/Documents and
> Settings/gandz/.m2/repository/org/codehaus/woodstox/wstx-asl/3.2.4/wstx-asl-3.2.4.jar
> urls[24] = file:/C:/Documents and
> Settings/gandz/.m2/repository/org/apache/neethi/neethi/2.0.4/neethi-2.0.4.jar
> urls[25] = file:/C:/Documents and
> Settings/gandz/.m2/repository/org/apache/cxf/cxf-common-schemas/2.0.6/cxf-common-schemas-2.0.6.jar
> urls[26] = file:/C:/Documents and
> Settings/gandz/.m2/repository/org/apache/cxf/cxf-rt-core/2.0.6/cxf-rt-core-2.0.6.jar
> urls[27] = file:/C:/Documents and
> Settings/gandz/.m2/repository/org/apache/geronimo/specs/geronimo-javamail_1.4_spec/1.3/geronimo-javamail_1.4_spec-1.3.jar
> urls[28] = file:/C:/Documents and
> Settings/gandz/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-core/2.0.6/cxf-tools-wsdlto-core-2.0.6.jar
> urls[29] = file:/C:/Documents and
> Settings/gandz/.m2/repository/org/apache/cxf/cxf-tools-validator/2.0.6/cxf-tools-validator-2.0.6.jar
> urls[30] = file:/C:/Documents and
> Settings/gandz/.m2/repository/javax/xml/ws/jaxws-api/2.0/jaxws-api-2.0.jar
> urls[31] = file:/C:/Documents and
> Settings/gandz/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-databinding-jaxb/2.0.6/cxf-tools-wsdlto-databinding-jaxb-2.0.6.jar
> urls[32] = file:/C:/Documents and
> Settings/gandz/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-frontend-jaxws/2.0.6/cxf-tools-wsdlto-frontend-jaxws-2.0.6.jar
> urls[33] = file:/C:/Documents and
> Settings/gandz/.m2/repository/org/apache/cxf/cxf-tools-java2wsdl/2.0.6/cxf-tools-java2wsdl-2.0.6.jar
> urls[34] = file:/C:/Documents and
> Settings/gandz/.m2/repository/ant/ant/1.6.5/ant-1.6.5.jar
> urls[35] = file:/C:/Documents and
> Settings/gandz/.m2/repository/ant/ant-nodeps/1.6.5/ant-nodeps-1.6.5.jar
> urls[36] = file:/C:/Documents and
> Settings/gandz/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
> [FATAL ERROR] Container realm = plexus.core
> urls[0] =
> file:/C:/GANDZ/Installs/apache-maven-2.2.0/lib/maven-2.2.0-uber.jar
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] org/apache/log4j/Appender
> org.apache.log4j.Appender
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NoClassDefFoundError: org/apache/log4j/Appender
>       at java.lang.Class.forName0(Native Method)
>       at java.lang.Class.forName(Class.java:247)
>       at org.apache.cxf.common.logging.LogUtils.<clinit>(LogUtils.java:80)
>       at org.apache.cxf.BusFactory.<clinit>(BusFactory.java:39)
>       at
> org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:213)
>       at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
>       at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
> -- 
> View this message in context: 
> http://www.nabble.com/java.lang.NoClassDefFoundError%3A-org-apache-log4j-Appender-tp25506022p25506022.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

_________________________________________________________________
Hotmail: Powerful Free email with security by Microsoft.
http://clk.atdmt.com/GBL/go/171222986/direct/01/

Reply via email to