Return-Path: Delivered-To: apmail-logging-log4cxx-user-archive@www.apache.org Received: (qmail 32780 invoked from network); 22 Feb 2006 01:58:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Feb 2006 01:58:21 -0000 Received: (qmail 24613 invoked by uid 500); 22 Feb 2006 01:58:20 -0000 Delivered-To: apmail-logging-log4cxx-user-archive@logging.apache.org Received: (qmail 24584 invoked by uid 500); 22 Feb 2006 01:58:20 -0000 Mailing-List: contact log4cxx-user-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4CXX User" List-Id: Delivered-To: mailing list log4cxx-user@logging.apache.org Received: (qmail 24567 invoked by uid 99); 22 Feb 2006 01:58:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2006 17:58:20 -0800 X-ASF-Spam-Status: No, hits=4.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS,RCVD_DOUBLE_IP_SPAM X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [219.239.227.26] (HELO mx2.buaa.edu.cn) (219.239.227.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2006 17:58:18 -0800 Received: from mx1.buaa.edu.cn (unknown [192.168.128.6]) by mx2.buaa.edu.cn (Postfix) with ESMTP id 8347237EA1 for ; Wed, 22 Feb 2006 09:56:55 +0800 (CST) Received: from [203.86.95.74] by 10.0.0.131 with StormMail ESMTP id 78832.1848728018; Wed, 22 Feb 2006 10:04:55 +0800 (CST) Date: Wed, 22 Feb 2006 09:57:47 +0800 From: "energumen@buaa.edu.cn" To: "log4cxx-user" Subject: Could not create an Appender. (Class 'org.apache.log4j.RollingFileAppender' not found) X-mailer: Foxmail 5.0 [cn] Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit Message-Id: <20060222015655.8347237EA1@mx2.buaa.edu.cn> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N hello,all : My log4cxx version is 0.9.7,and when i linked my program with dynamic library, it worked fine. But i changed to linking with static log4cxx, i get the info listed below: Could not create an Appender. Reported error follows. Class 'org.apache.log4j.RollingFileAppender' not found I googled and got some advise below: 1/ by not using default configuration and doing an explicit configuration sometime after all the static initializers have completed . (But I don't know how) 2/ try using 0.9.8 (but some user of 0.9.8 got the same bug too, and i am trying ,too) any good suggestion? thanks in advance