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

2022-04-09 Thread Piotr P. Karwasz
Hi Ralph, On Thu, 7 Apr 2022 at 07:50, Ralph Goers wrote: > Second, putting the property in log4j2.component.properties is correct. > However, it must only be on the classpath of the web app that needs it, not > in a shared directory. If there is no `log4j-api` in the web app classpath, I

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

2022-04-07 Thread Pooja Pandey
er, I would try again putting it various places in webapps war file. -Original Message- From: Ralph Goers Sent: Thursday, April 7, 2022 11:21 AM To: Log4J Users List Subject: Re: can we set log4j property 'Log4jContextSelector' per webapps war *** External email: Verify sender bef

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

2022-04-07 Thread Pooja Pandey
oers Sent: Thursday, April 7, 2022 11:21 AM To: Log4J Users List Subject: Re: can we set log4j property 'Log4jContextSelector' per webapps war *** External email: Verify sender before opening attachments or links *** I asked where the jars are located. You replied "Along with various oth

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

2022-04-06 Thread Ralph Goers
Get Outlook for iOS<https://aka.ms/o0ukef> > > From: Ralph Goers > Sent: Wednesday, April 6, 2022 11:54:26 PM > To: Log4J Users List > Subject: Re: can we set log4j property 'Log4jContextSelector' per webapps war > > *** External ema

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

2022-04-06 Thread Pooja Pandey
kef> From: Ralph Goers Sent: Wednesday, April 6, 2022 11:54:26 PM To: Log4J Users List Subject: Re: can we set log4j property 'Log4jContextSelector' per webapps war *** External email: Verify sender before opening attachments or links *** OK. If all 3 wars are using the same Log4

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

2022-04-06 Thread Ralph Goers
__ > From: Ralph Goers > Sent: Wednesday, April 6, 2022 11:33:55 PM > To: Log4J Users List > Subject: Re: can we set log4j property 'Log4jContextSelector' per webapps war > > *** External email: Verify sender before opening attachments or links *** > > > Where are th

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

2022-04-06 Thread Pooja Pandey
Outlook for iOS<https://aka.ms/o0ukef> From: Ralph Goers Sent: Wednesday, April 6, 2022 11:33:55 PM To: Log4J Users List Subject: Re: can we set log4j property 'Log4jContextSelector' per webapps war *** External email: Verify sender before opening attac

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

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 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