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
colornet.com] >Sent: Monday, October 08, 2018 8:28 PM >To: users@tomcat.apache.org >Subject: log4j: Logging to same file from multiple contexts? > >Dear Tomcat Users, > >Apologies if this is more of a log4j question, but I thought that I'd start >here, in case Tomcat

log4j: Logging to same file from multiple contexts?

2018-10-08 Thread David Filip
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, different contexts. In log4j.properties, I have a few different log files defined, e.g., for logins: log4

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
-- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://old.nabble.com/log4j-logging-works-for-webapps-but-not-f

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 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
paceAware="false"> >>                       >>                               > name="jdbc/MySqlDatabase" type="javax.sql.DataSource" /> >>                       >>         >> >> Though the web application itself works fine, the

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

2010-05-04 Thread Mark Thomas
name="jdbc/MySqlDatabase" type="javax.sql.DataSource" /> > > > > Though the web application itself works fine, the web application > logging no longer works after this change! How do I get the log4j > loggi

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

2010-05-04 Thread Joe Hansen
... Though the web application itself works fine, the web application logging no longer works after this change! How do I get the log4j logging to work again? Please advice! Thank you, Joe log4j-1.2.15.jar file

Re: Log4J logging from server not working

2008-07-29 Thread Thomas Haines
y 29, 2008 9:49:08 AM Subject: Log4J logging from server not working I've been stuck with this problem for about a week now. I am trying to get the Log4J working in my servlet. I have tried it on Tomcat 6.0.16 as well as Tomcat 5.5.26. I have followed all the directions in the logging sectio

Re: Log4J logging from server not working

2008-07-29 Thread Denis Kezerashvili
AM Subject: Log4J logging from server not working I've been stuck with this problem for about a week now. I am trying to get the Log4J working in my servlet. I have tried it on Tomcat 6.0.16 as well as Tomcat 5.5.26. I have followed all the directions in the logging section for both version

Log4J logging from server not working

2008-07-29 Thread Denis Kezerashvili
I've been stuck with this problem for about a week now. I am trying to get the Log4J working in my servlet. I have tried it on Tomcat 6.0.16 as well as Tomcat 5.5.26. I have followed all the directions in the logging section for both versions. The internal logging works fine in both cases. Howeve

Re: Log4j Logging

2008-06-24 Thread David Fisher
It now points to http://tomcat.apache.org/tomcat-4.1-doc/config/logger.html That's perfect for me. Thank you very much, Dave On Jun 24, 2008, at 3:30 PM, Mark Thomas wrote: David Fisher wrote: (3) On the logger FAQ page the Configuration link is dead! http://tomcat.apache.org/tomcat-5.0-doc/c

Re: Log4j Logging

2008-06-24 Thread Mark Thomas
Walter Thompson wrote: The same one you claimed to have fixed the 404 error on! (3) On the logger FAQ page the Configuration link is dead! http://tomcat.apache.org/tomcat-5.0-doc/config/logger.html gives a 404. Of course it will give a 404. That URL doesn't exist which is why I updated the

RE: Log4j Logging

2008-06-24 Thread Walter Thompson
2008 3:45 PM To: Tomcat Users List Subject: Re: Log4j Logging Walter Thompson wrote: > OK. It doesn't give 404, how about fixing the page not found on this > server error too? I'm not a mind reader. Which link is broken? Mark --

Re: Log4j Logging

2008-06-24 Thread Mark Thomas
Walter Thompson wrote: OK. It doesn't give 404, how about fixing the page not found on this server error too? I'm not a mind reader. Which link is broken? Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsu

RE: Log4j Logging

2008-06-24 Thread Walter Thompson
OK. It doesn't give 404, how about fixing the page not found on this server error too? -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 3:30 PM To: Tomcat Users List Subject: Re: Log4j Logging David Fisher wrote: > (3) On the logger

Re: Log4j Logging

2008-06-24 Thread Mark Thomas
David Fisher wrote: (3) On the logger FAQ page the Configuration link is dead! http://tomcat.apache.org/tomcat-5.0-doc/config/logger.html gives a 404. Fixed. Note, the FAQ is now on a wiki so anyone who spots an error can just fix it. Mark ---

Re: Log4j Logging

2008-06-24 Thread David Fisher
(This must be national logging questions month :-) More like International logging month - everyone upgrading to tomcat 5.5 or better is forced to confront this issue, many are under a lot of pressure, and they don't all read English. The differences are subtle and lost in translation.

[OT/stupid] Re: Log4j Logging

2008-06-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: |> From: Hexsel, Gustavo [mailto:[EMAIL PROTECTED] |> Subject: Log4j Logging | | (This must be national logging questions month :-) Logging too much is bad for the environment. You should recycle your tel

RE: Log4j Logging

2008-06-24 Thread Hexsel, Gustavo
per log statement was what drove me insane in the first place). []s Gus -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 10:57 AM To: Tomcat Users List Subject: RE: Log4j Logging > From: Hexsel, Gustavo [mailto:[EMAIL PROTEC

RE: Log4j Logging

2008-06-24 Thread Caldarale, Charles R
> From: Hexsel, Gustavo [mailto:[EMAIL PROTECTED] > Subject: Log4j Logging (This must be national logging questions month :-) > if, according to > http://tomcat.apache.org/tomcat-6.0-doc/logging.html, > log4j is the recommended logger I don't see anything on that page t

Log4j Logging

2008-06-24 Thread Hexsel, Gustavo
Hey folks, quick question: if, according to http://tomcat.apache.org/tomcat-6.0-doc/logging.html, log4j is the recommended logger, and Tomcat uses commons-logging, why is log4j not shipped as the default logger??? I suspect "as Tomcat uses a package renamed logging implementation which is

Can log4j logging be configured on a CATALINA_BASE basis?

2006-11-03 Thread Mike Hanafey
s not appear to work, and of course putting the configuration under CATALINE_HOME/common/classes means all instances share the same logging configuration. Is there some way to specify log4j logging on a CATALINA_BASE basis? -- +---+ | Mike Ha

Re: Log4j logging !!!

2006-05-24 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. Thi

Re: Log4j logging !!!

2006-05-24 Thread Alexander E Genaud
WARN: ambiguous subject line TODO: make meaningful subject LOG: That should help get the answers you are looking for -- Alex -- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Log4j logging !!!

2006-05-23 Thread Natarajan S
Hai All, I am using netbean 5.0 with jakarta-tomcat-5.5.9. I am facing two problems. 1> i am using log4j for my website. it logs my application error messages with tomcat specific error messages with it. any one have idea how to make my logger should work for my application. 2> when i am com