posted 15 years ago
Dear All,
I am new to spring and using spring 2.0. I am writing an AOP Logging program.
I am not getting compilation error.
While running the Main.java I am getting warning log4j:WARN No appenders could be found for logger (org.springframework.context.support.ClassPathXmlApplicationContext).
log4j:WARN Please initialize the log4j system properly.
My doubt is what i will add the syntax of code in Main.java so that i am getting the output.
[b]”I have added the jar files in the class path .asm-2.2.3.jar, asm-commons-2.2.3.jar, asm-util-2.2.3.jar, aspectjrt.jar, aspectjweaver.jar, spring-aop.jar, spring.jar,log4j.jar, cglib-nodep-2.1_3.jar”
Below given is my code.
Greeter.java
DefaultGreeter.java
MethodLogger.java
Main.Java
MethodLoggerTest-context.xml
Please help/advise me on resolve this issue. .
Thanks for your time.
Best Regards,
Sumanta Panda