Hi! I'm still a student studying J2EE and ran into
this problem while setting up my Log4J running with
Tomcat 4.0.1 for my project.
The problem is that it works Perfectly on my Desktop
but runs into this problem on my laptop:
log4j:ERROR No appenders could be found for category
(edu.rmit.isys2049.EmployeeAccessBean).
log4j:ERROR Please initialize the log4j system
properly.
The documentation states that i need to "Simply add an
appender to the rootCategory". I have done exactly
that but to no avail!
I'm using JDK1.3.1_02 and the paths have already been
set correctly as it's exactly the same as my desktop.
Ant help is greatly appreciated as nobody in school,
including the lecturers, seems to be able to help me!
Here's my log4j.properties file configuration:
log4j.rootCategory=WARN,FILE,A1
log4j.category.edu.rmit.isys2049.EmployeeAccessBean=DEBUG
log4j.appender.FILE=org.apache.log4j.FileAppender
log4j.appender.FILE.File=C:/temp/tomcat.log
log4j.appender.A1=org.apache.log4j.FileAppender
log4j.appender.A1.File=d:/temp/trace.log
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.layout.ConversionPattern=%d [%t ]
%-5p %c{1}-%m%n
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d [%t ]
%-5p %c{1}-%m%n
Regards,
Ronnie Choo
Student of RMIT University
__________________________________________________
Do You Yahoo!?
Promote your business from just $5 a month!
http://sg.biztools.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]