Re: commons-logging problem

2009-10-09 Thread Konstantin Kolinko
ut in JAVA_OPTS or in CATALINA_OPTS? > Thanks. > -- > View this message in context: > http://www.nabble.com/commons-logging-problem-tp21736872p25816008.html - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org

RE: commons-logging problem

2009-10-08 Thread niaouli
Hi, Can you just tell me, please, if the option -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES should be put in JAVA_OPTS or in CATALINA_OPTS? Thanks. -- View this message in context: http://www.nabble.com/commons-logging-problem-tp21736872p25816008.html Sent from the

Re: commons-logging problem

2009-01-31 Thread John Holman
Certainly putting commons-logging and log4j in the container's common/lib directory is the documented configuration. However this does not allow application-level logging for libraries used by the application like digester or spring that themselves use commons logging. The application log messa

Re: commons-logging problem

2009-01-30 Thread Gregor Schneider
On Fri, Jan 30, 2009 at 8:33 PM, Rusty Wright wrote: > Does that work reliably now? I was under the impression that it caused > problems, but that may have been with a previous version of tomcat. That's > why I asked my "where else" question; I was wondering if that's what he was > thinking of.

Re: commons-logging problem

2009-01-30 Thread Rusty Wright
Does that work reliably now? I was under the impression that it caused problems, but that may have been with a previous version of tomcat. That's why I asked my "where else" question; I was wondering if that's what he was thinking of. Gregor Schneider wrote: On Fri, Jan 30, 2009 at 7:45 PM,

Re: commons-logging problem

2009-01-30 Thread Gregor Schneider
On Fri, Jan 30, 2009 at 7:45 PM, Rusty Wright wrote: > John Holman wrote: >> >> Also is it a supported configuration to use commons-logging and log4j in >> WEB-INF/lib? > > Where else would you put them? > i.e. ${CATALINA_HOME}/common/lib Saves the hazzle to put them into each webapp. Rgds Gre

Re: commons-logging problem

2009-01-30 Thread Rusty Wright
John Holman wrote: Also is it a supported configuration to use commons-logging and log4j in WEB-INF/lib? Where else would you put them? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-m

RE: commons-logging problem

2009-01-29 Thread Caldarale, Charles R
> From: John Holman [mailto:j.g.hol...@qmul.ac.uk] > Subject: Re: commons-logging problem > > Doing this does make me a bit nervous though, as we've had > problems with PermGen memory exhaustion in the past. I think your nervousness is quite justified. > is it worth

Re: commons-logging problem

2009-01-29 Thread John Holman
uk] Subject: commons-logging problem When packaged as a war file this combination reliably produces the exception shown below in the Tomcat console under the following circumstances: This is likely the result of a fix to prevent PermGen from filling up after some number of webapp redeplo

RE: commons-logging problem

2009-01-29 Thread Caldarale, Charles R
> From: John Holman [mailto:j.g.hol...@qmul.ac.uk] > Subject: commons-logging problem > > When packaged as a war file this combination reliably produces the > exception shown below in the Tomcat console under the following > circumstances: This is likely the result of a fix

commons-logging problem

2009-01-29 Thread John Holman
I have a web application running in Tomcat 5.5.27 with JDK 1.5.0_16-b02 on Windows XP SP3. log4j-1.2.15.jar and commons-logging-1.1.1.jar are installed in WEB-INF/lib and there is a context.xml file in META-INF. When packaged as a war file this combination reliably produces the exception shown be

Re: Logging Problem on Upgrade to Tomcat 6

2007-08-23 Thread Filip Hanik - Dev Lists
Lists [mailto:[EMAIL PROTECTED] Sent: 22 August 2007 21:19 To: Tomcat Users List Subject: Re: Logging Problem on Upgrade to Tomcat 6 Ashley Hollands wrote: There wasn't any trace at all - I added my own logging to tell me that one server had sent the message, but on the other server there was

Re: Logging Problem on Upgrade to Tomcat 6

2007-08-23 Thread Filip Hanik - Dev Lists
do you have an alternative place you would like it sent? Regards Ashley -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: 22 August 2007 21:19 To: Tomcat Users List Subject: Re: Logging Problem on Upgrade to Tomcat 6 Ashley Hollands wrote: There wasn

RE: Logging Problem on Upgrade to Tomcat 6

2007-08-23 Thread Ashley Hollands
-Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: 22 August 2007 21:19 To: Tomcat Users List Subject: Re: Logging Problem on Upgrade to Tomcat 6 Ashley Hollands wrote: > There wasn't any trace at all - I added my own logging to tell me that > one s

RE: Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Ashley Hollands
that if the rootCategory is set to ERROR in my web app log4j.properties then it should be logging all exceptions in the web app log? Ashley -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: 22 August 2007 21:19 To: Tomcat Users List Subject: Re: Logging Problem on

Re: Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Filip Hanik - Dev Lists
side of the scope of Tribes classloader, you are better off just sending a byte[] and do the serialization/deserialization yourself. Filip Ashley -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: 22 August 2007 20:39 To: Tomcat Users List Subject: Re

RE: Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Ashley Hollands
ist Subject: Re: Logging Problem on Upgrade to Tomcat 6 Ashley Hollands wrote: > OK - I'll run through the steps from scratch again and see if I have > more joy this time. > let me know how it goes, I can help out more. > By the way, I have been using Tribes in my application an

Re: Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Filip Hanik - Dev Lists
20:21 To: Tomcat Users List Subject: Re: Logging Problem on Upgrade to Tomcat 6 Ashley Hollands wrote: What is confusing me is that I never had to catch the exception and log it from within my application in Tomcat 4, 5 or 5.5 - it just appeared in the web app log automatically. Is there

RE: Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Ashley Hollands
Sent: 22 August 2007 20:21 To: Tomcat Users List Subject: Re: Logging Problem on Upgrade to Tomcat 6 Ashley Hollands wrote: > What is confusing me is that I never had to catch the exception and > log it from within my application in Tomcat 4, 5 or 5.5 - it just > appeared in the web ap

Re: Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Filip Hanik - Dev Lists
t: Re: Logging Problem on Upgrade to Tomcat 6 it will only log to the webapp.log if your application catches the exception, then issues a log.error("msg",exception) (tomcat will do the same assuming it was correctly configured) if you provide a sample war, I can validate it for you Filip

RE: Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Ashley Hollands
-Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: 22 August 2007 19:51 To: Tomcat Users List Subject: Re: Logging Problem on Upgrade to Tomcat 6 it will only log to the webapp.log if your application catches the exception, then issues a log.error("msg"

Re: Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Filip Hanik - Dev Lists
the web app log. Ashley -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: 22 August 2007 19:12 To: Tomcat Users List Subject: Re: Logging Problem on Upgrade to Tomcat 6 Ashley Hollands wrote: Thanks for the reply Filip if you want a global log4j

RE: Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Ashley Hollands
web app to the web app log. Ashley -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: 22 August 2007 19:12 To: Tomcat Users List Subject: Re: Logging Problem on Upgrade to Tomcat 6 Ashley Hollands wrote: > Thanks for the reply Filip > > >&

Re: Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Filip Hanik - Dev Lists
ge- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: 22 August 2007 18:03 To: Tomcat Users List Subject: Re: Logging Problem on Upgrade to Tomcat 6 if you want a global log4j (instead of tomcat's own framework) http://tomcat.apache.org/tomcat-6.0-doc/logging.html then you w

RE: Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Ashley Hollands
OTECTED] Sent: 22 August 2007 18:03 To: Tomcat Users List Subject: Re: Logging Problem on Upgrade to Tomcat 6 if you want a global log4j (instead of tomcat's own framework) http://tomcat.apache.org/tomcat-6.0-doc/logging.html then you will need to be tomcat-juli.jar and tomcat-juli-adapters.jar a

Re: Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Filip Hanik - Dev Lists
if you want a global log4j (instead of tomcat's own framework) http://tomcat.apache.org/tomcat-6.0-doc/logging.html then you will need to be tomcat-juli.jar and tomcat-juli-adapters.jar as described in the docs, let me know if you need more clarification Filip Ashley Hollands wrote: Hi I have

Logging Problem on Upgrade to Tomcat 6

2007-08-22 Thread Ashley Hollands
Hi I have recently upgraded from Tomcat 5.5 to 6.0 and from Java 1.5 to 6. I use Log4J for all my web application logging and have discovered that after the upgrade, any exceptions thrown in the web application are not logged to my web application log, but to the top-level Tomcat log. Does anybo

Logging Problem with unpackWARs="false"

2006-12-21 Thread James Dekker
Hello there, Am using JDK 1.5 and Tomcat 5.5.9... I have two init servlets for the following purposes: 1. One is for logging 2. The other is for loading (and parsing) XML based configuration files using Commons Digester. When I go to %CATALINA_HOME%/conf/server.xml and inside the tag, when I

Re: Tomcat logging problem

2006-10-04 Thread Tejas Dhedia
nge over time. -Original Message- From: Tejas Dhedia [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 6:00 PM To: users@tomcat.apache.org Subject: Tomcat logging problem Hi, I am running tomcat 5.5.17 under opensuse 10.1 and my JVM version is 1.5.0_06. I am running my tomca

RE: Tomcat logging problem

2006-10-03 Thread Rick Fisk
rtup and shutdown scripts change over time. -Original Message- From: Tejas Dhedia [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 6:00 PM To: users@tomcat.apache.org Subject: Tomcat logging problem Hi, I am running tomcat 5.5.17 under opensuse 10.1 and my JVM version is 1.5.0_0

Tomcat logging problem

2006-10-03 Thread Tejas Dhedia
Hi, I am running tomcat 5.5.17 under opensuse 10.1 and my JVM version is 1.5.0_06. I am running my tomcat as a seperate tomcat user and starting it at boot time using the following script in /etc/init.d. #!/bin/sh # # Startup script for Tomcat JAVA_HOME=/usr/lib/jvm/java export JAVA_HOME start_t

Re: per-webapp logging problem with Tomcat 5.5

2006-02-27 Thread Andreas Schildbach
Hi Boris, I have now switched my server to "one-properties-per-webabb" (inside webapp dir). It's not nice, but it works. Thanks a lot for your help. Regards, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Re: per-webapp logging problem with Tomcat 5.5

2006-02-27 Thread Andreas Schildbach
Remy Maucherat wrote: Very funny. Funny what? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: per-webapp logging problem with Tomcat 5.5

2006-02-27 Thread Boris Unckel
Hi, > Boris Unckel wrote: > > > I have a workaround: > > You provide a logging.properties in your webapp. All relevant parameters > are > > controlled per system -D properties. > > A workaround for what? Providing a logging.properties in my webapp is > exactly what I'm trying to avoid. What's t

Re: per-webapp logging problem with Tomcat 5.5

2006-02-27 Thread Remy Maucherat
On 2/27/06, Andreas Schildbach <[EMAIL PROTECTED]> wrote: > Boris Unckel wrote: > > > I have a workaround: > > You provide a logging.properties in your webapp. All relevant parameters are > > controlled per system -D properties. > > A workaround for what? Providing a logging.properties in my webapp

Re: per-webapp logging problem with Tomcat 5.5

2006-02-27 Thread Andreas Schildbach
Boris Unckel wrote: I have a workaround: You provide a logging.properties in your webapp. All relevant parameters are controlled per system -D properties. A workaround for what? Providing a logging.properties in my webapp is exactly what I'm trying to avoid. What's the relevant parameters, an

Re: per-webapp logging problem with Tomcat 5.5

2006-02-27 Thread Boris Unckel
Hi, I have a workaround: You provide a logging.properties in your webapp. All relevant parameters are controlled per system -D properties. With x4juli this will work for all webcontainers. Regards Boris - To unsubscribe, e-mail

Re: per-webapp logging problem with Tomcat 5.5

2006-02-27 Thread Boris Unckel
Hello, > Thanks for your explanation about why real per-webapp logging is > currently not possible with Tomcat 5.5 and Juli/java.util.logging. Is it > the same with Log4J? > Yes, naturally. You would have to place log4j.jar into your WEB-INF/lib and the configuration into the webapp to get logg

Re: per-webapp logging problem with Tomcat 5.5

2006-02-27 Thread Andreas Schildbach
Boris Unckel wrote: You want to have a _one_ central place for your log configuration _and_ the correct logging just for that application - currently impossible. I would not necessarely say that logging has to be configured in one central place/file, but I think putting logging config _into_

Re: per-webapp logging problem with Tomcat 5.5

2006-02-27 Thread Boris Unckel
Hello Andreas, I have read your response to Remy's mail. > >> Could it be that all libraries I use go to the wrong log? > > > > This depends on the common and shared classloader. Please put any JAR > > which is not delivered by Tomcat and already there in a default > > installation in your > >

Re: per-webapp logging problem with Tomcat 5.5

2006-02-27 Thread Andreas Schildbach
Boris Unckel wrote: Could it be that all libraries I use go to the wrong log? This depends on the common and shared classloader. Please put any JAR which is not delivered by Tomcat and already there in a default installation in your WEB-INF/lib folder. Test again. I don't understand. The

Re: per-webapp logging problem with Tomcat 5.5

2006-02-27 Thread Andreas Schildbach
Remy Maucherat wrote: Could it be that all libraries I use go to the wrong log? All your libraries, like Spring, will use their own logger names. All these loggers are not defined in your configuration, so will all use the handlers for the root logger (".handlers"). org.apache.catalina.core.Co

Re: per-webapp logging problem with Tomcat 5.5

2006-02-26 Thread Remy Maucherat
On 2/26/06, Andreas Schildbach <[EMAIL PROTECTED]> wrote: > Could it be that all libraries I use go to the wrong log? All your libraries, like Spring, will use their own logger names. All these loggers are not defined in your configuration, so will all use the handlers for the root logger (".handl

Re: per-webapp logging problem with Tomcat 5.5

2006-02-26 Thread Boris Unckel
Good Morning Andreas, Andreas Schildbach wrote: Hello Boris, thanks for your answer. I could not see any error but one: handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3app1.org.apache.juli.FileHandler, 4app2.org.apache.juli.FileHandler, java.util.

Re: per-webapp logging problem with Tomcat 5.5

2006-02-26 Thread Andreas Schildbach
Hello Boris, thanks for your answer. I could not see any error but one: handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3app1.org.apache.juli.FileHandler, 4app2.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler as first line (aside from

Re: per-webapp logging problem with Tomcat 5.5

2006-02-26 Thread Boris Unckel
Hello, Andreas Schildbach wrote: My problem is, there is no logging going to any logfile. What am I doing wrong? Do I need to have unique numbers as a prefix to app1 and app2? (could I use 0app1 and 0app2?) I could not see any error but one: handlers = 1catalina.org.apache.juli.FileHandler,

per-webapp logging problem with Tomcat 5.5

2006-02-25 Thread Andreas Schildbach
Hello everyone, I despair of configuring per-webapp logging for Tomcat 5.5, something that was easily possible with swallowOutput on pre-5.5 Tomcats. I've got 2 hosts (app1.de, app2.de), containing one context each. In addition, there is also the localhost context from the example server.xml.

Re: Logging problem

2006-01-02 Thread Gaurav Kushwaha
I think you haven't defined the root category in your log4j.properties file. That might be causing the problem. Adding following lines should fix the problem: log4j.rootCategory=[priority], appenderName Regards, gaurav On 1/2/06, mukesh <[EMAIL PROTECTED]> wrote: > > Hi friends, > > > >

Logging problem

2006-01-02 Thread mukesh
Hi friends, I am not able to log the information. Though file gets created after restarting the tomcat5.5.12 but nothing is being written. **I have done application specific setting log4j.properties is on /usr/local/apache-tomcat-5.5.12/webapps/axis/WE

RE: Repeated logging problem on 5.5

2005-10-27 Thread Steve Kirk
This is a repost of a message I first posted in June that I got no replies to. I have a double-logging problem, by which I mean that some of my log messages get logged to two logfiles. I have only one logfile configured using java.util.logging, but in some cases, the same log message gets