maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GANDZ <suy_...@yahoo.com>
Subject java.lang.NoClassDefFoundError: org/apache/log4j/Appender
Date Fri, 18 Sep 2009 09:50:00 GMT

Hello...

Anyone know the 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message