I have a Java application running on WAS 6.1, with Log4j used for logging. Log files are not created. Some other configuration for logging is used, but not the one that is packaged with the application.
Where should I check for WAS6.1 global log4j configuration? How can I overwrite it for a particular application?
The application is deployed from the war archive.
log4j-1.2.14.jar is packaged with the application in the WEB-INF/lib directory. I have put a
commons-logging.properties file in WEB-INF directory.
Here's my web.xml:
<?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:web="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
id="WebApp_ID" version="2.4">
<display-name>LineCheckOptimizerWeb</display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>/WEB-INF/log4j.xml</param-value>
</context-param>
<listener>
<description>Initializes a Guice Injector and installs it into the ServletContext</description>
<display-name>GuiceInitializer</display-name>
<listener-class>com.aa.otrs.lco.guice.GuiceInitializer</listener-class>
</listener>
<servlet>
<servlet-name>MessageBrokerServlet</servlet-name>
<servlet-class>flex.messaging.MessageBrokerServlet</servlet-class>
<init-param>
<param-name>services.configuration.file</param-name>
<param-value>/WEB-INF/flex/services-config.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>MessageBrokerServlet</servlet-name>
<url-pattern>/messagebroker/*</url-pattern>
</servlet-mapping>
<resource-ref>
<description>LCO JDBC Datasource</description>
<res-ref-name>jdbc/lco</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>