Recently, I was given the task of enhancing a Java application deployed on WebSphere 6.0 in development and production environments. The code has a bug. It is accessing a database column by the wrong name. The code catches the exception, does a printStackTrace() and moves on.
In the development environment I see the stack trace of the exception in the WebSphere logs, but I do not see them in the logs for the production environment.
I do not have any admin privileges for WebSphere in the production environment. I can only see the log files. To ensure that I was running the same code in both environments, I obtained the EAR file from the production environment (from the group which manages the server) and deployed it to the development environment.
My question is, if I am running the same code in both environments, is it possible to see the stack trace in logs in one environment and not in the other?
Thanks