Issue when using jetty plugin with

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue when using jetty plugin with

Ricardo Mayerhofer
Hi all,
I'm facing a problem when using JettyRunWar task and slf4j-jcl in my application. The error shows up when starting the application:
Caused by: java.lang.IllegalStateException: Detected both jcl-over-slf4j.jar AND slf4j-jcl.jar on the class path, preempting StackOverflowError. See also http://www.slf4j.org/codes.html#jclDelegationLoop for more details.

It seems that the application dependency: slf4j-jcl-1.7.2.jar is conflicting with gradle dependency: lib/jcl-over-slf4j-1.6.6.jar

Does JettyRunWar task inherit gradle classpath? Is there a way to workaround this, for example starting Jetty on a different JVM or with a different classpath?

Any help is appreciated.

Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Issue when using jetty plugin with

Luke Daley-2
Hi Ricardo,

On 26/02/2013, at 8:59 PM, Ricardo Mayerhofer <[hidden email]> wrote:

> Hi all,
> I'm facing a problem when using JettyRunWar task and slf4j-jcl in my
> application. The error shows up when starting the application:
> Caused by: java.lang.IllegalStateException: Detected both jcl-over-slf4j.jar
> AND slf4j-jcl.jar on the class path, preempting StackOverflowError. See also
> http://www.slf4j.org/codes.html#jclDelegationLoop for more details.
>
> It seems that the application dependency: slf4j-jcl-1.7.2.jar is conflicting
> with gradle dependency: lib/jcl-over-slf4j-1.6.6.jar
>
> Does JettyRunWar task inherit gradle classpath? Is there a way to workaround
> this, for example starting Jetty on a different JVM or with a different
> classpath?

There's currently no way to fully isolate the classpaths unfortunately. I'd suggest using the Cargo plugin: https://github.com/bmuschko/gradle-cargo-plugin

--
Luke Daley
Principal Engineer, Gradleware
http://gradleware.com


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

    http://xircles.codehaus.org/manage_email