Saicharan,

On 7/26/24 09:36, Burle, Saicharan wrote:
We are observing a strange behavior for our app running on the Tomcat9.

Issue:
We have 2 applications configured on tomcat9 (Java8) named app1 & app2. There are 2 log 
files named a.log & b.log to be created under a path /a/b/c (for app1) & /d/e/f (for 
app2) and this path is defined in log4j2.xml. The log files a.log & b.log is getting 
created at /a/b/c for app1 but not for app2 and instead it is getting written in default 
Catalina.out file. Nothing created under /d/e/f.

Where is log4j2.xml located?

Where is log4j2-*.jar located?

How does each application initialize log4j2?

We tried few steps in our lab server and below are our observations.


   1.  Got this issue when we are Migrating from RHEL-7 to RHEL-8

Which of the following changed during this migration?

- Java version
- Tomcat version
- Application version/configuration/etc

   2.  The same war file for app1 and app2 is working as expected in RHEL-7 
(a.log and b.log getting created under the path /a/b/c and d/e/f respectively).
   3.  No Issue on RHEL-8, When the war is built locally (created from same 
branch where Prod war file is) and deployed MANUALLY.
   4.  We got ISSUE on RHEL-8, when the war is built and deployed via UCD.
   5.  No issues in RHEL-7 with UCD build and deploy.

So, we are not sure if it is RHEL-8 or the UCD that is causing this issue. 
Could you please take a look at it and help with steps to resolve this issue.
>
Please let me know in case you need further information.

What is UCD?

If things run under both RHEL-7 and RHEL-8 when building locally, I would guess that something is wrong with either (a) the data transfer mechanism or (b) the configuration of the target environment, and the data-transfer is not relevant.

I would focus on the environmental changes. Look for what files are where (under the Tomcat deployment, including Tomcat configuration files and libraries), and the differences between the working-environment and the non-working environment.

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to