I have configured glassfish 3 to use SLF4J in the past by using the SLF4J JUL bridge and it worked fine. The problem I'm having now is that if I use my same setup, SLF4J complains about there being duplicate SLF4J bindings on the classpath and after searching, glassfish itself contains those reference.
How do I get SLF4J working? I tried making my dependency upon the SLF4J-API as provided, and then removed LogBack Classic since glassfish already contains some logback code. Doing those things doesn't yield any successful results.
Walter
This may helps you
Download Glassfish 4, SLF4J and Logback
Stop gf4
and then
Copy
to
Create logback.xml in
containing
Modify
and replace
with
Add this two new JVM options to
in
then start gf4 again