Hi Benson
I just tested the web.xml with the Log4jConfigListener and
ContextLoaderListener , they are workable :)
you need to specify the listeners like this:
<listener>
<listener-class>
org.springframework.web.util.Log4jConfigListener
</listener-class>
</listener>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
Willem.
-----Original Message-----
From: Benson Margulies [mailto:[EMAIL PROTECTED]
Sent: Fri 10/5/2007 21:13
To: [email protected]
Subject: spring logging mystery
Here is concrete evidence of the Log4jConfigListener having disasterous
effects on CXF.
The variable is the comments in the following web.xml fragment.
<listener>
<!--
<listener-class>org.springframework.web.util.Log4jConfigListener</listen
er-class>
-->
<listener-class>org.springframework.web.context.ContextLoaderListener</l
istener-class>
</listener>
With org.springframework.web.util.Log4jConfigListener:
jetty.run:
[jetty] Configuring Jetty for project: RLPWS
[jetty] 2007-10-05 09:08:01.230::INFO: Logging to STDERR via
org.mortbay.log.StdErrLog
[jetty]
[jetty] Configuring Jetty for web application: rlpws
[jetty] Webapp source directory =
c:\x\rlp54\rlpws\cxfwebapp\development
[jetty] Context path = /rlpws
[jetty] Classpath = []
[jetty] Default scanned paths = []
[jetty] Extra scan targets = []
[jetty] Temp directory = c:\x\rlp54\rlpws\cxfwebapp\jetty-temp\rlpws
[jetty] web.xml file =
c:\x\rlp54\rlpws\cxfwebapp\development\WEB-INF\web.xml
[jetty] 2007-10-05 09:08:01.512::INFO: jetty-6.1.3
[jetty] 2007-10-05 09:08:04.840::INFO: No Transaction manager found
- if your webapp requires one, please configure one.
[jetty] 2007-10-05 09:08:09.746:rlpws:INFO: Set web app root system
property: 'webapp.root' = [C:\x\rlp54\rlpws\cxfwebapp\development\]
[jetty] 2007-10-05 09:08:09.746:rlpws:INFO: Initializing Log4J from
[classpath:rlpws-log4j.properties]
[jetty] Oct 5, 2007 9:08:10 AM
org.apache.cxf.transport.servlet.CXFServlet loadSpringBus
[jetty] INFO: load the bus without application context
[jetty] Oct 5, 2007 9:08:12 AM
org.apache.cxf.transport.servlet.CXFServlet replaceDestinationFactory
[jetty] INFO: replaced the http destionFactory with servlet
transport factory
[jetty] 2007-10-05 09:08:13.090::INFO: Started
SelectChannelConnector @ 0.0.0.0:8080
[jetty] Oct 5, 2007 9:08:28 AM
org.apache.cxf.transport.servlet.ServletController invoke
[jetty] WARNING: Can't find the the request for
http://localhost:8080/rlpws/NameIndex's Observer
Without:
jetty.run:
[jetty] Configuring Jetty for project: RLPWS
[jetty] 2007-10-05 09:09:22.590::INFO: Logging to STDERR via
org.mortbay.log.StdErrLog
[jetty]
[jetty] Configuring Jetty for web application: rlpws
[jetty] Webapp source directory =
c:\x\rlp54\rlpws\cxfwebapp\development
[jetty] Context path = /rlpws
[jetty] Classpath = []
[jetty] Default scanned paths = []
[jetty] Extra scan targets = []
[jetty] Temp directory = c:\x\rlp54\rlpws\cxfwebapp\jetty-temp\rlpws
[jetty] web.xml file =
c:\x\rlp54\rlpws\cxfwebapp\development\WEB-INF\web.xml
[jetty] 2007-10-05 09:09:22.683::INFO: jetty-6.1.3
[jetty] 2007-10-05 09:09:22.887::INFO: No Transaction manager found
- if your webapp requires one, please configure one.
[jetty] 2007-10-05 09:09:23.277:rlpws:INFO: Initializing Spring
root WebApplicationContext
[jetty] log4j:WARN No appenders could be found for logger
(org.springframework.web.context.ContextLoader).
[jetty] log4j:WARN Please initialize the log4j system properly.
[jetty] Oct 5, 2007 9:09:26 AM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromClass
[jetty] INFO: Creating Service
{http://impl.ws.index.rnm.basistech.com/}NameIndexServiceImplService
from class com.basistech.rnm.index.ws.impl.NameIndexServiceImpl
[jetty] Oct 5, 2007 9:09:27 AM
org.apache.cxf.transport.servlet.CXFServlet loadSpringBus
[jetty] INFO: load the bus with application context
[jetty] Oct 5, 2007 9:09:27 AM
org.apache.cxf.transport.servlet.CXFServlet replaceDestinationFactory
[jetty] INFO: servlet transport factory already registered
[jetty] 2007-10-05 09:09:27.668::INFO: Started
SelectChannelConnector @ 0.0.0.0:8080