users@glassfish.java.net

Re: glassfish embedded slf4j dependency version conflict with wicket; need to exclude slf4j

From: Bhavanishankar <bhavanishankara.sapaliga_at_oracle.com>
Date: Tue, 03 Apr 2012 21:08:51 +0530

Hi,

Have you tried ordering your dependency (or classpath) such that your
slf4j is ahead of glassfish-embedded-web.jar?

Thanks,

Bhavani

On 04/03/2012 08:04 PM, forums_at_java.net wrote:
> I use org.glassfish.main.extras:glassfish-embedded-web:3.1.2 in my
> project,
> however it has slf4j included inside its jar. Wicket 6 uses sl4j as a
> dependency and now I end up with two slf4j implementations and
> naturally a
> conflict (MethodNotFoundException). Since wicket uses the highest
> version of
> slf4j (1.6.4) I would like to exclude glassfish's slf4j
> implementation, but
> that is not possible because glassfish is one big jar. Is it possible
> to have
> a not-one-jar glassfish-embedded-web as a dependency? When I try to
> include
> org.glassfish.main.core:glassfish:3.1.2 I'm missing all kinds of API's
> and
> get a "No module has a ModuleStartup implementation" exception.
>
> --
>
> [Message sent by forum member 'tbee']
>
> View Post: http://forums.java.net/node/884782
>
>