I have added the log4j-1.2.9.jar file in the WEB-INF\lib.Also used the abclog4j.properties properties file.Could you please suggest me why i am getting this error(java.lang.NoClassDefFoundError: org.apache.log4j.Logger error) while started my server and running application through the URL.
Make sure that another log4j jar isn't anywhere else on the server's classpath - i.e. in the server's lib directory, or referenced through the system environment (if the server is set up this way) - sometimes you'll get NoClassDefFoundError when there are conflicting versions of a class.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Joined: Jun 23, 2008
I didn't get your advise regarding Log4j error properly.
We shouldn't mention log4j. jar in the server classpath(Yes/No).
We only keep the log4j. jar in the WEB-INF\lib(Yes/No)