在tomcat的webapp下运行没问题的应用使用使用maven的cargo-maven2-plugin插件启动tomcat后出现如下错误,百思不得其解。
[INFO] No container defined, using a default [jetty6x, embedded] container
[INFO] [beddedLocalContainer] Jetty 6.x Embedded starting...
2008-11-16 18:00:55.187::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
2008-11-16 18:00:55.250::INFO:  jetty-6.1.1rc1
2008-11-16 18:00:55.437::INFO:  Extract jar:file:/D:/workspace3.2/sunajiu.helloapp/target/helloapp.war!/ to C:\DOCUME~1\LUCIFE~1\LOCALS~1\Temp\Jetty_0_0_0_0_8080_helloapp.war__helloapp__y8gf05\webapp
2008-11-16 18:00:56.531::WARN:  Failed startup of context org.mortbay.jetty.webapp.WebAppContext@1f0aecc{/helloapp,jar:file:/D:/workspace3.2/sunajiu.helloapp/target/helloapp.war!/}
org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1e0512a for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1e0512a for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category))
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)