Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-309

Getting Java java.lang.ClassNotFound except with v1.0.0 & Jetty 7

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.0.0
    • None
    • None
    • Linux RedHat 5.7 (2.6.18-274.3.1.el5)
      Jetty: jetty-7.5.1.v20110908 - 08 September 2011
      java version "1.6.0_27"
      logback-access-1.0.0.jar logback-core-1.0.0.jar

    Description

      Have following installation instructions on Web page, however, get an exception when starting Jetty:

      2011-11-28 09:35:50.809:WARN:oejx.XmlConfiguration:Config error at <Set name="requestLog">| <New id="requestLogImpl" class="ch.qos.logback.access.jetty.RequestLogImpl"/>| </Set> java.lang.ClassNotFoundException: ch.qos.logback.access.jetty.RequestLogImpl
      2011-11-28 09:35:50.809:WARN:oejx.XmlConfiguration:Config error at <Ref id="RequestLogHandler"><Set name="requestLog">| <New id="requestLogImpl" class="ch.qos.logback.access.jetty.RequestLogImpl"/>| </Set></Ref> java.lang.ClassNotFoundException: ch.qos.logback.access.jetty.RequestLogImpl
      java.lang.reflect.InvocationTargetException

      jetty.xml contents:

      <!-- =========================================================== -->
      <!-- Set handler Collection Structure -->
      <!-- =========================================================== -->
      <Set name="handler">
      <New id="Handlers" class="org.eclipse.jetty.server.handler.HandlerCollection">
      <Set name="handlers">
      <Array type="org.eclipse.jetty.server.Handler">
      <Item>
      <New id="Contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection"/>
      </Item>
      <Item>
      <New id="DefaultHandler" class="org.eclipse.jetty.server.handler.DefaultHandler"/>
      </Item>

      <!-- add a RequestLogHandler - for logBack -->

      <Item>
      <New id="RequestLogHandler" class="org.eclipse.jetty.server.handler.RequestLogHandler"/>
      </Item>
      </Array>
      </Set>
      </New>
      </Set>

      <!-- =========================================================== -->
      <!-- Log Back Request Handler -->
      <!-- =========================================================== -->

      <Ref id="RequestLogHandler">
      <Set name="requestLog">
      <New id="requestLogImpl" class="ch.qos.logback.access.jetty.RequestLogImpl">
      </New>
      </Set>
      </Ref>

      Attachments

        Activity

          People

            logback-dev Logback dev list
            istewartson Ian Stewartson
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: