Return-Path: Delivered-To: apmail-jakarta-log4j-user-archive@apache.org Received: (qmail 26133 invoked from network); 20 Jun 2002 22:08:57 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 20 Jun 2002 22:08:57 -0000 Received: (qmail 13724 invoked by uid 97); 20 Jun 2002 22:09:04 -0000 Delivered-To: qmlist-jakarta-archive-log4j-user@jakarta.apache.org Received: (qmail 13674 invoked by uid 97); 20 Jun 2002 22:09:04 -0000 Mailing-List: contact log4j-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@jakarta.apache.org Received: (qmail 13662 invoked by uid 98); 20 Jun 2002 22:09:03 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-Id: <5.1.0.14.0.20020621000127.024be5d0@mail.qos.ch> X-Sender: ceki@mail.qos.ch X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 21 Jun 2002 00:08:50 +0200 To: "Edward Q. Bridges" , "Log4J Users List" From: Ceki =?iso-8859-1?Q?G=FClc=FC?= Subject: Re: ClassCastException in 1.2.4 In-Reply-To: <20020620215350.15565.qmail@cmsapps01.cms.usa.net> References: <5.1.0.14.0.20020620233532.00b7abe0@mail.qos.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N The ClassCastException of RollingFileAppender to an Appender makes it pretty clear that we are dealing with a classloader problem. One thing that changed between log4j 1.2.1 and 1.2.2 is that in the latter version log4j will use the Thread Context Classloader (TCL) to load classes. (Log4j 1.1.3 does not use the TCL either). You can download 1.2.1 at http://jakarta.apache.org/log4j/jakarta-log4j-1.2.1.tar.gz Please try to use 1.2.1 to check whether my TCL hypothesis is correct. At 17:53 20.06.2002 -0400, Edward Q. Bridges wrote: >Nope :) > >see below. > >note that ant copies log4j.jar and others from $SERVER_HOME/tslib to=20 >$SERVER_HOME/applications/ts2/WEB-INF/lib >and then weblogic works its wonders and puts it's own special copy in=20 >$SERVER_HOME/applications/ts2/WEB-INF/ >_tmp_war_edAdmin_edAdmin_ts2/WEB-INF/lib/ > >this is representative. the jar file you see below is actually the 1.1.3= =20 >version. i had to rollback to the >earlier version so that i could continue working. but, i assure you i did= =20 >not remove any jar files manually >from any of those places. the only place i touch is "tslib," scripts and= =20 >weblogic take care of the other >places. we do no manipulation at all of /jre/lib/ext nor the classpath. > >this setup has run flawlessly with 1.1.3. but, not with 1.2.4 (yet!). > >many thanks! > >cheers >--e-- > > > > >On Thu, 20 Jun 2002 23:36:42 +0200, Ceki G=FClc=FC wrote: > > > > > I bet you have multiple copies of log4j.jar in the classpath, WEB-LIB or > > JAVA_HOME/jre/lib/ext. Correct? > > > > >bash-2.03$ echo $CLASSPATH >/d01/bea/wlserver6.1/patch/CR058352_ >61sp2.jar:/d01/bea/jdk131/lib/tools.jar:/d01/bea/wlserver6.1/lib/weblogic_s= p.jar:/d01/bea/wlserver6.1/lib/weblog >ic.jar >bash-2.03$ ls $JAVA_HOME/jre/lib/ext >bash-2.03$ ls -la $JAVA_HOME/jre/lib/ext >total 3 >drwxr-xr-x 2 xxxxxxxx xxxx 512 Nov 14 2001 ./ >drwxr-xr-x 11 xxxxxxxx xxxx 2048 Nov 14 2001 ../ >bash-2.03$ ls -la $SERVER_HOME/tslib/ >total 25926 >drwxrwxr-x 2 xxxxxxxx xxxx 512 Jun 20 16:10 ./ >drwxrwxr-x 16 xxxxxxxx xxxx 2560 Jun 20 17:25 ../ >-rwxr--r-- 1 xxxxxxxx xxxx 20454 Dec 24 16:34= commons-beanutils.jar* >-rwxr--r-- 1 xxxxxxxx xxxx 58798 Jul 14 2001=20 >commons-collections.jar* >-rwxr--r-- 1 xxxxxxxx xxxx 191881 Apr 26 11:08 jaxen-full.jar* >-rw-rw-r-- 1 xxxxxxxx xxxx 126886 Mar 25 12:57 jdom.jar >-rwxr--r-- 1 xxxxxxxx xxxx 158892 Mar 19 15:37 log4j.jar* >-rwxr--r-- 1 xxxxxxxx xxxx 23563 Apr 26 11:08 saxpath.jar* >-rw-r--r-- 1 xxxxxxxx xxxx 220703 May 3 11:13 soap.jar >-rw-r--r-- 1 xxxxxxxx xxxx 3726 Jun 18 12:21 startup.jar >-rw-r--r-- 1 xxxxxxxx xxxxx 25665013 Mar 25 13:29 weblogic.jar >bash-2.03$ ls -la $SERVER_HOME/applications/ts2/WEB-INF/ >total 18 >drwxr-xr-x 5 xxxxxxxx xxxx 512 Jun 20 16:27 ./ >drwxr-xr-x 3 xxxxxxxx xxxx 512 Jun 20 16:26 ../ >drwxr-xr-x 3 xxxxxxxx xxxx 512 Jun 20 16:27=20 >_tmp_war_edAdmin_edAdmin_ts2/ >drwxr-xr-x 3 xxxxxxxx xxxx 512 Jun 20 16:26 classes/ >drwxr-xr-x 2 xxxxxxxx xxxx 512 Jun 20 16:26 lib/ >-rw-r--r-- 1 xxxxxxxx xxxx 12582 Jun 20 16:26 web.xml >bash-2.03$ ls -la $SERVER_HOME/applications/ts2/WEB-INF/lib/ >total 836 >drwxr-xr-x 2 xxxxxxxx xxxx 512 Jun 20 16:26 ./ >drwxr-xr-x 5 xxxxxxxx xxxx 512 Jun 20 16:27 ../ >-rw-r--r-- 1 xxxxxxxx xxxx 20454 Jun 20 16:26= commons-beanutils.jar >-rw-r--r-- 1 xxxxxxxx xxxx 58798 Jun 20 16:26=20 >commons-collections.jar >-rw-r--r-- 1 xxxxxxxx xxxx 191881 Jun 20 16:26 jaxen-full.jar >-rw-r--r-- 1 xxxxxxxx xxxx 126886 Jun 20 16:26 jdom.jar >-rw-r--r-- 1 xxxxxxxx xxxx 158892 Jun 20 16:26 log4j.jar >-rw-r--r-- 1 xxxxxxxx xxxx 23563 Jun 20 16:26 saxpath.jar >-rw-r--r-- 1 xxxxxxxx xxxx 220703 Jun 20 16:26 soap.jar >-rw-r--r-- 1 xxxxxxxx xxxx 3726 Jun 20 16:26 startup.jar >bash-2.03$ ls -la=20 >$SERVER_HOME/applications/ts2/WEB-INF/_tmp_war_edAdmin_edAdmin_ts2/WEB-INF/= lib/ >total 836 >drwxr-xr-x 2 xxxxxxxx xxxx 512 Jun 20 16:27 ./ >drwxr-xr-x 3 xxxxxxxx xxxx 512 Jun 20 16:27 ../ >-rw-r--r-- 1 xxxxxxxx xxxx 20454 Jun 20 16:27=20 >commons-beanutils22525.jar >-rw-r--r-- 1 xxxxxxxx xxxx 58798 Jun 20 16:27=20 >commons-collections22527.jar >-rw-r--r-- 1 xxxxxxxx xxxx 191881 Jun 20 16:27 jaxen-full22522.jar >-rw-r--r-- 1 xxxxxxxx xxxx 126886 Jun 20 16:27 jdom22524.jar >-rw-r--r-- 1 xxxxxxxx xxxx 158892 Jun 20 16:27 log4j22523.jar >-rw-r--r-- 1 xxxxxxxx xxxx 23563 Jun 20 16:27 saxpath22528.jar >-rw-r--r-- 1 xxxxxxxx xxxx 220703 Jun 20 16:27 soap22526.jar >-rw-r--r-- 1 xxxxxxxx xxxx 3726 Jun 20 16:27 startup22521.jar > >-- >Edward Q. Bridges >http://www.teachscape.com -- Ceki -- To unsubscribe, e-mail: For additional commands, e-mail: