Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 89824 invoked from network); 8 May 2003 16:11:18 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 8 May 2003 16:11:18 -0000 Received: (qmail 23444 invoked by uid 97); 8 May 2003 16:13:22 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@nagoya.betaversion.org Received: (qmail 23437 invoked from network); 8 May 2003 16:13:22 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 8 May 2003 16:13:22 -0000 Received: (qmail 89485 invoked by uid 500); 8 May 2003 16:11:13 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 89344 invoked from network); 8 May 2003 16:11:12 -0000 Received: from unknown (HELO ctsincalsxia.cts.com) (203.197.121.132) by daedalus.apache.org with SMTP; 8 May 2003 16:11:12 -0000 Received: from 10.236.145.171 by ctsincalsxia.cts.com (InterScan E-Mail VirusWall NT); Thu, 08 May 2003 21:44:11 +0530 content-class: urn:content-classes:message MIME-Version: 1.0 Subject: HI X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Date: Thu, 8 May 2003 21:44:12 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: HI Thread-Index: AcMVfOEMezNR0QOgSqy8jQt4zjzHyw== From: "Chopra, Sumeet (Cognizant)" To: Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-9dd64305-812b-4dbd-94b0-a55d97d63760" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPartTM-000-9dd64305-812b-4dbd-94b0-a55d97d63760 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C3157C.DD1279A4" ------_=_NextPart_001_01C3157C.DD1279A4 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable HI, I am using commons-logging and Log4J . I am using them on WebLogic 8.1b. I have kept the commons-logging.properties file in /WEB-INF/classes with this text *************************************************************************= *********************** org.apache.commons.logging.Log=3Dorg.apache.commons.logging.impl.Log4JLog= ger *************************************************************************= *********************** and I have also placed LoggingConfigurationFile.xml for Log4J which has the following contents. *************************************************************************= *********************** =09 =20 =09 =20 =09 =09 =09 =09 =09 *************************************************************************= ****************************************************************** and I am calling log method from a class MyApp which is as : *************************************************************************= **************** package checkFree; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.*; public class MyApp { private static Log log =3D LogFactory.getLog(MyApp.class);; public void toPrint() { try { //log =3D LogFactory.getLog("checkFree.MyApp"); log.fatal("This is fatal mesage from MyApp"); } catch(LogConfigurationException lce) { lce.printStackTrace(); } } } *************************************************************************= **************** toPrint() method is called from a JSP file after instaitating MyApp. But I am getting this error. ############################################## log4j:WARN No appenders could be found for logger (checkFree.MyApp). log4j:WARN Please initialize the log4j system properly. Can someone please tell me where I am going wrong ? Thanks in advance. Thanks and Regards, Sumeet Chopra. ------_=_NextPart_001_01C3157C.DD1279A4 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable HI

HI,

I am using commons-logging and Log4J = .
I am using them on WebLogic = 8.1b.

I have kept the = commons-logging.properties file
in /WEB-INF/classes with this = text
**********************************************************= **************************************
org.apache.commons.logging.Log=3Dorg.apache.commons.loggin= g.impl.Log4JLogger
**********************************************************= **************************************

and I have also placed = LoggingConfigurationFile.xml for Log4J
which has the following = contents.

**********************************************************= **************************************
<?xml version=3D"1.0" = encoding=3D"UTF-8" ?>
<!DOCTYPE log4j:configuration = SYSTEM "log4j.dtd">

  <log4j:configuration = debug=3D"true" xmlns:log4j=3D"http://jakarta.apache.org/log4j= /">

        <appender name=3D"A1" = class=3D"org.apache.log4j.FileAppender">
         &nbs= p;  <param name=3D"File"   = value=3D"D:/bea/user_projects/CheckFreeDomain/applications/CheckFree= /logs/SimpleLog.log" />

         &nbs= p;  <param name=3D"Append" value=3D"true" = />            =    
         &nbs= p;  <layout = class=3D"org.apache.log4j.PatternLayout">
        =         <param name=3D"ConversionPattern" = value=3D"%d{DATE} %-6r %-5p %30.30c %x - %m\n" />
         &nbs= p;  </layout>      
        </appender>
        <appender name=3D"A2" = class=3D"org.apache.log4j.FileAppender">
        =         <param name=3D"File"   = value=3D"D:/bea/user_projects/CheckFreeDomain/applications/CheckFree= /logs/AuditTrail.log" />

        =         <param name=3D"Append" = value=3D"true" />        =    
                <layout = class=3D"org.apache.log4j.PatternLayout">
        =           <param name=3D"ConversionPattern" = value=3D"%d{DATE} %-6r %-5p %30.30c %x - %m\n"/>
                = </layout>           =
        </appender>
       =20
       =20
        <category name=3D"checkFree">
            <priority value=3D"debug" = />
            <appender-ref ref=3D"A1" = />
        </category>
       =20
        <category name=3D"checkFree">
            <priority value=3D"debug" = />
            <appender-ref ref=3D"A2" = />
        </category>
       =20
       =20
        <root>
            <!-- The following level element is = not necessary since the -->
            <!-- level of the root level is set = to DEBUG by default.    -->
            <level value = =3D"INFO"/>
            <appender-ref ref=3D"A1" = />
            <appender-ref ref=3D"A2" = />
        </root>
  = </log4j:configuration>
**********************************************************= *************************************************************************= ********

and I am calling log method from a = class MyApp which is as :

**********************************************************= *******************************
package checkFree;

import = org.apache.commons.logging.Log;
import = org.apache.commons.logging.LogFactory;
import = org.apache.commons.logging.*;


public class MyApp {

    private  static = Log log =3D LogFactory.getLog(MyApp.class);;
    public void = toPrint()
    {
       = try
       = {
        =            //log =3D = LogFactory.getLog("checkFree.MyApp");

        =            log.fatal("This is  fatal mesage = from MyApp");
           }
           catch(LogConfigurationException lce)
           {
        =            lce.printStackTrace();
           }
     }
 }

**********************************************************= *******************************

toPrint() method is called from a JSP = file after instaitating MyApp.

But I am getting this error.

##############################################

log4j:WARN No appenders could be found = for logger (checkFree.MyApp).
log4j:WARN Please initialize the log4j = system properly.

Can someone please tell me where I am = going wrong ?


Thanks in advance.

Thanks and Regards,
Sumeet Chopra.


------_=_NextPart_001_01C3157C.DD1279A4-- ------=_NextPartTM-000-9dd64305-812b-4dbd-94b0-a55d97d63760 Content-Type: text/plain; name="InterScan_SafeStamp.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="InterScan_SafeStamp.txt" ****** Message from InterScan E-Mail VirusWall NT ****** ** No virus found in attached file noname.htm ** No virus found in attached file noname.htm No Virus detected in the attached file(s). ***************** End of message *************** ------=_NextPartTM-000-9dd64305-812b-4dbd-94b0-a55d97d63760 Content-Type: text/plain; name="InterScan_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="InterScan_Disclaimer.txt" This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com ------=_NextPartTM-000-9dd64305-812b-4dbd-94b0-a55d97d63760 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org ------=_NextPartTM-000-9dd64305-812b-4dbd-94b0-a55d97d63760--