SOLVED (90%): Re: Has Tomcat 10 dropped support for using log4j2 as its default logger?

2025-03-13 Thread Bruno Melloni
I found a solution.  It is not perfect but it works. Man, I miss the old days of simple log4j-tomcat configurations. Feel free to use, reproduce, modify (especially if you have improvements) as you wish. *Configuring Tomcat for log4j2 logging* *NOTES*: ·A simpler configuration might be pos

Re: Fwd: Has Tomcat 10 dropped support for using log4j2 as its default logger?

2025-03-11 Thread Bruno Melloni
the log4j2-tomcat.xml as I see the files and folders specified in the log4j2-tomcat.xml are indeed getting created, even if none of the webapp logging is happening, only server logging is. B. On 3/11/2025 10:50 AM, Bruno Melloni wrote: Thanks, excellent set of links and information!  * [

Fwd: Has Tomcat 10 dropped support for using log4j2 as its default logger?

2025-03-11 Thread Bruno Melloni
various links are an excellent resource to continue troubleshooting and hopefully find a complete solution. B. On 3/10/2025 5:58 PM, Piotr P. Karwasz wrote: Hi Bruno, On 10.03.2025 18:01, Bruno Melloni wrote: I am wondering because after easily a decade of using log4j with Tomcat...

Has Tomcat 10 dropped support for using log4j2 as its default logger?

2025-03-10 Thread Bruno Melloni
*TLDR Question*:  Has Tomcat 10 dropped support for using log4j2 as its default logger? Details: I am wondering because after easily a decade of using log4j with Tomcat... it is now virtually impossible to find instructions (_that actually work_) for how to configure Tomcat 10 to use *Apache

Re: Best way to *programmatically* detect that all webapps are fully deployed and running?

2023-09-30 Thread Bruno Melloni
/2023 7:42 AM, Mark Thomas wrote: On 29/09/2023 20:20, Bruno Melloni wrote: On a tomcat server I have a number of REST services deployed as WARs. There are interdependencies and even applications on other servers that call them, so I really don't want to start calling services after starting T

Best way to *programmatically* detect that all webapps are fully deployed and running?

2023-09-29 Thread Bruno Melloni
On a tomcat server I have a number of REST services deployed as WARs. There are interdependencies and even applications on other servers that call them, so I really don't want to start calling services after starting Tomcat until every single webapp is fully up and running. Ideally, I would like

Re: How to have a custom classloader outside Tomcat's own lib-dir?

2023-04-17 Thread BRUNO MELLONI
Perhaps this info will help: - Custom class loaders are supposed to be possible but very poorly documented. I was never able to make them work properly. You might have some luck if you study the source code of Tomcat itself, as it does implement them. - Webapps really expect all custom libra

RE: Is Microsoft's spring-cloud-azure-starter-active-directory for Spring Boot 3 / Spring 6 compatible with Tomcat 10?

2023-04-14 Thread BRUNO MELLONI
Boot 3 / Spring 6 compatible with Tomcat 10? On 13/04/2023 22: 48, BRUNO MELLONI wrote: > After further research let me ask the question in a different way: > > > * Tomcat 10 is configured to do log4j2 logging. > * My log4j2 code works fine. > * Spring-cloud-azure-s

RE: Is Microsoft's spring-cloud-azure-starter-active-directory for Spring Boot 3 / Spring 6 compatible with Tomcat 10?

2023-04-13 Thread BRUNO MELLONI
adding some jars? b. From: Mark Thomas Sent: Tuesday, April 11, 2023 2:41 PM To: users@tomcat.apache.org Subject: Re: Is Microsoft's spring-cloud-azure-starter-active-directory for Spring Boot 3 / Spring 6 compatible with Tomcat 10? On 11/04/2023 20: 28, BRUNO MELLONI wrote: > I was

Is Microsoft's spring-cloud-azure-starter-active-directory for Spring Boot 3 / Spring 6 compatible with Tomcat 10?

2023-04-11 Thread BRUNO MELLONI
I was able to migrate applications to Spring Boot 3 / Spring 6 (standalone or running on Tomcat 10) so long as authentication was NOT through Azure AD. But when I tried to migrate applications that used Microsoft's spring-cloud-azure-starter-active-directory for authentication of 2-step authent

RE: Database connection pooling ..

2023-04-11 Thread BRUNO MELLONI
I used org.apache.commons.dbcp2.BasicDataSource as my default DataSource for over a decade in both Tomcat and standalone apps. Very reliable. I do remember that “permanently running” apps like a custom job scheduler that we run would occasionally require a restart, sometimes once a week or onc