Configuration Error in Log4j
Hi
I’m getting following error after I deploy my Web-App in WebLogic10, and run the first screen.
log4j:ERROR Could not read configuration file [null\config\null].
java.io.FileNotFoundException: null\config\null (The system cannot find the path specified)
.
.
.
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
log4j:ERROR Ignoring configuration file *[null\config\null*].
log4j:WARN No appenders could be found for logger (PropsCache).
log4j:WARN Please initialize the log4j system properly.
Exception in reading property filenull
log4j:ERROR Could not read configuration file [null\config\null].
java.io.FileNotFoundException: null\config\null (The system cannot find the path specified)
I’m using a customized properties file DEPWEBlog.properties for Log4J props. And I put it at all possible location in Domain’s root folder, class-path, lib etc… but all in vain.
I set this file as Java_Option in my Domain’s Env script as (setDomainEnv.cmd, i m in Windows env)
-DAPP_LOGPROPERTIES=DEPWEBlog.properties
Also i made following change in prop file:
log4j.appender.A2.File=....\bea\user_projects\domains\myAppDOMAIN\myAppHome\logs\appweb.log
Any help or suggestion???
Am i doing it correctly?
*Advance apology if i m breaking any of forum's rule as i'm a nwbie here