You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Benson Margulies <bi...@basistech.com> on 2007/10/04 16:17:51 UTC

logging and spring and jetty

If I just deploy a webapp along the lines of the samples, I get ...

 

[jetty] 2007-10-04 09:42:53.129::INFO:  No Transaction manager found -
if your webapp requires one, please configure one.

    [jetty] 2007-10-04 09:42:53.535:rlpws:INFO:  Initializing Spring
root WebApplicationContext

    [jetty] log4j:WARN No appenders could be found for logger
(org.springframework.web.context.ContextLoader).

  

 

If I try to add in the Spring class 

 

<listener-class>org.springframework.web.util.Log4jConfigListener</listen
er-class>

 

My CXF services just disappear.

 

I'm using the 2.0.2 release package. Anybody got a clue?

 


RE: logging and spring and jetty

Posted by Willem2 <ni...@iona.com>.
Yes, it is weird. :(

Willem.

 

bmargulies wrote:
> 
> I did. When I list both listeners, CXF stops working. When I only list
> the CXF listener, all is well. It is very mysterious. If that is
> mysterious to you, I'll fire up my trusty debugger.
> 
>> -----Original Message-----
>> From: Willem2 [mailto:ning.jiang@iona.com]
>> Sent: Thursday, October 04, 2007 10:48 AM
>> To: cxf-user@incubator.apache.org
>> Subject: Re: logging and spring and jetty
>> 
>> 
>> Hi Benson,
>> 
>> you still need to use
>> "org.springframework.web.context.ContextLoaderListener" as the
> listener,
>> which will provide the application context for CXFServlet bus to load.
>> 
>> Willem.
>> 
>> bmargulies wrote:
>> >
>> > If I just deploy a webapp along the lines of the samples, I get ...
>> >
>> >
>> >
>> > [jetty] 2007-10-04 09:42:53.129::INFO:  No Transaction manager found
> -
>> > if your webapp requires one, please configure one.
>> >
>> >     [jetty] 2007-10-04 09:42:53.535:rlpws:INFO:  Initializing Spring
>> > root WebApplicationContext
>> >
>> >     [jetty] log4j:WARN No appenders could be found for logger
>> > (org.springframework.web.context.ContextLoader).
>> >
>> >
>> >
>> >
>> >
>> > If I try to add in the Spring class
>> >
>> >
>> >
>> >
> <listener-class>org.springframework.web.util.Log4jConfigListener</listen
>> > er-class>
>> >
>> >
>> >
>> > My CXF services just disappear.
>> >
>> >
>> >
>> > I'm using the 2.0.2 release package. Anybody got a clue?
>> >
>> >
>> >
>> >
>> >
>> 
>> --
>> View this message in context:
> http://www.nabble.com/logging-and-spring-
>> and-jetty-tf4569112.html#a13041502
>> Sent from the cxf-user mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/logging-and-spring-and-jetty-tf4569112.html#a13042120
Sent from the cxf-user mailing list archive at Nabble.com.


RE: logging and spring and jetty

Posted by Benson Margulies <bi...@basistech.com>.
I did. When I list both listeners, CXF stops working. When I only list
the CXF listener, all is well. It is very mysterious. If that is
mysterious to you, I'll fire up my trusty debugger.

> -----Original Message-----
> From: Willem2 [mailto:ning.jiang@iona.com]
> Sent: Thursday, October 04, 2007 10:48 AM
> To: cxf-user@incubator.apache.org
> Subject: Re: logging and spring and jetty
> 
> 
> Hi Benson,
> 
> you still need to use
> "org.springframework.web.context.ContextLoaderListener" as the
listener,
> which will provide the application context for CXFServlet bus to load.
> 
> Willem.
> 
> bmargulies wrote:
> >
> > If I just deploy a webapp along the lines of the samples, I get ...
> >
> >
> >
> > [jetty] 2007-10-04 09:42:53.129::INFO:  No Transaction manager found
-
> > if your webapp requires one, please configure one.
> >
> >     [jetty] 2007-10-04 09:42:53.535:rlpws:INFO:  Initializing Spring
> > root WebApplicationContext
> >
> >     [jetty] log4j:WARN No appenders could be found for logger
> > (org.springframework.web.context.ContextLoader).
> >
> >
> >
> >
> >
> > If I try to add in the Spring class
> >
> >
> >
> >
<listener-class>org.springframework.web.util.Log4jConfigListener</listen
> > er-class>
> >
> >
> >
> > My CXF services just disappear.
> >
> >
> >
> > I'm using the 2.0.2 release package. Anybody got a clue?
> >
> >
> >
> >
> >
> 
> --
> View this message in context:
http://www.nabble.com/logging-and-spring-
> and-jetty-tf4569112.html#a13041502
> Sent from the cxf-user mailing list archive at Nabble.com.


Re: logging and spring and jetty

Posted by Willem2 <ni...@iona.com>.
Hi Benson,

you still need to use
"org.springframework.web.context.ContextLoaderListener" as the listener,
which will provide the application context for CXFServlet bus to load.

Willem.

bmargulies wrote:
> 
> If I just deploy a webapp along the lines of the samples, I get ...
> 
>  
> 
> [jetty] 2007-10-04 09:42:53.129::INFO:  No Transaction manager found -
> if your webapp requires one, please configure one.
> 
>     [jetty] 2007-10-04 09:42:53.535:rlpws:INFO:  Initializing Spring
> root WebApplicationContext
> 
>     [jetty] log4j:WARN No appenders could be found for logger
> (org.springframework.web.context.ContextLoader).
> 
>   
> 
>  
> 
> If I try to add in the Spring class 
> 
>  
> 
> <listener-class>org.springframework.web.util.Log4jConfigListener</listen
> er-class>
> 
>  
> 
> My CXF services just disappear.
> 
>  
> 
> I'm using the 2.0.2 release package. Anybody got a clue?
> 
>  
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/logging-and-spring-and-jetty-tf4569112.html#a13041502
Sent from the cxf-user mailing list archive at Nabble.com.