[jboss-jira] [JBoss JIRA] Resolved: (JBAS-8541) Deploying an application that has its own slf4j jars causes errors in the server log
David Lloyd (JIRA)
jira-events at lists.jboss.org
Tue Oct 26 08:59:57 EDT 2010
[ https://jira.jboss.org/browse/JBAS-8541?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Lloyd resolved JBAS-8541.
-------------------------------
Fix Version/s: 7.0.0.M1
Resolution: Done
You missed the simple solution of upgrading slf4j in the AS. Otherwise, these are the only solutions that are going to happen for 5.x/6.x. There is no other magical fix possible.
For AS 7.x, the class loading model will be modular, not flat, meaning that you can easily selectively include or exclude provided modules like slf4j.
If it makes you feel better, I'm marking this issue as "fixed for 7.0.0.M1". Otherwise you must use one of the existing solutions. If custom class loading isn't working then you should open a separate issue for that because that would be a bug that can and should be fixed within the 5.x/6.x series.
> Deploying an application that has its own slf4j jars causes errors in the server log
> ------------------------------------------------------------------------------------
>
> Key: JBAS-8541
> URL: https://jira.jboss.org/browse/JBAS-8541
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Logging
> Affects Versions: JBossAS-5.1.0.GA
> Reporter: Nikita D
> Assignee: David Lloyd
> Priority: Minor
> Fix For: 7.0.0.M1
>
>
> If an application depends on a different version of slf4j than the one packaged with JBoss, the slf4j jars (api and impl) need to be included with the application. This results in the "multiple SLF4J bindings" error message:
> 00:34:25,247 ERROR [STDERR] SLF4J: Class path contains multiple SLF4J bindings.
> 00:34:25,247 ERROR [STDERR] SLF4J: Found binding in [vfszip:/C:/a/bin/jboss/jboss-5.1.0.GA/common/lib/slf4j-jboss-logging.jar/org/slf4j/impl/StaticLoggerBinder.class]
> 00:34:25,247 ERROR [STDERR] SLF4J: Found binding in [vfszip:/c:/a/ear/suite.ear/lib/slf4j-log4j12-1.5.8.jar/org/slf4j/impl/StaticLoggerBinder.class]
> 00:34:25,247 ERROR [STDERR] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list