RE: log4j
Depends on what you're asking. If you're asking to use log4j to capture Tomcat logging, then the answer is - you can't but you can use Log4j2 or JULI. If the question is how to use log4j for your apps deployed under Tomcat, then answer can be found easily... From: Cheltenham, ChrisSent: Friday, May 18, 2018 7:50 AM To: 'Tomcat Users List' Subject: log4j Hello, How do I configure Tomcat 8.5.x to use log4j? Is there a good document to follow? I am not very familiar with java but it looks like you configure to logs to accept java logging for Tomcat. === Thank You; Chris Cheltenham Technology Services The School District of Philadelphia Work # 215-400-5025 Cell # 215-301-6571
Re: log4j
Also, it may make more sense to code log4j into your app. If you change servers the logging goes with it. Best, J On Fri, May 18, 2018 at 8:06 AM M. Mannawrote: > Hi Chris, > > How r u planning to use Log4j (or log4j2, which solves a lot of performance > issues for 1.2.x)? > > Are you bridging with SLF4J or or using directly? > > All log4j configuration are automatically discovered and configured > provided that you have set up your appplication log4j properties file > correctly. > > Tomcat doesn't do anything specific to log4j-related setup. There is a > logging properties file in /conf/ which are for JULI logging, as a bare > minimum OOB setup for catalina. > > If you can perhaps clarify your use case, others can advise better. > > regards, > > On 18 May 2018 at 14:49, Cheltenham, Chris > wrote: > > > Hello, > > > > > > > > How do I configure Tomcat 8.5.x to use log4j? > > > > > > > > Is there a good document to follow? > > > > > > > > I am not very familiar with java but it looks like you configure to logs > > to accept java logging for Tomcat. > > > > > > > > > > > > === > > > > Thank You; > > > > Chris Cheltenham > > Technology Services > > The School District of Philadelphia > > > > Work # 215-400-5025 > > Cell # 215-301-6571 > > >
Re: Does Tomcat supports serialize session access?
On 18/05/2018 14:39, Suvendu Sekhar Mondal wrote: Hello Everyone, We recently migrate our apps from Websphere(WAS) to Tomcat. We are using httpd 2.4.10 in front of multiple Tomcat 7.0.55. There is one feature of WAS that I am interested about and I am looking for it everywhere in Tomcat world but could not found any source. Feature called "serialize session access". If you turn that "on", then it prohibits concurrent session access in a given JVM. It ensures that only one request can access the session data at a time. My questions are: Is there any similar feature exists in Tomcat? No. Does Tomcat works like that way - by default? No. Is there any setting in Tomcat web container which can make processing synchronized? No. You could implement equivalent behaviour (within a single JVM) if you sync'd on the session object. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: log4j
Hi Chris, How r u planning to use Log4j (or log4j2, which solves a lot of performance issues for 1.2.x)? Are you bridging with SLF4J or or using directly? All log4j configuration are automatically discovered and configured provided that you have set up your appplication log4j properties file correctly. Tomcat doesn't do anything specific to log4j-related setup. There is a logging properties file in /conf/ which are for JULI logging, as a bare minimum OOB setup for catalina. If you can perhaps clarify your use case, others can advise better. regards, On 18 May 2018 at 14:49, Cheltenham, Chriswrote: > Hello, > > > > How do I configure Tomcat 8.5.x to use log4j? > > > > Is there a good document to follow? > > > > I am not very familiar with java but it looks like you configure to logs > to accept java logging for Tomcat. > > > > > > === > > Thank You; > > Chris Cheltenham > Technology Services > The School District of Philadelphia > > Work # 215-400-5025 > Cell # 215-301-6571 >
log4j
Hello, How do I configure Tomcat 8.5.x to use log4j? Is there a good document to follow? I am not very familiar with java but it looks like you configure to logs to accept java logging for Tomcat. === Thank You; Chris Cheltenham Technology Services The School District of Philadelphia Work # 215-400-5025 Cell # 215-301-6571
Does Tomcat supports serialize session access?
Hello Everyone, We recently migrate our apps from Websphere(WAS) to Tomcat. We are using httpd 2.4.10 in front of multiple Tomcat 7.0.55. There is one feature of WAS that I am interested about and I am looking for it everywhere in Tomcat world but could not found any source. Feature called "serialize session access". If you turn that "on", then it prohibits concurrent session access in a given JVM. It ensures that only one request can access the session data at a time. My questions are: Is there any similar feature exists in Tomcat? Does Tomcat works like that way - by default? Is there any setting in Tomcat web container which can make processing synchronized? WAS feature: https://www.ibm.com/support/knowledgecenter/en/SSAW57_8.5.5/com.ibm.websphere.nd.multiplatform.doc/ae/tprs_serializing_access.html Thanks! Suvendu - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Issue with WebResource Caching
> > > > Tomcat uses the same code for static and class loader resources but it > > is meant to distinguish between the two. However, it looks like there is > > a bug in Tomcat's resource handling that hides this resource once the > > static look-up fails. I need to dig into this some more. > > Yes, there is a bug here. It has been fixed for the next set of releases > (due early next month). > > Thanks for the quick resolution and advice on using /META-INF/resources!
Re: Issue with WebResource Caching
On 18/05/18 07:23, Mark Thomas wrote: > Tomcat uses the same code for static and class loader resources but it > is meant to distinguish between the two. However, it looks like there is > a bug in Tomcat's resource handling that hides this resource once the > static look-up fails. I need to dig into this some more. Yes, there is a bug here. It has been fixed for the next set of releases (due early next month). Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Issue with WebResource Caching
On 17/05/2018 15:43, Jeremy Collins wrote: At this point we're unsure if this is an actual bug in Tomcat or an incorrect usage of getResourceAsStream(path) on our part so we're looking for advice. I think it is a bit of both. ServletContext.getResourceAsStream(path) won't normally return a resource that is packaged in a JAR file. The exception to this is if the resource is packaged under META-INF/resources as per the 'package static resources in a JAR' feature that was added in Servlet 3.0. It looks to me like META-INF/resources does everything you need it to - and will be supported by any Servlet 3.0 compliant container (7.0.x onwards in Tomcat's case). I'd look at using it. ClassLoader.getResourceAsStream(path) is the way to retrieve a resource from a JAR but that isn't working in this case. Tomcat uses the same code for static and class loader resources but it is meant to distinguish between the two. However, it looks like there is a bug in Tomcat's resource handling that hides this resource once the static look-up fails. I need to dig into this some more. And thanks for the test case. Being able to reproduce this makes investigation a whole lot easier. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org