can we set log4j property 'Log4jContextSelector' per webapps war

2022-04-06 Thread Pooja Pandey
Hi, In my application, I have 2 processes running and there are 3 webapps war files which get deployed in tomcat version 9.0.60. Out of these 3 war files, one war file is internal to my application while other 2 are coming as final artifacts from artifiactory. My war uses a custom logger and c

RE: can we set log4j property 'Log4jContextSelector' per webapps war

2022-04-06 Thread Pooja Pandey
For other 2 wars I get following harmless error when I keep 'log4j2.component.properties' file on log4j jars class path, to fix class cast exception which I was getting earlier during deployment of my war file. ERROR StatusLogger Unable to create custom ContextSelector. Falling back to default.

Re: can we set log4j property 'Log4jContextSelector' per webapps war

2022-04-06 Thread Matt Sicker
You could try out the JndiContextSelector for this use case as it’s all hosted in the same container server. — Matt Sicker > On Apr 6, 2022, at 08:41, Pooja Pandey wrote: > > For other 2 wars I get following harmless error when I keep > 'log4j2.component.properties' file on log4j jars class

Re: can we set log4j property 'Log4jContextSelector' per webapps war

2022-04-06 Thread Ralph Goers
Where are the Log4j jars located? Ralph > On Apr 6, 2022, at 6:34 AM, Pooja Pandey wrote: > > Hi, > > In my application, I have 2 processes running and there are 3 webapps war > files which get deployed in tomcat version 9.0.60. Out of these 3 war files, > one war file is internal to my appl

Re: can we set log4j property 'Log4jContextSelector' per webapps war

2022-04-06 Thread Pooja Pandey
Webapps wars path is like: installation directory/soa-dir/webapps/ Along with various other product libs, log4j2 jars and log4j2 propertie file are placed under soa-dir/lib. This path is accessible by all 3 wars. I cannot make any changes in 2 wars which we are fetching from artifactory. Get

Re: can we set log4j property 'Log4jContextSelector' per webapps war

2022-04-06 Thread Ralph Goers
OK. If all 3 wars are using the same Log4j jars then you can only have a single ContextSelector. Ralph > On Apr 6, 2022, at 11:17 AM, Pooja Pandey > wrote: > > Webapps wars path is like: installation directory/soa-dir/webapps/ > > Along with various other product libs, log4j2 jars and log4j2

Re: can we set log4j property 'Log4jContextSelector' per webapps war

2022-04-06 Thread Pooja Pandey
But these other 2 wars already have log4j2 jars bundled with these. I mean in WEB-INF/lib of these wars, log4j2 jars are available and even the version is also different which is log4j2 2.17.1 while my application is using 2.17.2. Get Outlook for iOS __

Re: can we set log4j property 'Log4jContextSelector' per webapps war

2022-04-06 Thread Ralph Goers
I asked where the jars are located. You replied "Along with various other product libs, log4j2 jars and log4j2 propertie file are placed under soa-dir/lib. This path is accessible by all 3 wars.” That answer implies that they are not in WEB-INF/lib of any of the web apps. First, I do not know