Description of problem:
The WAR for IBM WebSphere 8.5 does not contain logback JARs and logback.xml configuration. As a result, no logs are generated. After adding the JARs and configuration manually, the logs are generated.
Version-Release number of selected component (if applicable):
JBoss BRMS 6.0.3.
Install the WAR on IBM WebSphere. There are no logs generated and at startup the following errors are output to the SystemErr.log:
[31.1.15 18:49:25:467] 00000083 SystemErr R SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
[31.1.15 18:49:25:467] 00000083 SystemErr R SLF4J: Defaulting to no-operation (NOP) logger implementation
Steps to Reproduce:
Log is generated.
fixed in the following commits:
6.2.x URL: http://github.com/droolsjbpm/kie-wb-distributions/commit/82e23b367
The root cause of the issue was that the WAR was missing slf4j-jdk14.jar to bridge the logging calls to JUL (Java Util Logging), which is the logging implementation used by WAS. I fixed that.
We should not use logback here as configuring the JUL is much easier for WAS admins/users. They don't have to go inside the WAR for that, but can rather reuse the WAS config options.
See https://bugzilla.redhat.com/show_bug.cgi?id=1190203 for more general fixes/enhancements related to logging.
Verified with BRMS-6.1.0.ER6 that:
- message about missing logging impl. shows no more
- logging works