Maven, Jetty, and commons-logging issue
by Tom Waterhouse
I've followed the instructions posted for using Jetty as a test
container in a Maven build (I had sent an email previously about
deployment issues, but that was due to not including all required test
dependencies). I've since run into what looks to be a known issue with
commons logging.
Is there a working JSFUnit Maven project that tests with a container
available for download?
The commons-logging issue is documented here:
http://www.qos.ch/logging/classloader.jsp.
Caused by: org.apache.commons.logging.LogConfigurationException: No
suitable Log
constructor [Ljava.lang.Class;@127e4be for
org.apache.commons.logging.impl.Log4
JLogger (Caused by java.lang.NoClassDefFoundError:
org/apache/log4j/Category)
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF
actoryImpl.java:413)
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
Impl.java:529)
... 33 more
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category
at java.lang.Class.getDeclaredConstructors0(Native Method)
at
java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.getConstructor(Class.java:1657)
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF
actoryImpl.java:410)
... 34 more
Thanks,
Tom
This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information that is protected from disclosure. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message and any attachments. This document was not intended or written to be used, and it cannot be used, for the purpose of avoiding U.S. federal, state or local tax or tax penalties.
16 years, 11 months