Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Logging not working with the jar file

807588Apr 24 2009 — edited Apr 24 2009
Hi ,

I have placed log4j.properties file in the bin folder (where rest of the class files reside) in my workspace . The applications runs properly and logging works perfectly.

But when I create a jar file out of this project (using WSAD), the jar file runs correctly, but the logging fails.

The following Error is seen on the command prompt


log4j:WARN No appenders could be found for logger (com.abnamro.nl.inv.drop.processor.DropProcessor)


log4j:WARN Please initialize the log4j system properly


My manifest file has the flollowing content
Manifest-Version: 1.0
Class-Path: log4j.jar common-logging.jar
log4j:WARN No appenders could be found for logger


log4j:WARN Please initialize the log4j system properly

I feel that the properties file is not being fetched from the bin folder while generating the jar file.

Please let me know if anybody has the solution for this.

Regards,

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 22 2009
Added on Apr 24 2009
3 comments
2,118 views