Sunday, December 28, 2008

Log4j:WARN Please initialize the log4j system properly.

Removing Log4j error
You will get the following error, if you haven't kept the etc. file in your classpath

log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.

To avoid this error, please make sure that first you keep commons-logging.jar,log4j.jar in your classpath and most importantly keep in the classpath and keep the contenets of that as below.

# Default Logging Configuration
log4j.rootLogger= DEBUG, stdout
#to increase logging level
#to decrease logging level
#log4j.appender.stdout.layout.ConversionPattern=%d{ ABSOLUTE} %-5p %x - %m\n

This should resolve the log4j error.

Hibernate Tutorial

This tutorial gives an overview of Hibernate along with a Sample application. I am writing this sample without using any build tool like Ant/Maven so that any one can learn Hibernate from scratch/
Coming Soon!

Struts Tutorial

Coming Soon!

Struts2 Tutorial

Coming soon!

Tuesday, November 25, 2008

Monday, November 3, 2008