File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes using log4j and WSAD 5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "using log4j and WSAD 5" Watch "using log4j and WSAD 5" New topic

using log4j and WSAD 5

vibeeshan kambli
Ranch Hand

Joined: Jan 22, 2003
Posts: 41
I got following error while configuring log4j in WSAD 5.
log4j:WARN No appenders could be found for logger (testpack.HelloBean).
log4j:WARN Please initialize the log4j system properly.
I have wsad 5 enterprise application proj
under this project under java jar dependencies i specified log4j jar file
I have strucuture like(MyPoj\config\lib\log4j.jar and i have log4j.properites MyPoj\config\lib\
and I added my MYproj folder to server classpath
still i am getting the above error
What could be the problem?
I saw abache website they gave solution like
Log4j does not have a default logging target. It is the user's responsibility to ensure that all categories can inherit an appender. This can be easily achieved by attaching an appender to the root category
what is this mean?how to configure log4j inside WSAD5
I am using Test Environment Server 5.0 inside WSAD5.0
vibeeshan kambli
Ranch Hand

Joined: Jan 22, 2003
Posts: 41
I found this articile very usefull
and it solved my problem
I agree. Here's the link:
subject: using log4j and WSAD 5
It's not a secret anymore!