Warning about multiple copies of logback-classic on the classpath during Jetty start-up
Description fields
Basics
Technical
Logistics
Basics
Technical
Logistics
Description
When logback jars are installed in both the IDP war and the JETTY_BASE lib directory, Jetty complains about the duplicate copies on start-up: SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/services/shib-idp/opt/shibboleth-identityprovider-3.2.1/jetty-base/tmp/jetty-localhost-8080-webapp-_idp-any-6457666443846810571.dir/webinf/WEB-INF/lib/logback-classic-1.1.3.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/services/shib-idp/opt/shibboleth-identityprovider-3.2.1/jetty-base/lib/logging/logback-classic-1.1.3.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. 06:07:13,934 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy] 06:07:13,934 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml] 06:07:13,934 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/services/shib-idp/opt/shibboleth-identityprovider-3.2.1/jetty-base/tmp/jetty-localhost-8080-webapp-_idp-any-6457666443846810571.dir/webinf/WEB-INF/lib/idp-core-3.2.1.jar!/logback.xml] 06:07:13,934 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath. 06:07:13,934 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/services/shib-idp/opt/shibboleth-identityprovider-3.2.1/jetty-base/tmp/jetty-localhost-8080-webapp-_idp-any-6457666443846810571.dir/webinf/WEB-INF/lib/idp-core-3.2.1.jar!/logback.xml] 06:07:13,934 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/services/shib-idp/opt/shibboleth-identityprovider-3.2.1/jetty-base/resources/logback.xml] 06:07:13,955 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@4ef37659 - URL [jar:file:/services/shib-idp/opt/shibboleth-identityprovider-3.2.1/jetty-base/tmp/jetty-localhost-8080-webapp-_idp-any-6457666443846810571.dir/webinf/WEB-INF/lib/idp-core-3.2.1.jar!/logback.xml] is not of type file 06:07:13,972 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set 06:07:13,974 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender] 06:07:13,978 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT] 06:07:14,009 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to WARN 06:07:14,009 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT] 06:07:14,009 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration. 06:07:14,009 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@776b83cc - Registering current configuration as safe fallback point
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
When removed from the war, the IDP won't start. When removed from the JETTY_BASE lib/logging directory, Jetty complains about logging ocnfiguration on start-up.
When logback jars are installed in both the IDP war and the JETTY_BASE lib directory, Jetty complains about the duplicate copies on start-up:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/services/shib-idp/opt/shibboleth-identityprovider-3.2.1/jetty-base/tmp/jetty-localhost-8080-webapp-_idp-any-6457666443846810571.dir/webinf/WEB-INF/lib/logback-classic-1.1.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/services/shib-idp/opt/shibboleth-identityprovider-3.2.1/jetty-base/lib/logging/logback-classic-1.1.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
06:07:13,934 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
06:07:13,934 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
06:07:13,934 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/services/shib-idp/opt/shibboleth-identityprovider-3.2.1/jetty-base/tmp/jetty-localhost-8080-webapp-_idp-any-6457666443846810571.dir/webinf/WEB-INF/lib/idp-core-3.2.1.jar!/logback.xml]
06:07:13,934 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath.
06:07:13,934 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/services/shib-idp/opt/shibboleth-identityprovider-3.2.1/jetty-base/tmp/jetty-localhost-8080-webapp-_idp-any-6457666443846810571.dir/webinf/WEB-INF/lib/idp-core-3.2.1.jar!/logback.xml]
06:07:13,934 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/services/shib-idp/opt/shibboleth-identityprovider-3.2.1/jetty-base/resources/logback.xml]
06:07:13,955 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@4ef37659 - URL [jar:file:/services/shib-idp/opt/shibboleth-identityprovider-3.2.1/jetty-base/tmp/jetty-localhost-8080-webapp-_idp-any-6457666443846810571.dir/webinf/WEB-INF/lib/idp-core-3.2.1.jar!/logback.xml] is not of type file
06:07:13,972 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
06:07:13,974 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
06:07:13,978 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
06:07:14,009 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to WARN
06:07:14,009 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
06:07:14,009 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
06:07:14,009 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@776b83cc - Registering current configuration as safe fallback point
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
When removed from the war, the IDP won't start. When removed from the JETTY_BASE lib/logging directory, Jetty complains about logging ocnfiguration on start-up.