Re: Log4j 2.15.0 and Tomcat 9.0.56

2021-12-20 Thread Johan Compagner
that is a class that is being loaded on java 8 and it wants java 9 but log4j as far as i know supports even java 7.. so i have a feeling that can't be it (that it won't run on java 8) On Mon, 20 Dec 2021 at 19:15, Daniela Morais wrote: > I'm trying to upgrade Log4j2 dependencies to 2.15.0 and I'

Re: Log4j 2.15.0 and Tomcat 9.0.56

2021-12-20 Thread Sebastian Hennebrüder
We are running Tomcat 9 on Java 11 without any issues, but you probably want to test it with your application. > Am 20.12.2021 um 19:15 schrieb Daniela Morais : > > I'm trying to upgrade Log4j2 dependencies to 2.15.0 and I'm facing > this issue. Is there any workaround or the only option is to u

Re: log4j CVE general question

2021-12-13 Thread Christopher Schultz
chris -Original Message- From: Christopher Schultz Sent: Monday, December 13, 2021 11:39 AM To: users@tomcat.apache.org Subject: Re: log4j CVE general question Jon, On 12/13/21 11:51, jonmcalexan...@wellsfargo.com.INVALID wrote: So, based on these entries on the log4j apache pages, I c

RE: log4j CVE general question

2021-12-13 Thread jonmcalexander
lease advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. > -Original Message- > From: jonmcalexan...@wellsfargo.com.INVALID > > Sent: Monday, December 13, 2021 11:48 AM > To: users@tomcat.apache.org > Subject: RE: log

RE: log4j CVE general question

2021-12-13 Thread jonmcalexander
our cooperation. > -Original Message- > From: Christopher Schultz > Sent: Monday, December 13, 2021 11:39 AM > To: users@tomcat.apache.org > Subject: Re: log4j CVE general question > > Jon, > > On 12/13/21 11:51, jonmcalexan...@wellsfargo.com.INVALID wrote: > > So, bas

Re: log4j CVE general question

2021-12-13 Thread Christopher Schultz
Jon, On 12/13/21 11:51, jonmcalexan...@wellsfargo.com.INVALID wrote: So, based on these entries on the log4j apache pages, I can't see that any 1x product is vulnerable. Mark, is there some message from Apache that we can share with those that need to know that for certain 1x log4j is NOT vulner

Re: log4j failed on tomcat9

2020-05-08 Thread AJ Chen
More test info trying to isolate the problem: Task: developing web app project on eclipse 2019 version. main project includes a dependent project (sub-project) on the same eclipse. Run main app as java app: main app vm parameters include: -Dlog4j.configurationFile, LogManager.getLogger() retu

Re: log4j failed on tomcat9

2020-05-08 Thread AJ Chen
Hi Mark, I also use log4j2 in my web app. dev in eclipse, when adding the log4j2 jars to tomcat 7,8, or 9 runtime, it has this problem, log4j2.xml is provided as VM parameter. Web app firsts instantiates log4j2, and then tries to config log4j2 again, throwing the following error due to double clas

Re: log4j failed on tomcat9

2020-05-08 Thread AJ Chen
Hi Chris, my web app META-INF/lib has log4j jar, but CATALINA_BASE/lib does not have log4j jar listed. It should be double loading class issue. I need to find out how to exclude the unwanted classloading. -aj On Thu, May 7, 2020 at 2:48 PM Christopher Schultz < ch...@christopherschultz.net> wrot

Re: log4j failed on tomcat9

2020-05-08 Thread AJ Chen
Hi Luis, good blog for logging settings. thanks. -aj On Thu, May 7, 2020 at 11:42 PM Luis Rodríguez Fernández wrote: > Hello AjChen, > > Here [1] you can find an example of how I configured log4j2 in tomcat 9. > You can skip all the bla, bla, bla and go directly to the gitthub repo [2] > and ru

Re: log4j failed on tomcat9

2020-05-07 Thread Luis Rodríguez Fernández
Hello AjChen, Here [1] you can find an example of how I configured log4j2 in tomcat 9. You can skip all the bla, bla, bla and go directly to the gitthub repo [2] and run the example to have a look at the configuration. Note: I've been running like this for a while in production, but I do think th

Re: log4j failed on tomcat9

2020-05-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 AJ, On 5/7/20 16:40, AJ Chen wrote: > I use eclipse to develop web app for tomcat, Web app has a > dependent project and so the dependent project and all jars are > added on the classpath for tomcat runtime. Log4j works on tomcat 6. > But after upgr

Re: log4j failed on tomcat9

2020-05-07 Thread Mark Thomas
On 07/05/2020 21:40, AJ Chen wrote: > I use eclipse to develop web app for tomcat, Web app has a dependent > project and so the dependent project and all jars are added on the > classpath for tomcat runtime. Log4j works on tomcat 6. But after upgrate to > tomcat 9, log4j failed to start with the fo

RE: log4j app logging

2019-01-07 Thread Lemke, Michael ST/HZA-ZIC2
On Thursday, December 27, 2018 5:35 PM, Mark H. Wood wrote: >On Wed, Dec 19, 2018 at 06:52:20PM +, Lemke, Michael ST/HZA-ZIC2 wrote: >> On December 19, 2018 6:54 PM Lemke, Michael wrote: >> >On December 18, 2018 8:52 PM Christopher Schultz wrote: >> >>On 12/18/18 12:42, Lemke, Michael ST/HZA-

Re: log4j app logging

2018-12-27 Thread Mark H. Wood
On Wed, Dec 19, 2018 at 06:52:20PM +, Lemke, Michael ST/HZA-ZIC2 wrote: > On December 19, 2018 6:54 PM Lemke, Michael wrote: > >On December 18, 2018 8:52 PM Christopher Schultz wrote: > >>On 12/18/18 12:42, Lemke, Michael ST/HZA-ZIC2 wrote: > >>> I have an old webapp that uses log4j 1.2 and w

RE: log4j app logging

2018-12-19 Thread Lemke, Michael ST/HZA-ZIC2
On December 19, 2018 6:54 PM Lemke, Michael wrote: >On December 18, 2018 8:52 PM Christopher Schultz wrote: >>On 12/18/18 12:42, Lemke, Michael ST/HZA-ZIC2 wrote: >>> I have an old webapp that uses log4j 1.2 and which I am trying to >>> deploy on tomcat. For the heck of it I can't get tomcat to u

RE: log4j app logging

2018-12-19 Thread Lemke, Michael ST/HZA-ZIC2
Christopher, On December 18, 2018 8:52 PM Christopher Schultz wrote: >On 12/18/18 12:42, Lemke, Michael ST/HZA-ZIC2 wrote: >> I have an old webapp that uses log4j 1.2 and which I am trying to >> deploy on tomcat. For the heck of it I can't get tomcat to use the >> log4.properties file. What am

Re: log4j app logging

2018-12-18 Thread Christopher Schultz
nt: Tuesday, > December 18, 2018 7:49 PM > > Michael, > > Tomcat uses JULI internally. Have you taken necessary steps to > redirect JULI to log4j? > > Thanks, Ryan > > ________ From: Lemke, Michael ST/HZA-ZIC2 > Sent: Tuesday, December 18, 20

Re: log4j app logging

2018-12-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Michael, On 12/18/18 12:42, Lemke, Michael ST/HZA-ZIC2 wrote: > I have an old webapp that uses log4j 1.2 and which I am trying to > deploy on tomcat. For the heck of it I can't get tomcat to use the > log4.properties file. What am I doing wrong?

RE: log4j app logging

2018-12-18 Thread Lemke, Michael ST/HZA-ZIC2
ichael, Tomcat uses JULI internally. Have you taken necessary steps to redirect JULI to log4j? Thanks, Ryan From: Lemke, Michael ST/HZA-ZIC2 Sent: Tuesday, December 18, 2018 10:20 AM To: Tomcat Users List Subject: RE: log4j app logging On December 18, 2018

Re: log4j app logging

2018-12-18 Thread Ryan Palmer
Michael, Tomcat uses JULI internally. Have you taken necessary steps to redirect JULI to log4j? Thanks, Ryan From: Lemke, Michael ST/HZA-ZIC2 Sent: Tuesday, December 18, 2018 10:20 AM To: Tomcat Users List Subject: RE: log4j app logging On December 18, 2018 6

RE: log4j app logging

2018-12-18 Thread Lemke, Michael ST/HZA-ZIC2
On December 18, 2018 6:59 PM Ryan Palmer wrote: > >The file needs to be named log4j.properties (or .xml, >.json, etc.) and needs to be in the classpath. You ommitted the 'j'. Thanks for spotting this. Unfortunately, this typo was only in the email: pc# ls src/main/resour

Re: log4j app logging

2018-12-18 Thread Ryan Palmer
Michael, The file needs to be named log4j.properties (or .xml, .json, etc.) and needs to be in the classpath. You ommitted the 'j'. Sent from BlueMail On Dec 18, 2018, at 9:42 AM, "Lemke, Michael ST/HZA-ZIC2" mailto:lemke...@schaeffler.

Re: log4j: Logging to same file from multiple contexts?

2018-10-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 David, On 10/8/18 14:27, David Filip wrote: > Dear Tomcat Users, > > Apologies if this is more of a log4j question, but I thought that > I'd start here, in case Tomcat has any easy remedies. > > I have a common webapp that I deploy to multiple, di

RE: log4j: Logging to same file from multiple contexts?

2018-10-08 Thread Jäkel , Guido
Dear Dave, I walk through that years before, too. Yes - you can't let write different Log4J Appenders to the same file or you get this garbage. Yes - you have property resolving here, but there are no properties you need. We did a solution using an additional servlet called at application ini

Re: log4j

2018-05-22 Thread Luis Rodríguez Fernández
Hello Chris, You can have a look here: https://logging.apache.org/log4j/2.x/log4j-appserver/index.html Hope it helps, Luis 2018-05-18 19:55 GMT+02:00 George Stanchev : > 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

RE: log4j

2018-05-18 Thread George Stanchev
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, Chris Sent: Frida

Re: log4j

2018-05-18 Thread José Cornado
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. Manna wrote: > Hi Chris, > > How r u planning to use Log4j (or log4j2, which solves a lot of performance > issues for 1.2.x)? > > Are you bridgin

Re: log4j

2018-05-18 Thread M. Manna
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 cor

Re: log4j in Tomcat 8.5

2017-02-02 Thread Mark Thomas
On 02/02/17 21:53, George Stanchev wrote: Hi, I am transitioning from Tomcat 7.0 to Tomcat 8.5 and I was wondering what do I need to do to use log4j in 8.5. Reading this bug [1], it states that the support for the for log4j has been dropped since it is EOLed. Now, there is a comment on this i

Re: Log4j Issue

2016-08-10 Thread Mark Eggers
Syed, Please do not top post. See: http://tomcat.apache.org/lists.html#tomcat-users item 6. My responses are inline. On 8/10/2016 1:43 AM, Syed Mudassir Ahmed wrote: > Mark, > Thanks for the response. > Indeed I am using Log4j-2. Below is my xml file: > > > > > > filePattern

Re: Log4j Issue

2016-08-10 Thread Syed Mudassir Ahmed
Mark, Thanks for the response. Indeed I am using Log4j-2. Below is my xml file: date:%d, millisecs:%r, level:%p, logger:%c, thread:[%t], file:%F, method:%M, line:%L, message:%m%n%n

Re: Log4j Issue

2016-08-09 Thread Mark Eggers
Syed, On 8/9/2016 10:08 PM, Syed Mudassir Ahmed wrote: > I am using Log4j in my web app to write the logs to a separate file. > Surprisingly, that log file is not at all getting created. I run > the logger logic as a standalone application and the log file indeed > gets created. I am assuming t

Re: Log4j problems after replacing tomcat7 to tomcat8

2015-10-25 Thread Konstantin Kolinko
2015-10-25 16:59 GMT+03:00 Hani Nabwani : > Tomcat version 8.0.28. > Os: linux.3.14.44-32.39. > > I am running tomcat8, before that i ran tomcat7 with no problems. > After new tomcat8 release i uninstalled tomcat7 and installed tomcat8. > Then the log file of my app is never created, i tried to sea

Re: Log4j with Apache Tomcat 8.0.17

2015-01-21 Thread Mark Thomas
On 21/01/2015 21:04, George Sexton wrote: > Thank you. That worked. Should i open a ticket in bugzilla to fix the doc? Please. Mark > > > On 1/21/2015 1:43 PM, Mark Thomas wrote: >> On 21/01/2015 20:27, George Sexton wrote: >>> I'm having a problem configuring log4j with Apache Tomcat 8.0.17.

Re: Log4j with Apache Tomcat 8.0.17

2015-01-21 Thread George Sexton
Thank you. That worked. Should i open a ticket in bugzilla to fix the doc? On 1/21/2015 1:43 PM, Mark Thomas wrote: On 21/01/2015 20:27, George Sexton wrote: I'm having a problem configuring log4j with Apache Tomcat 8.0.17. I'm using OpenSUSE 13.2 with OpenJDK 8.0: linux:>java -version openjd

Re: Log4j with Apache Tomcat 8.0.17

2015-01-21 Thread Mark Thomas
On 21/01/2015 20:27, George Sexton wrote: > I'm having a problem configuring log4j with Apache Tomcat 8.0.17. I'm > using OpenSUSE 13.2 with OpenJDK 8.0: > > linux:>java -version > openjdk version "1.8.0_40" > OpenJDK Runtime Environment (build 1.8.0_40-b10) > OpenJDK 64-Bit Server VM (build 25.40

Re: log4j to write Tomcat logs to Windows Event Log

2012-07-24 Thread sandy
Hello, Did you install Tomcat as a Windows service using the installer for windows? If that's the case, review your configuration. The same occurred to me and I solved it by configuring the service. Right-click on tomcat icon at the systray and then click on "Configure...". In the "Java" tab, in

Re: log4j to write Tomcat logs to Windows Event Log

2012-07-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kevin, On 7/9/12 11:52 AM, Dunbar, Kevin D CIV SPAWARSYSCEN-PACIFIC, 56250 wrote: > Thank you Chris and Konstantin for replying to my message. Here is > the contents of the log4j.properties file... (This was taken from > the instructions on the Tomca

RE: log4j to write Tomcat logs to Windows Event Log

2012-07-09 Thread Dunbar, Kevin D CIV SPAWARSYSCEN-PACIFIC, 56250
-0777 kevin.dun...@navy.mil From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Sun 7/8/2012 9:33 AM To: Tomcat Users List Subject: Re: log4j to write Tomcat logs to Windows Event Log -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On

Re: log4j to write Tomcat logs to Windows Event Log

2012-07-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 7/8/12 5:40 AM, Konstantin Kolinko wrote: > Your log4j.properties is wrong? +1 Kevin, can you post your log4j.properties file? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://

Re: log4j to write Tomcat logs to Windows Event Log

2012-07-08 Thread Konstantin Kolinko
2012/7/7 Dunbar, Kevin D CIV SPAWARSYSCEN-PACIFIC, 56250 : > Hi, > > I am trying to use log4j.jar to do the logging in Tomcat 7.0.27 (on Windows > XP) instead of java.util.logging so that I can append the logs to be output > to the Windows Event Log. > > I followed the instructions to configure T

Re: Log4j per context admin managable configs?

2011-10-06 Thread Rainer Jung
On 07.10.2011 03:12, Ilya Kazakevich wrote: > Hello, > > My app uses log4j. I have several apps running in my tomcat 6 in different > contexts. I want to log them to different files but filenames (as well as > levels and even appenders) should be configurable by admin. > > Something like this: >

Re: log4j logging works for webapps but not for server,

2011-06-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 6/24/2011 12:18 PM, jjgtx wrote: > Christopher Schultz-2 wrote: >> Where did you put your log4j.properties file and what does it contain? >> Can you just post the whole thing? > > [I put log4j.properties in] $CATALINA_HOME/l

Re: log4j logging works for webapps but not for server,

2011-06-24 Thread jjgtx
Where did you put your log4j.properties file and what does it contain? Can you just post the whole thing? $CATALINA_HOME/lib I hate to post the whole thing, its a bit long would it be better to send it? One thing I was curious about is that should be the value of the $LOGGING_CONFIG propert

Re: log4j logging works for webapps but not for server,

2011-06-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 6/23/2011 5:44 PM, jjgtx wrote: > Followed the > instructions at http://tomcat.apache.org/tomcat-6.0-doc/logging.html > replacing the tomcat-juli.jar file in $CATALINA_HOME/bin with the one from > extras and placing the log4

Re: log4j config

2011-05-16 Thread Konstantin Kolinko
2011/5/17 Bruce Pease : > I have an issue with log4j 1.2.16 where the max file size on the rolling file > appender is not working (also not on 1.2.15)  However, when I go back to my > previous log4j version (1.2.9), the file backups do work.  Was there a config > change, or is this a known issue?  

Re: log4j

2010-07-08 Thread Pid
This would be a question for the log4j list, no? p On 8 Jul 2010, at 11:25, Kaushal Shriyan wrote: > Hi, > > Is there a way to run log4j appender at a specified time? > > log4j.rootLogger=INFO, R > log4j.appender.R=org.apache.log4j.DailyRollingFileAppender > log4j.appender.R.File=${catalina.

RE: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-06 Thread Caldarale, Charles R
> From: Mark H. Wood [mailto:mw...@iupui.edu] > Subject: Re: Log4j logging doesn't work when a web application is moved > outside Tomcat/webapps directory > > Maybe because the documentation doesn't say it's improper; The current documentation for states (in bold):

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-06 Thread Mark H. Wood
On Wed, May 05, 2010 at 08:31:33AM -0500, Caldarale, Charles R wrote: > As always, don't put elements in server.xml. The above got you > double deployment of the foo webapp, once as foo, once as the default. > > Why do people invite problems when it's so easy to do things properly? Maybe becau

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-05 Thread Joe Hansen
Mark, Chuck, Andre, and Charles, You guys rock! Mark, I followed your recommendations and 1. I copied the virtual host webapps directories outside Tomcat. c:/hosts/abc.local/webapps c:/hosts/xyz.local/webapps 2. Copied the manager.xml to Tomcat/conf/Catalina/abc.local and Tomcat/conf/Catalina/xyz.

RE: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-05 Thread Caldarale, Charles R
> From: Mark Eggers [mailto:its_toas...@yahoo.com] > Subject: Re: Log4j logging doesn't work when a web application is moved > outside Tomcat/webapps directory > > I just hacked together a quick example on Windows/XP Professional. > > That was a nice and concise

RE: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-05 Thread Caldarale, Charles R
> From: Nuno Faria [mailto:nuno.m.fa...@gmail.com] > Subject: Re: Log4j logging doesn't work when a web application is moved > outside Tomcat/webapps directory > > Following this thread and reading the docs I created virtual hosts > using the same webapps dir That'

RE: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-05 Thread Caldarale, Charles R
> From: Mark Eggers [mailto:its_toas...@yahoo.com] > Subject: Re: Log4j logging doesn't work when a web application is moved > outside Tomcat/webapps directory > > Note that I do not have any non-Tomcat jar in apache-tomcat-6.0.26 > besides JDBC jars at this point. Wh

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-05 Thread Nuno Faria
I was having a similar problem moving a Tomcat 5.5 configuration to 6.0. Following this thread and reading the docs I created virtual hosts using the same webapps dir (it is a development environment with CVS and I would have to change many things to accomplish one webapp folder per virtual host).

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-05 Thread André Warnier
That was a nice and concise write-up, well-worth of an article in the Tomcat FAQ/WIKI. "How to setup Tomcat with 3 virtual hosts, each with its own homepage and Manager (and other) applications, and its own logfiles". My only minor remark : Mark Eggers wrote: ... Finally for my setup, I adde

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-05 Thread Mark Eggers
org.springframework.web.servlet.DispatcherServlet 2 dispatcher *.htm 30 redirect.jsp Sorry for the formatting. Hope this helps. I hate to say this . . . it works for me. /mde/ --- On Tue

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-05 Thread Pid
On 05/05/2010 02:24, Caldarale, Charles R wrote: >> From: Joe Hansen [mailto:joe.hansen...@gmail.com] >> Subject: Re: Log4j logging doesn't work when a web application is moved >> outside Tomcat/webapps directory >> >> Scenario 1: >> log4j.jar is in Tomcat

RE: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Caldarale, Charles R
> From: Joe Hansen [mailto:joe.hansen...@gmail.com] > Subject: Re: Log4j logging doesn't work when a web application is moved > outside Tomcat/webapps directory > > Scenario 1: > log4j.jar is in Tomcat/lib directory > log4j.jar is NOT in WEB-INF/lib directories Have yo

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
This thread has grown too long. For anyone following this thread, here's the summary: Two web applications, each with a Virtual Host entry in server.xml file. Tomcat/webapps-abc Tomcat/webapps-xyz These two web applications have different log4j.properties files. These log4j property files log to

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread André Warnier
Joe Hansen wrote: Chuck, please note that when commons-logging.jar is present only in the WEB-INF/lib directory, I get the following error: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory So, either I get a) Invalid class loader hierarchy. You have more than one version of

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
pps-common-lib-logging/ But that doesn't solve my issue. Thanks, Joe On Tue, May 4, 2010 at 4:58 PM, Caldarale, Charles R wrote: >> From: Joe Hansen [mailto:joe.hansen...@gmail.com] >> Subject: Re: Log4j logging doesn't work when a web application is moved >> outsi

RE: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Caldarale, Charles R
> From: Joe Hansen [mailto:joe.hansen...@gmail.com] > Subject: Re: Log4j logging doesn't work when a web application is moved > outside Tomcat/webapps directory > > When commons-logging.jar is present in Tomcat/lib and WEB-INF/lib > directories, I get the following erro

RE: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Log4j logging doesn't work when a web application is moved > outside Tomcat/webapps directory > > Oh, I forgot to mention in my other message: you should put log4j.log > into your webapp&

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
Thanks for the reply, Charles! When commons-logging.jar is present in Tomcat/lib and WEB-INF/lib directories, I get the following error : Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. Here's the complete stack tr

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, On 5/4/2010 6:15 PM, Joe Hansen wrote: > There are common classes in Tomcat/lib/ but they don't attempt to do > any logging. Are you sure? > However, the abc Spring Web application does initialize a > Quartz object which runs once every hour an

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, On 5/4/2010 1:59 PM, Joe Hansen wrote: > 2. But the web application logging is working wierdly.The log entries > are written to c:\Tomcat\logs\xyz.log (i.e. the xyz web application's > log) instead of writing to c:\Tomcat\logs\abc.log. . > > He

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
Chuck, There are common classes in Tomcat/lib/ but they don't attempt to do any logging. However, the abc Spring Web application does initialize a Quartz object which runs once every hour and does some logging. I don't know if that has any implications. Thanks, Joe Here's the stack trace from ca

RE: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Caldarale, Charles R
> From: Joe Hansen [mailto:joe.hansen...@gmail.com] > Subject: Re: Log4j logging doesn't work when a web application is moved > outside Tomcat/webapps directory > > Initially I placed log4j-1.2.15.jar in the c:\Tomcat\lib > directory only. This resulted in abc webapp log

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
Hansen [mailto:joe.hansen...@gmail.com] >> Subject: Re: Log4j logging doesn't work when a web application is moved >> outside Tomcat/webapps directory >> >> However, logging is still an issue. One webapp's log4j seems to stomp >> over other webapp's log fi

RE: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Caldarale, Charles R
> From: Joe Hansen [mailto:joe.hansen...@gmail.com] > Subject: Re: Log4j logging doesn't work when a web application is moved > outside Tomcat/webapps directory > > However, logging is still an issue. One webapp's log4j seems to stomp > over other webapp's log f

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Pid
upIndex=4 And what about the xyz one? p > Please advise! > > Thank you! > Joe > > On Tue, May 4, 2010 at 11:30 AM, Caldarale, Charles R > wrote: >>> From: Joe Hansen [mailto:joe.hansen...@gmail.com] >>> Subject: RE: Log4j logging doesn't work whe

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 5/4/2010 4:08 PM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: Log4j logging doesn't work when a web application is moved >> outside Tomcat/webapps d

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
Thanks Andre and Chuck. Andre, I renamed Tomcat/abc/ to Tomcat/webapps-abc/ to keep the naming consistent. The directory structure that you've advocated is exactly the same as the one Chuck told me. And I have implemented that. However, logging is still an issue. One webapp's log4j seems to stomp

RE: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Log4j logging doesn't work when a web application is moved > outside Tomcat/webapps directory > > You want this: > > webapps/abc > webapps/abc/ROOT <-- this is your "ab

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, On 5/4/2010 1:26 PM, Joe Hansen wrote: > I have written two web applications abc and xyz. I have mapped > abc.local and xyz.local to my machine's IP Address in my Windows HOST > file. So when I visit http://abc.local, I would want the abc web > a

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread André Warnier
Joe Hansen wrote: Many Thanks for the link Chuck! Here's what I did. 1. Created a directory named c:\Tomcat\abc\ROOT. 2. Moved the previous contents of c:\Tomcat\webapps\abc to c:\Tomcat\abc\ROOT directory. ... Let me throw in my grain of salt. I like things organised in a logical way, with a

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
%n log4j.appender.A2.File=c:/Tomcat6/logs/trestlewood.log log4j.appender.A2.MaxFileSize=100KB log4j.appender.A2.MaxBackupIndex=4 Please advise! Thank you! Joe On Tue, May 4, 2010 at 11:30 AM, Caldarale, Charles R wrote: >> From: Joe Hansen [mailto:joe.hansen...@gmail.com] >> Subject

RE: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Caldarale, Charles R
> From: Joe Hansen [mailto:joe.hansen...@gmail.com] > Subject: RE: Log4j logging doesn't work when a web application is moved > outside Tomcat/webapps directory > Looks like I have some reading to do! Will post back after > I read some Tomcat documentation. Start here: http

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
Thanks for the reply, Mark. You made me understand the mess I have created. I have written two web applications abc and xyz. I have mapped abc.local and xyz.local to my machine's IP Address in my Windows HOST file. So when I visit http://abc.local, I would want the abc web application to be access

RE: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Caldarale, Charles R
> From: Joe Hansen [mailto:joe.hansen...@gmail.com] > Subject: Re: Log4j logging doesn't work when a web application is moved > outside Tomcat/webapps directory > > > > elements. They must be distinct. > >

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Mark Thomas
On 04/05/2010 17:59, Joe Hansen wrote: > Mark, Here's the server.xml before moving abc out of the webapps directory: > >unpackWARs="true" autoDeploy="true" > xmlValidation="false" xmlNamespaceAware="false"> > >

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
Mark, Here's the server.xml before moving abc out of the webapps directory: On Tue, May 4, 2010 at 10:53 AM, Mark T

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Mark Thomas
On 04/05/2010 17:43, Joe Hansen wrote: > Thank you for the super quick reply Mark! We are using Java Spring. > The reason for moving the web application out of the webapps directory > was that the Spring Context Loader was loading twice. First because > its in the webapps directory. Secondly, becau

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
Thank you for the super quick reply Mark! We are using Java Spring. The reason for moving the web application out of the webapps directory was that the Spring Context Loader was loading twice. First because its in the webapps directory. Secondly, because it is being referred to by the entry in the

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Mark Thomas
On 04/05/2010 17:32, Joe Hansen wrote: > Hey all, > > We are using Tomcat 6 on a Windows XP box. We have a web application > named abc. It was initially in the c:\Tomcat\webapps directory. I then > moved the c:\Tomcat\webapps\abc directory to c:\Tomcat\abc. I then > changed the Tomcat/conf/server.

Re: log4j :ERROR LogMananger.repositorySelector was null likely duetoerror

2010-03-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 2/26/2010 3:54 PM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: log4j :ERROR LogMananger.repositorySelector was null >> likely duetoerror >> &g

RE: log4j :ERROR LogMananger.repositorySelector was null likely duetoerror

2010-02-26 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: log4j :ERROR LogMananger.repositorySelector was null > likely duetoerror > > 4) Use jinfo, a program that comes with the JDK for sure, possibly with > the JRE as well. It doesn't come wit

Re: log4j :ERROR LogMananger.repositorySelector was null likely dueto error

2010-02-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 2/26/2010 9:13 AM, Caldarale, Charles R wrote: >> From: Christoph Kukulies [mailto:k...@kukulies.org] >> Subject: Re: log4j :ERROR LogMananger.repositorySelector was null >> likely dueto error >> >> Is there a

RE: log4j :ERROR LogMananger.repositorySelector was null likely dueto error

2010-02-26 Thread Caldarale, Charles R
> From: Christoph Kukulies [mailto:k...@kukulies.org] > Subject: Re: log4j :ERROR LogMananger.repositorySelector was null > likely dueto error > > Is there a way to interrogate the running tomcat (catalina) process > about it's set parameters? 1) Use JConsole (tricky with

RE: log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread Caldarale, Charles R
> From: Christoph Kukulies [mailto:k...@kukulies.org] > Subject: Re: log4j :ERROR LogMananger.repositorySelector was null > likely due to error > > Since passing start parameters under Windows (service manager) is weird Use the Java tab of the tomcat6w.exe program to set startup

Re: log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread André Warnier
Christoph Kukulies wrote: Mark Thomas schrieb: On 26/02/2010 11:16, Christoph Kukulies wrote: Mark Thomas schrieb: On 26/02/2010 09:47, Christoph Kukulies wrote: I would be glad if I could get some help on m problem getting solved here. http://tomcat.apache.org/tomcat-6.0-doc/config/systemp

Re: log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread Christoph Kukulies
Mark Thomas schrieb: On 26/02/2010 11:16, Christoph Kukulies wrote: Mark Thomas schrieb: On 26/02/2010 09:47, Christoph Kukulies wrote: I would be glad if I could get some help on m problem getting solved here. http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html org.apache.catali

Re: log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread Christoph Kukulies
Mark Thomas schrieb: On 26/02/2010 11:16, Christoph Kukulies wrote: Mark Thomas schrieb: On 26/02/2010 09:47, Christoph Kukulies wrote: I would be glad if I could get some help on m problem getting solved here. http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html org.apache.catali

Re: log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread Mark Thomas
On 26/02/2010 11:16, Christoph Kukulies wrote: Mark Thomas schrieb: On 26/02/2010 09:47, Christoph Kukulies wrote: I would be glad if I could get some help on m problem getting solved here. http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html org.apache.catalina.loader.WebappClassL

Re: log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread Christoph Kukulies
Mark Thomas schrieb: On 26/02/2010 09:47, Christoph Kukulies wrote: I would be glad if I could get some help on m problem getting solved here. http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES Mark Excuse me,

Re: log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread Christoph Kukulies
Mark Thomas schrieb: On 26/02/2010 09:47, Christoph Kukulies wrote: I would be glad if I could get some help on m problem getting solved here. http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES Mark Thanks. Gr

Re: log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread Mark Thomas
On 26/02/2010 09:47, Christoph Kukulies wrote: I would be glad if I could get some help on m problem getting solved here. http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES Mark ---

Re: log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread Christoph Kukulies
Pid schrieb: On 26/02/2010 09:47, Christoph Kukulies wrote: I'm turning to this mailing list now after I posted my problem to the Opencms mailing list at opencms.org. And someone from that list gave me a hint that my problem could possibly have something to do with the folling citation: http://

Re: log4j :ERROR LogMananger.repositorySelector was null likely due to error

2010-02-26 Thread Pid
On 26/02/2010 09:47, Christoph Kukulies wrote: I'm turning to this mailing list now after I posted my problem to the Opencms mailing list at opencms.org. And someone from that list gave me a hint that my problem could possibly have something to do with the folling citation: http://mail-archives.

  1   2   3   >