Just out of curiosity: Is it important that you put the location of log4j.xml in a context parameter? If you put it anywhere in your classpath (either under your WEB-INF/classes or in the Tomcat common/classes directory) your webapps should pick it up.
-----Original Message----- From: JMan_JE [mailto:[email protected]] Sent: Tuesday, August 25, 2009 3:04 PM To: [email protected] Subject: Using Log4J inside a simlpe frontend bean Hello, i have a bean published as a service using the simple frontend. It is hosted in a tomcat container using the cxf servlet and the spring ContextLoaderListener. I have log4j configured in the web.xml by adding <context-param> <param-name>log4jConfigLocation</param-name> <param-value>file:C:/<path>/log4j.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class> </listener> above the ContextLoaderListener. This way i see the cxf logging messages in the configured logger. The Problem however is, that i do not see the logmessages from my bean. In my bean i get a logger like this: Logger.getLogger(Bean.class). The log4j-jar is inside my webapps lib folder. Any ideas whats wrong here? Thanks for any hints, Johannes -- View this message in context: http://www.nabble.com/Using-Log4J-inside-a-simlpe-frontend-bean-tp25132933p25132933.html Sent from the cxf-user mailing list archive at Nabble.com.
