Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 13318 invoked from network); 18 Apr 2006 18:27:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Apr 2006 18:27:30 -0000 Received: (qmail 10194 invoked by uid 500); 18 Apr 2006 18:27:20 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 9947 invoked by uid 500); 18 Apr 2006 18:27:20 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 9933 invoked by uid 99); 18 Apr 2006 18:27:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Apr 2006 11:27:19 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.98.36] (HELO brmea-mail-4.sun.com) (192.18.98.36) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Apr 2006 11:27:18 -0700 Received: from fe-amer-03.sun.com ([192.18.108.177]) by brmea-mail-4.sun.com (8.12.10/8.12.9) with ESMTP id k3IIQvZe004602 for ; Tue, 18 Apr 2006 12:26:57 -0600 (MDT) Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) id <0IXX00I01KDJUX00@mail-amer.sun.com> (original mail from aj.treece@sun.com) for user@struts.apache.org; Tue, 18 Apr 2006 12:26:57 -0600 (MDT) Received: from [192.168.100.110] ([129.150.32.94]) by mail-amer.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPSA id <0IXX003EGKKWXSD5@mail-amer.sun.com> for user@struts.apache.org; Tue, 18 Apr 2006 12:26:57 -0600 (MDT) Date: Tue, 18 Apr 2006 13:26:59 -0500 From: Alan Treece Subject: log4j and Struts v1.2.9 Sender: Alan.Treece@sun.com To: Struts Users Mailing List Message-id: MIME-version: 1.0 X-Mailer: Apple Mail (2.749.3) Content-type: text/plain; format=flowed; delsp=yes; charset=US-ASCII Content-transfer-encoding: 7BIT X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I'm in the process of migrating a Struts v1.1 app to Struts v1.2.9 and having problems with log4j. After pulling the the Struts jar files I've got all of the compile errors/warnings fixed, but when I stop and start the web server I get: warning: CORE3283: stderr: log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources). warning: CORE3283: stderr: log4j:WARN Please initialize the log4j system properly. failure: WEB2798: [] ServletContext.log(): action: null java.lang.InstantiationException at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance (InstantiationExceptionConstructorAccessorImpl.java:30) at java.lang.reflect.Constructor.newInstance (Constructor.java:274) at java.lang.Class.newInstance0(Class.java:308) at java.lang.Class.newInstance(Class.java:261) Log4j worked as expected for v1.1... Is there a change required for Struts v1.2.x to allow log4j? The only thing that has changed (that I'm aware of) concerning log4j is the 1.2.9 release of Struts. Do I need to change some properties or xml files to allow log4j to work with v1.2.x? Thanks, ajTreece --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org