Return-Path: Delivered-To: apmail-jakarta-cactus-user-archive@apache.org Received: (qmail 94039 invoked from network); 15 Aug 2002 20:43:10 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 15 Aug 2002 20:43:10 -0000 Received: (qmail 27270 invoked by uid 97); 15 Aug 2002 20:43:38 -0000 Delivered-To: qmlist-jakarta-archive-cactus-user@jakarta.apache.org Received: (qmail 27242 invoked by uid 97); 15 Aug 2002 20:43:37 -0000 Mailing-List: contact cactus-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Cactus Users List" Reply-To: "Cactus Users List" Delivered-To: mailing list cactus-user@jakarta.apache.org Received: (qmail 27229 invoked by uid 98); 15 Aug 2002 20:43:37 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: From: "Peng, Haitao" To: 'Cactus Users List' Subject: RE: Log4j Error with Jrun4/JBuilder Date: Thu, 15 Aug 2002 13:37:40 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C2449B.9980F420" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C2449B.9980F420 Content-Type: text/plain The error message disappears after I modified excluded.properties in junit-3.7.jar. I added the this line: excluded.6=org.apache.log4j.* Thanks Haitao Peng Commerce One at Austin (512) 597-6230 (o) -----Original Message----- From: Vincent Massol [mailto:vmassol@octo.com] Sent: Thursday, August 15, 2002 12:28 PM To: 'Cactus Users List' Subject: RE: Log4j Error with Jrun4/JBuilder Hi Haito, This looks like a log4j problem. You can either ask on the log4j mailing list or simply turn debugging on for log4j (pass -Dlog4j.debug). It will tell you what's wrong. You can also read http://jakarta.apache.org/log4j/docs/TROUBLESHOOT.html Cheers, -Vincent > -----Original Message----- > From: Peng, Haitao [mailto:Haitao.Peng@commerceone.com] > Sent: 15 August 2002 18:02 > To: 'Cactus Users List' > Subject: Log4j Error with Jrun4/JBuilder > > Hi, All: > > I get this error from Log4j. I saw similar posting before. I read all the > archived emails and did not find an answer. > > Here is my log4j.properties: > > --------------------------------------------------- > # Properties for configuring Log4j > # This is the configuring for logging on the JUnit side (i.e. the > client side) > > log4j.appender.cactus = org.apache.log4j.FileAppender > log4j.appender.cactus.File = cactus_client.log > log4j.appender.cactus.Append = false > log4j.appender.cactus.layout = org.apache.log4j.PatternLayout > log4j.appender.cactus.layout.ConversionPattern = %d{ABSOLUTE} [%t] > %-5p %-30.30c{2} %x - %m %n > > # Any application log which uses Log4J will be logged to the Cactus > log file > log4j.rootCategory=DEBUG, cactus > > # By default we don't log at the DEBUG level for Cactus log, in > order not to generate too > # many logs. However, should a problem arise and logs need to be > sent to the Cactus dev team, > # then we will ask you to change this to DEBUG. > #log4j.category.org.apache.cactus = WARN, cactus > log4j.additivity.org.apache.cactus=false > ----------------------------------------------------- > > I have same log4j.properties in my server classpath except one line: > log4j.appender.cactus.File = cactus_server.log > > I added both class paths to Jbuilder. But when I run my test cases, the > server-side logging works and client-side logging does. The following > errors occur: > log4j:ERROR A "org.apache.log4j.FileAppender" object is not assignable > to > a "org.apache.log4j.Appender" variable. log4j: > ERROR Could not instantiate appender named "cactus". > log4j:WARN No appenders could be found for logger > (org.apache.commons.httpclient.HttpClient). > log4j:WARN Please initialize the log4j system properly. > > It makes no difference if I un-comment this line in log4j.properties: > #log4j.category.org.apache.cactus = WARN, cactus > > > > Thanks > > > Haitao Peng > Commerce One at Austin > (512) 597-6230 (o) > > -- > To unsubscribe, e-mail: unsubscribe@jakarta.apache.org> > For additional commands, e-mail: help@jakarta.apache.org> -- To unsubscribe, e-mail: For additional commands, e-mail: ------_=_NextPart_001_01C2449B.9980F420--