Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 87698 invoked from network); 7 Feb 2006 12:19:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Feb 2006 12:19:52 -0000 Received: (qmail 47561 invoked by uid 500); 7 Feb 2006 12:19:51 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 47549 invoked by uid 500); 7 Feb 2006 12:19:51 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 47538 invoked by uid 99); 7 Feb 2006 12:19:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2006 04:19:50 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_POST X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [212.216.176.206] (HELO vsmtp12.tin.it) (212.216.176.206) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2006 04:19:50 -0800 Received: from [127.0.0.1] (212.123.91.230) by vsmtp12.tin.it (7.2.060.1) (authenticated as javac82@virgilio.it) id 43E4F75100199AD8 for user-java@ibatis.apache.org; Tue, 7 Feb 2006 13:19:55 +0100 Message-ID: <43E8904D.8080805@email.it> Date: Tue, 07 Feb 2006 13:19:25 +0100 From: Davide Marche User-Agent: Mozilla Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: user-java@ibatis.apache.org Subject: Re: iBATIS and log4j References: <43E85E5A.40609@email.it> <43E88E7A.5010300@tid.es> In-Reply-To: <43E88E7A.5010300@tid.es> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thank you Guido, I am currently using ibatis 2.1.5 and tomcat 5.0.28, do you think it's possible there is the same problem with tomcat 5? I really would like to understand how it works for you. Do you have any special initialization of log4j in your webapp? Or do your DAO objects simply log to the console correctly ? Thanks in advance > I had the same problem when using ibatis 2.0.9 + tomcat 4.1.x (I think > there is a conflict with the commons-logging.jar). > It works fine for me with other servers (Sun ONE)... > > iBatis 2.1.5 removed commons-logging dependency, maybe you are using > an older version... > > http://mail-archives.apache.org/mod_mbox/ibatis-user-java/200504.mbox/%3C91ll51tfp5s49s57v7or4k5gbgea2fpqkm@4ax.com%3E > > > Good look, > Guido Garc�a Bernardo. > > PD: This is my WEB-INF/classes/log4j.properties: > > log4j.appender.stdout=org.apache.log4j.ConsoleAppender > log4j.appender.stdout.layout=org.apache.log4j.PatternLayout > log4j.appender.stdout.layout.ConversionPattern=%3p %d{ABSOLUTE} [%t > %c{1}] - %m%n > > log4j.logger.com.ibatis=DEBUG, stdout > log4j.logger.com.ibatis.common.jdbc.SimpleDataSource=DEBUG, stdout > log4j.logger.java.sql.Connection=DEBUG, stdout > log4j.logger.java.sql.Statement=DEBUG, stdout > log4j.logger.java.sql.PreparedStatement=DEBUG, stdout > log4j.logger.java.sql.ResultSet=DEBUG, stdout > >