Multiple versions of logback in my classpath
Cantor, Scott
cantor.2 at osu.edu
Wed Aug 17 11:54:26 EDT 2016
On 8/17/16 11:45 AM, Wessel, Keith wrote:
>
> When Jetty starts up, it complains to the log file that I have multiple
> versions of logback. I do, but I can't figure out how not to. There's a
> logback-classic-1.1.3.jar in $jetty_base/lib/logging and another compiled
> into the IDP war file.
Multiple versions or multiple copies? I don't think you can avoid
multiple copies unless you just don't use logback with Jetty. I suppose
you could remove it from the IdP.
> And if I remove the one from the IDP war, the IDP fails to start.
That seems surprising, but it might have something to do with how slf4j
auto-identifies the logging back-end to use. That's all pretty arcane to
me, but it might not cross class loader boundaries.
Probably there are tricks you can use to do all that differently with
system properties or something like that, I've never looked into it. It
would be more of an slf4j thing probably.
-- Scott
More information about the users
mailing list