-
Bug
-
Resolution: Done
-
Critical
-
5.0.2.GA, 5.1.0.GA
-
None
-
16
-
User Experience
-
-
-
-
-
-
?
-
-
Hi. This is a support ticket we received from a customer running the latest official JWS5 image on OpenShift 3.11.
If an app throws an exception that goes up to the container, tomcat is not configured to write to std out / std err. In OpenShift it looks like there was no exception if you look at the "logs" tab.
If you terminal into the container, the logs are being written to /opt/jws-5.0/tomcat/logs
I expected all logging configured in tomcat would go to the logs tab.
Where are you experiencing the behavior? What environment?
Docker container: jboss-webserver-5/webserver50-tomcat9-openshift
Version: 1.2-6 / latest
Openshift 3.11
When does the behavior occur? Frequently? Repeatedly? At certain times?
1) If an app throws an exception
2) if a servlet extends javax.servlet.GenericServlet and uses the built in log method.
I have pasted the suggestions from support into the "Workaround" part of the ticket. The workarounds do get logging going to console as required, but the expectation is that container images from Red Hat would log to console by default.
The customer also included a sample git repo to reproduce the issue. I've added to to "steps to reproduce".
I also sent an email to the internal JWS mailing list, they suggested this is likely a bug and I should create a ticket here.
Thanks for your help.