[jsfunit-dev] Maven, Jetty, and commons-logging issue

Stan Silvert ssilvert at redhat.com
Thu Dec 27 15:16:27 EST 2007


Hi Tom,

If you checkout and build JSFUnit from scratch you can run its Maven 
build and automatically test several sample applications using Jetty, 
Tomcat 5.5, or JBoss 4.0.5.  The default is to use Jetty since that is 
the default container for Cargo.

See details here:
http://labs.jboss.com/jsfunit/source-repository.html
http://labs.jboss.com/jsfunit/building-jsfunit.html

Hope that helps,

Stan

Tom Waterhouse wrote:
> 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 purposes of avoiding U.S. federal, state, or local tax or tax 
> penalties.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> jsfunit-dev mailing list
> jsfunit-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jsfunit-dev




More information about the jsfunit-dev mailing list