After going to Tomcat 6 I get log4j problems. Why?

2012-05-25 Thread Hermes Flying
from a jar in %TOMCAT_HOME%\lib If I drop commons-logging in %TOMCAT_HOME%\lib the exception does not happen BUT now I get exceptions in log4j from inside my web app. I tried also deleting the commons-logging from %TOMCAT_HOME%\webapps\myApp\WEB-INF\lib but no success. Any idea what

Re: After going to Tomcat 6 I get log4j problems. Why?

2012-05-25 Thread Konstantin Kolinko
And this exception is from a class (custom class) running from a jar in %TOMCAT_HOME%\lib If I drop commons-logging in %TOMCAT_HOME%\lib the exception does not happen BUT now I get exceptions in log4j from inside my web app. I tried also deleting the commons-logging from %TOMCAT_HOME%\webapps

Re: After going to Tomcat 6 I get log4j problems. Why?

2012-05-25 Thread Pid
And this exception is from a class (custom class) running from a jar in %TOMCAT_HOME%\lib If I drop commons-logging in %TOMCAT_HOME%\lib the exception does not happen BUT now I get exceptions in log4j from inside my web app. I tried also deleting the commons-logging from %TOMCAT_HOME%\webapps\myApp

After going to Tomcat 6 I get log4j problems. Why? (RE:)

2012-05-25 Thread Hermes Flying
Creating a new Thread as Pid recommended: Concerning the questions posed by Konstantin Kolinko: You do not say what jars are exactly where and what actual configuration (server.xml and logging) you have. I am not sure I follow: you mean the version? I have log4j in the WEB-INF\xml, and commons

Re: After going to Tomcat 6 I get log4j problems. Why? (RE:)

2012-05-25 Thread Christopher Schultz
are exactly where and what actual configuration (server.xml and logging) you have. I am not sure I follow: you mean the version? I have log4j in the WEB-INF\xml, and commons-logging and commons-logging-api as well No problem up to Tomcat 5.5. Does this answer your question? Placing custom jars

Re: After going to Tomcat 6 I get log4j problems. Why? (RE:)

2012-05-25 Thread Pid
have log4j in the WEB-INF\xml, and commons-logging and commons-logging-api as well No problem up to Tomcat 5.5. Does this answer your question? Placing custom jars into %TOMCAT_HOME%\lib is usually a bad idea. The custom jar provides an SSLImplementation to be hooked in the connectors

Re: Single war file - multiple hosts - can't get log4j to log to different files

2011-11-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 11/23/11 3:42 PM, Pid wrote: You could just run separate instances of Tomcat. It would be less hassle easier to manage. Separate CATALINA_HOME CATALINA_BASE, so you can use the same core code just create some separate instances.

Re: Single war file - multiple hosts - can't get log4j to log to different files

2011-11-23 Thread chris derham
is to write some custom code to initialise log4j. We would just need to pick up the context, or a jndi variable and then prefix the log file name with this. Guess it can't be that hard - just figured that somebody would have hit this before. I think that's your best bet. Yes

Re: Single war file - multiple hosts - can't get log4j to log to different files

2011-11-23 Thread Christopher Schultz
. notWebapps. I like that. :) The only idea I have left if nobody can see an obvious flaw in our logic is to write some custom code to initialise log4j. We would just need to pick up the context, or a jndi variable and then prefix the log file name with this. Guess it can't be that hard - just figured

Re: Single war file - multiple hosts - can't get log4j to log to different files

2011-11-23 Thread Pid
On 23/11/2011 13:06, chris derham wrote: I just wanted to see everything in a single place - from what I have read this can't be done Correct. It could be done, but the apps would need to look outside of their local host. p -- [key:62590808] signature.asc Description: OpenPGP digital

Re: Single war file - multiple hosts - can't get log4j to log to different files

2011-11-23 Thread Pid
like ROOT-access as the prefix value. When I start the app, it works and the app works. However all context's apps log to the same log file. What I want to know how to make the different contexts under different hosts log to different file. Our log4j file contains appender name=FILE

Single war file - multiple hosts - can't get log4j to log to different files

2011-11-22 Thread chris derham
quot;%rquot; %s %b resolveHosts=false/ /Host When I start the app, it works and the app works. However all context's apps log to the same log file. What I want to know how to make the different contexts under different hosts log to different file. Our log4j file contains appender name

Re: Single war file - multiple hosts - can't get log4j to log to different files

2011-11-22 Thread Pid
On 22/11/2011 19:28, chris derham wrote: Host name=demo1.company.com appBase=webapps\demos unpackWARs=false autoDeploy=false The appBase I find a little concerning... You don't have any apps directly place in webapps do you? p -- [key:62590808] signature.asc Description: OpenPGP

Re: Single war file - multiple hosts - can't get log4j to log to different files

2011-11-22 Thread chris derham
=priviliged setting can allow a web app to access other webapps in the same context, but not across hosts. Does that explanation make sense, and does that remove your concern? The only idea I have left if nobody can see an obvious flaw in our logic is to write some custom code to initialise log4j

Re: Single war file - multiple hosts - can't get log4j to log to different files

2011-11-22 Thread Christopher Schultz
-access as the prefix value. When I start the app, it works and the app works. However all context's apps log to the same log file. What I want to know how to make the different contexts under different hosts log to different file. Our log4j file contains appender name=FILE class

Re: Single war file - multiple hosts - can't get log4j to log to different files

2011-11-22 Thread Christopher Schultz
you won't have to move WAR files or remember that you changed things from the default. The only idea I have left if nobody can see an obvious flaw in our logic is to write some custom code to initialise log4j. We would just need to pick up the context, or a jndi variable and then prefix the log

can't set tomcat to use log4j for its internal logging

2011-10-19 Thread Silvia Righini
Hi everyone, I'm trying to tell tomcat to use log4j for its internal logging, but it just ignores me.. I have Tomcat 6.0.33 running on a Mac OS X 10.5.8 (with java openjdk version 1.6.0-internal). I followed to the letter the docs at http://tomcat.apache.org/tomcat-6.0-doc/logging.html

Re: can't set tomcat to use log4j for its internal logging

2011-10-19 Thread Konstantin Kolinko
2011/10/19 Silvia Righini shigure.minaz...@gmail.com: Hi everyone, I'm trying to tell tomcat to use log4j for its internal logging, but it just ignores me.. I have Tomcat 6.0.33 running on a Mac OS X 10.5.8 (with java openjdk version 1.6.0-internal). I followed to the letter the docs

Re: can't set tomcat to use log4j for its internal logging

2011-10-19 Thread Silvia Righini
On Wed, Oct 19, 2011 at 4:46 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2011/10/19 Silvia Righini shigure.minaz...@gmail.com: Hi everyone, I'm trying to tell tomcat to use log4j for its internal logging, but it just ignores me.. I have Tomcat 6.0.33 running on a Mac OS X

Log4j per context admin managable configs?

2011-10-06 Thread Ilya Kazakevich
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: ./config/ENGINE_NAME/HOST_NAME/ContextName

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

logging.properties and no classdef error when trying to switch to log4j 6.0.18

2011-10-05 Thread jjgtx
I am trying to configure log4j logging, but when I remove the conf/logging.properties file I get the following error in catalina.out and nothing more. Could not find the main class: . Program will exit. java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina

Re: logging.properties and no classdef error when trying to switch to log4j 6.0.18

2011-10-05 Thread Konstantin Kolinko
2011/10/5 jjgtx jeff_g...@yahoo.com: I am trying to configure log4j logging, but when I remove the conf/logging.properties file I get the following error in catalina.out and nothing more. Could not find the main class: .  Program will exit. java.lang.ClassNotFoundException

Re: Missing files for Apache and Log4J

2011-08-03 Thread A Df
at http://mrhaki.blogspot.com/2011/02/configure-log4j-on-tomcat.html to get the content for the properties file. However, the problems are: * the log files do not have the .log extension so they do not show up file type as text document instead just a type as file * the date

Re: Missing files for Apache and Log4J

2011-08-03 Thread Mark Eggers
- Original Message - From: A Df abbey_dragonfor...@yahoo.com To: Tomcat Users List users@tomcat.apache.org; Mark Eggers its_toas...@yahoo.com Cc: Sent: Wednesday, August 3, 2011 3:17 AM Subject: Re: Missing files for Apache and Log4J Hello Mates: I got the log file to work

Missing files for Apache and Log4J

2011-07-29 Thread A Df
in $CATALINA_HOME/lib.I cannot find the jar file in the Log4J download or Apache files so where is it located? Is Log4J the best logging to use with a Java web app? Do you have any suggestions? Thanks for your help, A Df

Re: Missing files for Apache [Tomcat] and Log4J

2011-07-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 7/29/2011 11:33 AM, A Df wrote: I have created a Java web application and I want to have logging to ensure that the appropriate messages are stored in log files instead of to standard output. Note that log4j

Re: Missing files for Apache and Log4J

2011-07-29 Thread Mark Eggers
?     * Place output/extras/tomcat-juli-adapters.jar in $CATALINA_HOME/lib.I cannot find the jar file in the Log4J download or Apache files so where is it located? Is Log4J the best logging to use with a Java web app? Do you have any suggestions? Thanks for your help, A Df Logging

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

2011-06-24 Thread Christopher Schultz
the log4j.jar and tomcat-juli-adapters.jar in the lib directory. Running with log4j debug I can see the categories registered. Where did you put your log4j.properties file and what does it contain? Can you just post the whole thing? Also what exact version of TC 6.0 are you using? It probably doesn't matter

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

2011-06-24 Thread jjgtx
property. I used the path to the log4j file. Christopher Schultz-2 wrote: Also what exact version of TC 6.0 are you using? It probably doesn't matter but it doesn't hurt to know. /qoute Server version: Apache Tomcat/6.0.18 Server built: Jul 22 2008 02:00:36 Server number: 6.0.18.0 OS

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

2011-06-24 Thread Christopher Schultz
in http://tomcat.apache.org/tomcat-6.0-doc/logging.html#Using_Log4j? Given the output on startup: log4j: Handling log4j.additivity.org.apache.catalina=[null] log4j: Parsing for [org] with value=[WARN]. log4j: Level token is [WARN]. I suspect that log4j is actually being loaded and configured

Tomcat 7 Logging Log4J - [INFO] org.apache.catalina.core.ContainerBase

2011-06-21 Thread Björn Agel
Hi there, I am using Log4j with the following log4j.properties for the Tomcat: /log4j.rootLogger=INFO, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=${catalina.home}/logs/tomcat.log log4j.appender.R.encoding=UTF-8 log4j.appender.R.MaxFileSize=2MB

Re: Tomcat 7 Logging Log4J - [INFO] org.apache.catalina.core.ContainerBase

2011-06-21 Thread Konstantin Kolinko
2011/6/21 Björn Agel bjo...@agel-rosen.de: Hi there, I am using Log4j with the following log4j.properties for the Tomcat: /log4j.rootLogger=INFO, R    log4j.appender.R=org.apache.log4j.RollingFileAppender    log4j.appender.R.File=${catalina.home}/logs/tomcat.log

Re: Tomcat 7 Logging Log4J - [INFO] org.apache.catalina.core.ContainerBase

2011-06-21 Thread Konstantin Kolinko
2011/6/21 Björn Agel bjo...@agel-rosen.de: H, In the documentation of Struts 1.3.10 it says they are using commons-logging API. I configured Tomcat to use log4j, so I don't know where the calls to ServletContext.log() should come from. Any ideas? Search for the PropertyMessageResources

Re: Tomcat 7 Logging Log4J - [INFO] org.apache.catalina.core.ContainerBase

2011-06-21 Thread Björn Agel
Am 21.06.2011 14:59, schrieb Konstantin Kolinko: 2011/6/21 Björn Agelbjo...@agel-rosen.de: H, In the documentation of Struts 1.3.10 it says they are using commons-logging API. I configured Tomcat to use log4j, so I don't know where the calls to ServletContext.log() should come from. Any

Re: Tomcat 7 Logging Log4J - [INFO] org.apache.catalina.core.ContainerBase

2011-06-21 Thread Konstantin Kolinko
2011/6/21 Björn Agel bjo...@agel-rosen.de: Am 21.06.2011 14:59, schrieb Konstantin Kolinko: 2011/6/21 Björn Agelbjo...@agel-rosen.de: H, In the documentation of Struts 1.3.10 it says they are using commons-logging API. I configured Tomcat to use log4j, so I don't know where the calls

Re: Tomcat 7 Logging Log4J - [INFO] org.apache.catalina.core.ContainerBase

2011-06-21 Thread Björn Agel
to use log4j, so I don't know where the calls to ServletContext.log() should come from. Any ideas? Search for the PropertyMessageResources string in the source code, or in the compiled class files (the string in classes is in UTF-8, so it will be visible as is). The message should have come from

Re: Error in Tomcat 6.0 log4j documentation

2011-06-07 Thread Remon Sadikni
Hi Mark, for me log4j only works with this additional line per appender: log4j.appender.CATALINA.layout=org.apache.log4j.PatternLayout Thanks, Remon On 06/06/2011 07:09 PM, Mark Thomas wrote: On 06/06/2011 15:25, Remon Sadikni wrote: Dear Tomcat-Developers and Users, I think

Re: Error in Tomcat 6.0 log4j documentation

2011-06-07 Thread Mark Thomas
On 07/06/2011 11:52, Remon Sadikni wrote: Hi Mark, for me log4j only works with this additional line per appender: log4j.appender.CATALINA.layout=org.apache.log4j.PatternLayout Where exactly? That line is already present in the docs. Or are you looking at an older version? The latest

Re: Error in Tomcat 6.0 log4j documentation

2011-06-07 Thread Konstantin Kolinko
2011/6/7 Mark Thomas ma...@apache.org: On 07/06/2011 11:52, Remon Sadikni wrote: Hi Mark, for me log4j only works with this additional line per appender: log4j.appender.CATALINA.layout=org.apache.log4j.PatternLayout Where exactly? That line is already present in the docs. Or are you

Re: Error in Tomcat 6.0 log4j documentation

2011-06-07 Thread Remon Sadikni
Hi Konstantin, hi Mark, all right, thank you. I only looked at the published version, not the one in svn. Regards, Remon On 06/07/2011 05:06 PM, Konstantin Kolinko wrote: 2011/6/7 Mark Thomasma...@apache.org: On 07/06/2011 11:52, Remon Sadikni wrote: Hi Mark, for me log4j only works

Error in Tomcat 6.0 log4j documentation

2011-06-06 Thread Remon Sadikni
Dear Tomcat-Developers and Users, I think there is an error in the Tomcat 6.0 logging documentation with log4j: http://tomcat.apache.org/tomcat-6.0-doc/logging.html#Using_Log4j For every appender there is a layout missing and in front of conversionPattern there is missing layout.. So

Re: Error in Tomcat 6.0 log4j documentation

2011-06-06 Thread Mark Thomas
On 06/06/2011 15:25, Remon Sadikni wrote: Dear Tomcat-Developers and Users, I think there is an error in the Tomcat 6.0 logging documentation with log4j: http://tomcat.apache.org/tomcat-6.0-doc/logging.html#Using_Log4j For every appender there is a layout missing and in front

log4j config

2011-05-16 Thread 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? My config is below

Re: log4j config

2011-05-16 Thread Konstantin Kolinko
2011/5/17 Bruce Pease bpe...@wth.com: 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

Jboss AS6 + log4j

2011-05-11 Thread Harlei Liguori Marcelino
Olá amigos, é a primeira vez que preciso configurar o log4j e estou completamente perdido... a versão do jboss utilizada aqui é a AS6 e para piorar minha vida quase tudo que eu encontro na net é da versão antiga, onde o arquivo de configuração é diferente, assim como toda a configuração interna

Re: Jboss AS6 + log4j

2011-05-11 Thread chris derham
é a primeira vez que preciso configurar o log4j e estou completamente perdido... a versão do jboss utilizada aqui é a AS6 e para piorar minha vida quase tudo que eu encontro na net é da versão antiga, onde o arquivo de configuração é diferente, assim como toda a configuração interna

Re: Jboss AS6 + log4j

2011-05-11 Thread Harlei Liguori Marcelino
So sorry... i was thinking about a portuguese list... shame on me... sorry list!!! i will read the e-mail bellow and tell about it in few minutes... Em 11 de maio de 2011 17:39, chris derham ch...@derham.me.uk escreveu: é a primeira vez que preciso configurar o log4j e estou

Re: Get the following error: NoClassDefFoundError: org/apache/log4j/Logger

2011-02-03 Thread Pid
Logger LOGGER = Logger.getLogger(Hello.class); It works when i run the application in eclipse. but not as a JAR application!(he application is not running on tomcat an is only a smal commandline application) Error: Exception in thread main java.lang.NoClassDefFoundError: org/apache/log4j

Get the following error: NoClassDefFoundError: org/apache/log4j/Logger

2011-02-02 Thread henry human
); It works when i run the application in eclipse. but not as a JAR application!(he application is not running on tomcat an is only a smal commandline application) Error: Exception in thread main java.lang.NoClassDefFoundError: org/apache/log4j/Logger Thanks for your advice

RE: Get the following error: NoClassDefFoundError: org/apache/log4j/Logger

2011-02-02 Thread Caldarale, Charles R
From: henry human [mailto:henry_hu...@yahoo.de] Subject: Get the following error: NoClassDefFoundError: org/apache/log4j/Logger I get the following error when I try to call a smal java application(hello friends!) which i placed in a jar file. the application has the log4j.jar in its lib

Re: Get the following error: NoClassDefFoundError: org/apache/log4j/Logger

2011-02-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 2/2/2011 8:44 AM, Caldarale, Charles R wrote: From: henry human [mailto:henry_hu...@yahoo.de] Subject: Get the following error: NoClassDefFoundError: org/apache/log4j/Logger I get the following error when I try to call a smal java

Re: how does the tomcat log generated? log4j?

2010-12-26 Thread maven apache
Thanks,I will have a try. 2010/12/25 Konstantin Kolinko knst.koli...@gmail.com 2010/12/25 maven apache apachemav...@gmail.com: Perhaps I’m not making myself clear,in fact I want to do some processing work to the the logs created by the access log valve

Re: how does the tomcat log generated? log4j?

2010-12-26 Thread maven apache
2010/12/25 André Warnier a...@ice-sa.com The logging page which I pointed you to, does not say that Tomcat uses log4j. It says that you /can/ configure Tomcat to use log4j, instead of the default juli logging. It even provides instructions to do so. The AccessLogValve documentation page

Re: how does the tomcat log generated? log4j?

2010-12-26 Thread maven apache
://logging.apache.org/log4j/1.2/apidocs/index.html if tomcat also uses log4j to generate the logs and I have access to the tomcat's log4j config file. More details can be found in this post: http://stackoverflow.com/questions/4486620/randomaccessfile-probelm So I wonder if this is possible? Dear

Re: how does the tomcat log generated? log4j?

2010-12-26 Thread André Warnier
maven apache wrote: 2010/12/25 André Warnier a...@ice-sa.com The logging page which I pointed you to, does not say that Tomcat uses log4j. It says that you /can/ configure Tomcat to use log4j, instead of the default juli logging. It even provides instructions to do so. The AccessLogValve

Re: how does the tomcat log generated? log4j?

2010-12-26 Thread maven apache
2010/12/26 André Warnier a...@ice-sa.com maven apache wrote: 2010/12/25 André Warnier a...@ice-sa.com The logging page which I pointed you to, does not say that Tomcat uses log4j. It says that you /can/ configure Tomcat to use log4j, instead of the default juli logging. It even provides

Re: how does the tomcat log generated? log4j?

2010-12-25 Thread André Warnier
. Some one suggestion I directly add one Appender http://logging.apache.org/log4j/1.2/apidocs/index.html if tomcat also uses log4j to generate the logs and I have access to the tomcat's log4j config file. More details can be found in this post: http://stackoverflow.com/questions/4486620

Re: how does the tomcat log generated? log4j?

2010-12-25 Thread maven apache
.2010-12-20.txt I read the file line by line,but sometime I can not get a complete line since this file may be written in. So,someone suggest me add a db appender(log4j),which will do the procesing work and then export the log to db. --- Now,from the link you give me ,it seems that tomcat

Re: how does the tomcat log generated? log4j?

2010-12-25 Thread Konstantin Kolinko
2010/12/25 maven apache apachemav...@gmail.com: Perhaps I’m not making myself clear,in fact I want to do some processing work to the the logs created by the access log valvehttp://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Access_Log_Valveto database. You can use JDBCAccessLogValve

Re: how does the tomcat log generated? log4j?

2010-12-25 Thread André Warnier
The logging page which I pointed you to, does not say that Tomcat uses log4j. It says that you /can/ configure Tomcat to use log4j, instead of the default juli logging. It even provides instructions to do so. The AccessLogValve documentation page does not say either that it uses log4j

Re: how does the tomcat log generated? log4j?

2010-12-25 Thread Konstantin Kolinko
2010/12/25 André Warnier a...@ice-sa.com: The AccessLogValve documentation page does not say either that it uses log4j. AccessLogValve (and ExtendedAccessLogValve) manage the log file by themselves. They do not use logging framework in this sense. Best regards, Konstantin Kolinko

Re: how does the tomcat log generated? log4j?

2010-12-25 Thread Pid
On 25/12/2010 04:37, maven apache wrote: Hi: I wonder how is the tomcat log generated,I mean the log like this; localhost_access_log.2010-12-20.txt I want to export the logs to db. Some one suggestion I directly add one Appender http://logging.apache.org/log4j/1.2/apidocs/index.html

how does the tomcat log generated? log4j?

2010-12-24 Thread maven apache
Hi: I wonder how is the tomcat log generated,I mean the log like this; localhost_access_log.2010-12-20.txt I want to export the logs to db. Some one suggestion I directly add one Appender http://logging.apache.org/log4j/1.2/apidocs/index.html if tomcat also uses log4j to generate the logs and I

Re: deploy log4j

2010-12-10 Thread Pid
neither environment works. Ideas? Is the log4j property file loading code inside an applet or inside a web application? p - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h

Re: deploy log4j

2010-12-10 Thread Christopher Schultz
a prop.load(getClass().getResourceAsStream(codebase+WEB-INF/classes/log4j.properties)). Now neither environment works. Ideas? Is the log4j property file loading code inside an applet or inside a web application? Great question: I hadn't considered an applet being part of the equation, though

Re: deploy log4j

2010-12-10 Thread cpanon
Schultz ch...@christopherschultz.net To: Tomcat Users List users@tomcat.apache.org Sent: Fri, December 10, 2010 11:30:27 AM Subject: Re: deploy log4j -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 12/10/2010 9:27 AM, Pid wrote: On 12/10/10 2:43 AM, cpanon wrote: Hello I agree it should

Re: deploy log4j

2010-12-09 Thread cpanon
and Windows2003 Server it fails to find the properly configured and located log4j file 2. On WinXPP it works perfectly under production TC 6.0.29, finding the log4j file without error. Any ideas? From: Mark Eggers its_toas...@yahoo.com To: Tomcat Users List

Re: deploy log4j

2010-12-09 Thread Christopher Schultz
to find the properly configured and located log4j file 2. On WinXPP it works perfectly under production TC 6.0.29, finding the log4j file without error. You should probably not be using Class.getResourceAsStream, but instead ServletContext.getResourceAsStream. The latter will always load

Re: deploy log4j

2010-12-09 Thread Mark Eggers
cpannon, I just wrote a very simple web application (2 JSP files, one servlet) and added log4j. I ran this on Linux and Windows/XP with both console and file logging. I don't have access to a Windows server platform (all UNIX or Linux) so I cannot test there. Note, I'm not running under

Re: deploy log4j

2010-12-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 12/9/2010 3:44 PM, Mark Eggers wrote: I didn't get any errors. Nor do we: we use log4j for application logging, have log4j.jar in WEB-INF/lib, have our log4j.properties in WEB-INF/classes/log4j.properties, and use the following code

Re: deploy log4j

2010-12-09 Thread cpanon
? From: Christopher Schultz ch...@christopherschultz.net To: Tomcat Users List users@tomcat.apache.org Sent: Thu, December 9, 2010 4:37:23 PM Subject: Re: deploy log4j -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 12/9/2010 3:44 PM, Mark Eggers wrote: I didn't get any

RE: deploy log4j

2010-12-09 Thread Martin Gainty
you need to package everything (including log4j classes) into the applet zip file for IO you'll need the browser operator a mechanism to grant IO permissions the accepted solution is to create a cert associated with the applet which will grant (read and write) IO permissions http

RE: deploy log4j

2010-12-09 Thread Caldarale, Charles R
From: Martin Gainty [mailto:mgai...@hotmail.com] Subject: RE: deploy log4j you need to package everything (including log4j classes) into the applet zip file Complete rubbish. The applet execution has absolutely nothing to do with the webapp. - Chuck THIS COMMUNICATION MAY CONTAIN

Re: deploy log4j

2010-12-09 Thread Mark Eggers
in a ServletContextListener, your application will likely not start at all. The configuration can get complicated quickly. There should be a policy that allows the appropriate log4j class to read its configuration file. There should be another policy that allows the appropriate log4j class to read/write in the log

deploy log4j

2010-12-08 Thread cpanon
Hello I have an app that work perfectly in my IDE(JBuilder05, yes I know but it work fine), but on deployment I believe it is not reading the log4j with this error: java.lang.NullPointerException at java.util.Properties$LineReader.readLine(Unknown Source) followed by log4j:WARN No appenders

Re: deploy log4j

2010-12-08 Thread Mark Eggers
You don't say the following: Tomcat version JRE/JDK version Platform (OS and version) That being said, I use log4j (with or without Apache commons logging) for nearly every web application I run on Tomcat. Short answer: You don't manually read in your properties file with log4j. Read

Re: Tomact does not see log4j-6.0.26.jar while it is there

2010-12-01 Thread marlon
Christopher Schultz chris at christopherschultz.net writes: 1. Pointing the wrong way 2. Broken (missing .jar at the end) -chris I had exactly the same problem when I use the command yum install tomcat6* to install tomcat from fedora 13. should i simply unlink that link?

Re: Tomact does not see log4j-6.0.26.jar while it is there

2010-12-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marlon, On 12/1/2010 7:39 AM, marlon wrote: Christopher Schultz chris at christopherschultz.net writes: 1. Pointing the wrong way 2. Broken (missing .jar at the end) -chris I had exactly the same problem when I use the command yum install

[OT] ThreadLocal fixes in log4j|commons-logging

2010-11-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, At some point, someone (markt?) mentioned that, as a result of Tomcat's memory leak detection capabilities, either log4j or commons-logging (or both) had fixed at least one ThreadLocal issue. I was wondering if someone could post a reference

[OT] ThreadLocal fixes in log4j|commons-logging

2010-11-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, At some point, someone (markt?) mentioned that, as a result of Tomcat's memory leak detection capabilities, either log4j or commons-logging (or both) had fixed at least one ThreadLocal issue. I was wondering if someone could post a reference

Re: [OT] ThreadLocal fixes in log4j|commons-logging

2010-11-29 Thread Mark Thomas
On 29/11/2010 17:29, Christopher Schultz wrote: All, At some point, someone (markt?) mentioned that, as a result of Tomcat's memory leak detection capabilities, either log4j or commons-logging (or both) had fixed at least one ThreadLocal issue. I was wondering if someone could post

Re: [OT] ThreadLocal fixes in log4j|commons-logging

2010-11-29 Thread Mark Thomas
On 29/11/2010 17:37, Mark Thomas wrote: The commons logging issue was an open JAR file: Doh. I meant log4j. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h

Re: [OT] ThreadLocal fixes in log4j|commons-logging

2010-11-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 11/29/2010 12:37 PM, Mark Thomas wrote: On 29/11/2010 17:29, Christopher Schultz wrote: All, At some point, someone (markt?) mentioned that, as a result of Tomcat's memory leak detection capabilities, either log4j or commons-logging

Tomact does not see log4j-6.0.26.jar while it is there

2010-11-18 Thread Salam Y. ELIAS
I managed to make Apache Tomcat work and created a dynamic web project. However, the inside the ide is flagged with a red exclamation mark. Checked the problems pane, it seems it is related to log4j jar file, I found -- Description ResourcePathLocation

Re: Tomact does not see log4j-6.0.26.jar while it is there

2010-11-18 Thread Mark Thomas
On 18/11/2010 14:24, Salam Y. ELIAS wrote: I managed to make Apache Tomcat work and created a dynamic web project. However, the inside the ide is flagged with a red exclamation mark. Checked the problems pane, it seems it is related to log4j jar file, I found

Re: Tomact does not see log4j-6.0.26.jar while it is there

2010-11-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Salam, On 11/18/2010 9:24 AM, Salam Y. ELIAS wrote: I checked my tomcat directrory, I have log4j.jar and a linik file log4j-6.0.26.jar. log4j is currently at version 1.2.x. I'm not sure what that 6.0.26 could possibly be, other than some corrupt

Re: Tomact does not see log4j-6.0.26.jar while it is there

2010-11-18 Thread Salam Y. ELIAS
. Checked the problems pane, it seems it is related to log4j jar file, I found -- Description ResourcePathLocationType The container 'Apache Tomcat v6.0 [Apache Tomcat v6.0]' references non existing library /usr/share/tomcat6/lib/log4j-6.0.26.jar

RE: Tomact does not see log4j-6.0.26.jar while it is there

2010-11-18 Thread Caldarale, Charles R
From: Salam Y. ELIAS [mailto:salamli...@free.fr] Subject: Re: Tomact does not see log4j-6.0.26.jar while it is there It is the Apache Tomcat shipped with Fedora 13 To repeat what Mark said: -contact the maintainers of whatever 3rd party package you used for support - use an ASF

Re: Tomact does not see log4j-6.0.26.jar while it is there

2010-11-18 Thread Salam Y. ELIAS
Chris, here is the output, I highlighted the log4j lines Thanks -rw-r--r-- 1 root root 15232 Oct 12 22:43 annotations-api-6.0.26.jar lrwxrwxrwx 1 root root26 Nov 16 19:41 annotations-api.jar - annotations-api-6.0.26.jar -rw-r--r-- 1 root root 1182597 Oct 12 22:43 catalina-6.0.26.jar

RE: Tomact does not see log4j-6.0.26.jar while it is there

2010-11-18 Thread Salam Y. ELIAS
OK thanks On Thu, 2010-11-18 at 11:19 -0600, Caldarale, Charles R wrote: From: Salam Y. ELIAS [mailto:salamli...@free.fr] Subject: Re: Tomact does not see log4j-6.0.26.jar while it is there It is the Apache Tomcat shipped with Fedora 13 To repeat what Mark said: -contact

Re: Tomact does not see log4j-6.0.26.jar while it is there

2010-11-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Salam, On 11/18/2010 12:21 PM, Salam Y. ELIAS wrote: Chris, here is the output, I highlighted the log4j lines Thanks -rw-r--r-- 1 root root 15232 Oct 12 22:43 annotations-api-6.0.26.jar lrwxrwxrwx 1 root root26 Nov 16 19:41

log4j syslog appender - webapp and java package specific

2010-07-11 Thread Johan Martinez
Hi, A message appropriate on log4j mailing list, but wanted to get some feedback from tomcat users list as well. I have log4j 1.2 configured for webapps running in tomcat 5.5.28 using FilenameAppender. The logging is configured such that log4j writes to different files based on webapp

log4j

2010-07-08 Thread Kaushal Shriyan
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.home}/logs/catalina.out log4j.appender.R.DatePattern='.'-MM-dd log4j.appender.R.layout

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 kaushalshri...@gmail.com 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

Re: Cannot configure apache-log4j-extras-1.0 with apache-log4j-1?

2010-06-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Saurabh, On 6/25/2010 1:23 AM, Saurabh Agrawal wrote: Please refer first line in following API doc, you will find that two problems are reported in it and option suggested us TimeBasedRollingPolicy. http://logging.apache.org/log4j/1.2/apidocs

Cannot configure apache-log4j-extras-1.0 with apache-log4j-1?

2010-06-24 Thread Saurabh Agrawal
Hi Friends, Tomcat version: apache-tomcat-5.5.27 Operating System: SunOS 10.0 / Linux Question: Problem: I've tried many times to configure apache-log4j-extras-1.0 with apache-log4j-1.2.16, but it is still failing to load classes from configure apache-log4j-extras-1.0 JAR file. What

Re: Cannot configure apache-log4j-extras-1.0 with apache-log4j-1?

2010-06-24 Thread Pid
On 24/06/2010 12:37, Saurabh Agrawal wrote: Hi Friends, Tomcat version: apache-tomcat-5.5.27 Operating System: SunOS 10.0 / Linux Question: Problem: I've tried many times to configure apache-log4j-extras-1.0 with apache-log4j-1.2.16, but it is still failing to load classes from

Re: Cannot configure apache-log4j-extras-1.0 with apache-log4j-1?

2010-06-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Saurabh, On 6/24/2010 7:37 AM, Saurabh Agrawal wrote: Problem: I've tried many times to configure apache-log4j-extras-1.0 with apache-log4j-1.2.16, but it is still failing to load classes from configure apache-log4j-extras-1.0 JAR file. Pid's

RE: Cannot configure apache-log4j-extras-1.0 with apache-log4j-1?

2010-06-24 Thread Saurabh Agrawal
Hi Pid and Chris, Thanks for your response. I've tried registering myself to log4j mailing list, but remote MTA is giving some error and subscription is failing to validate. Chris, Please refer first line in following API doc, you will find that two problems are reported in it and option

<    1   2   3   4   5   6   7   8   >