Hi Ravi,

I've replied to this on the dev list.

Cheers,
Liz.

On Wed, Oct 28, 2009 at 9:30 PM, Ravi Varanasi <[email protected]> wrote:
> Posting it to the users mailing list
>
> I have configured a maven build to run the scenarios inside hudson using the
> jbehave maven plugin. I have provided a constructor for the scenario to take a
> ClassLoader. The scenarios run fine when running from command line. However,
> when running it from inside hudson get an error -
>
> Below is the exception :
> org.apache.commons.logging.LogConfigurationException:
> org.apache.commons.logging.LogConfigurationException: No suitable Log
> constructor [Ljava.lang.Class;@487113 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;@487113 for
> org.apache.commons.logging.impl.Log4JLogger (Caused by
> java.lang.NoClassDefFoundError: org/apache/log4j/Category))
>
>
> Things Tried:
> 1. Tried to use the commons logging api instead of using commons logging
> (conflict between commons logging and log4j).
> 2.Use the same version of commons logging in hudson installation and the one
> used by the application.
> 3. Move commons logging api to common/lib directory as per this page
> (http://www.qos.ch/logging/classloader.jsp)
>
>
> Code in Scenario class :
> public MyScenario extends Scenario {
>
>  public MyScenario(final ClassLoader loader){
>  super(new MostUsefulConfiguration() {
>            public ScenarioReporter forReportingScenarios() {
>                return new PrintStreamScenarioReporter();
>            }
>        }, new Steps());
> }
>
> I would appreciate any pointers/feedback.
>
> Ravi
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>



-- 
Elizabeth Keogh
[email protected]
http://lizkeogh.com
http://jbehave.org

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to