Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Configuring Log4j with Weblogic

Status
Not open for further replies.

sdnarayan

IS-IT--Management
May 18, 2002
1
IN

HI

i am having difficulty in configuring log4j in weblogic. I have set the log4j in the weblogic classpath but still no log files are being generated.

Can any one tell me how to rectify this problem

Thanks and Regards
Narayan
 
May be something to do with file permissions.. Try logging to console first, and then to some files.. in windows try '\\' instead of '\'.eg:(c:\\test.log)

log4j.rootLogger=INFO, logFile
log4j.appender.logFile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.logFile.file=c:\\test.log
log4j.appender.logFile.append=true



I have had problems too with log4j1.2 when used in a web application in WLS6.1 for Solaris. Even though log4j1.2.6.jar was in WEB-INF\lib directory of the war, while deploying, WLS6.1 gave an error:

java.lang.NoClassDefFoundError: org/apache/log4j/Category.

Same war when deployed to WLS6.1 on an XP machine did not give any problems. WLS6.1 on solaris gave this problem.

This link partially solved my problem


Still need to figure out why WLS6.1 for solaris doesn't take log4j1.2 in WEB-INF\lib to its classpath... Any Ideas...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top