Affects Version/s: 1.6.x
Fix Version/s: None
Operating System: Windows NT
Scenario: A web application running inside Glassfish 3.1.1.
To avoid any external dependencies we have settled for using the JDK14 implementation to delegate logging to the web container. Works well.
To avoid memory issues when redeploying (which happens every time a resource change) we do not use static fields for loggers but instance fields.
Unfortunately the JDK14Adapter is not serializable which result in that the session object cannot be saved across redeployments, causing the current user to be logged out.
The attached junit test pass when using slf4j-simple, and fail when using slf4j-jdk14.