If I remove delegate=false I get a slightly different message. Looks like in this case it is
loading one jar from the war and one from TomEE. Is there not a way to force the war classloader
first? I thought that was the point of the delegate false configuration.
SLF4J: The requested version 1.6 by your slf4j binding is not compatible with [1.5.5, 1.5.6,
1.5.7, 1.5.8, 1.5.9, 1.5.10]
SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.
Trevor Stevens
tstevens@me.com
On Feb 7, 2014, at 9:52 AM, Romain Manni-Bucau <rmannibucau@gmail.com> wrote:
> so it means yes :p
>
> well providing slf4j-api AND slf4j-<impl> it should work without any config
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
>
> 2014-02-07 Trevor Stevens <tstevens@me.com>:
>> No, it comes bundled within the war. I would prefer to leave the war alone if possible
instead of removing SLF4J from the webapp.
>>
>>
>> Trevor Stevens
>> tstevens@me.com
>>
>>
>> On Feb 7, 2014, at 9:47 AM, Romain Manni-Bucau <rmannibucau@gmail.com> wrote:
>>
>>> Hi
>>>
>>> did you put slf4j api in the webapp?
>>> Romain Manni-Bucau
>>> Twitter: @rmannibucau
>>> Blog: http://rmannibucau.wordpress.com/
>>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>>> Github: https://github.com/rmannibucau
>>>
>>>
>>>
>>> 2014-02-07 Trevor Stevens <tstevens@me.com>:
>>>> I am having issues getting SLF4J logging working in an existing war. It looks
like TomEE is ignoring the delegate configuration for SLF4J classes. Am I missing something
in my configuration? I would have expected TomEE to load the SLF4J binder from the war when
configured in this manner.
>>>>
>>>> context.xml
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <Context >
>>>> <Loader delegate="false" />
>>>> </Context>
>>>>
>>>> SLF4J: The requested version 1.6 by your slf4j binding is not compatible
with [1.5.5, 1.5.6, 1.5.7, 1.5.8, 1.5.9, 1.5.10]
>>>> SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.
>>>> SLF4J: Class path contains multiple SLF4J bindings.
>>>> SLF4J: Found binding in [jar:file:/Users/tstevens/Downloads/apache-tomee-plus-1.6.1-SNAPSHOT/lib/slf4j-jdk14-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>>>> SLF4J: Found binding in [jar:file:/Users/tstevens/Downloads/apache-tomee-plus-1.6.1-SNAPSHOT/webapps/cas/WEB-INF/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>>>> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
>>>>
>>>>
>>>> Trevor Stevens
>>>> tstevens@me.com
>>>>
>>>>
>>
|