I have two war files , one is client war file and another is Axis2.war file.
Is it possible to have common Log4j for both these Applications (Means both using one Log4j.properties file )
Thank you .
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, you need to place Log4J JAR in common directory (like
/libin Tomcat) and remove it from/WEB-INF/libdirectories inside both WARs. Now placelog4j.xmlon the CLASSPATH, so it will be loaded upon servlet container startup, not the web application.