You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rahul Mohan <ra...@pune.tcs.co.in> on 2003/12/05 07:46:20 UTC

Log4j with Struts

Hi,

    has anybody tried using Log4j with struts? I tried the following code and its giving a ClassDefNotFoundException during runtime..
    
this is inside the perform method:
     String str = new String(LogonAction.class.getName()); //LogonAction is an Action Class
     logger = Logger.getLogger(str); //this line is throwing the exception - apparently str is not having a classdef

somebody please help me with this.....or is there any other method to perform logging? 

i am using tomcat4.1 ...

Thanks in advance.
    
Rahul Mohan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
MasterCraft Group
Tata Consultancy Services
Tata Research Development and Design Center
54B, Hadapsar Industrial Estate
Pune - 411 013
Phone: +91 4042333 or 4031122 Extn 2556
            +91 20 31544082 ( Mobile )
Fax:     +91 20 4042399
email : rahul_mohan@pune.tcs.co.in
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~