alwayswill / run-jetty-run

Automatically exported from code.google.com/p/run-jetty-run
0 stars 0 forks source link

RJR and logback #139

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I'm newer in jetty.

I've got a problem with logback logger.
I need logback in my application. But it is not work, because in classpath we 
have slf4j-simple. I do this instruction: 
http://logback.qos.ch/access.html#jetty . So then my ZKKoss app not started. I 
think that it's problem in overriding data in class 
"org.eclipse.jetty.server.handler.HandlerCollection".

Please help me.

Denis.

Sorry for my english.

Original issue reported on code.google.com by Denis.Mi...@gmail.com on 28 Apr 2012 at 12:43

GoogleCodeExporter commented 9 years ago
Could you check which Jetty version you are using ?

By default it's Jetty6, and the given handler 
"org.eclipse.jetty.server.handler.HandlerCollection" is in Jetty7.

Please try to work with Jetty7 first.

Here's a guide for how to change your jetty version.
[UserGuide] # "How to select Jetty version (Jetty 6/7/8)"

Original comment by tonylovejava on 30 Apr 2012 at 3:00

GoogleCodeExporter commented 9 years ago
I'm trying Jetty7 and Jetty8.

Original comment by Denis.Mi...@gmail.com on 30 Apr 2012 at 6:36

GoogleCodeExporter commented 9 years ago
This construction help me! Thank you

<Get id="oldhandler" name="handler" /> 
 <Set name="handler">
     <New id="RequestLogHandler" class="org.eclipse.jetty.server.handler.RequestLogHandler">
        <Set name="handler">
            <Ref id="oldhandler" /> 
        </Set>
    </New>
  </Set>

<Ref id="RequestLogHandler">
  <Set name="requestLog">
    <New id="requestLogImpl" class="ch.qos.logback.access.jetty.RequestLogImpl">
        <Set name="fileName">d:/MCAF/workspace/scf-demo/mcaf-csf-zk-demo/jetty/etc/logback.xml</Set>
    </New>
  </Set>
</Ref>

Original comment by Denis.Mi...@gmail.com on 2 May 2012 at 8:07

GoogleCodeExporter commented 9 years ago
ok , is there still any issues ?

If not, I am going to close this issue,
and it's also very welcome for all document suggestions. 

Original comment by tonylovejava on 3 May 2012 at 4:38