Following the documentation for enabling access logging in Fisheye 4.6 causes Fisheye to exit startup.

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: Documentation
    • None
    • 0

      Issue Summary

      The documentation for enabling access logging in Fisheye (Enabling Access Logging in Fisheye )
      is not valid for Fisheye 4.6.
      Following the steps causes Fisheye to exit startup with the following error:

      WARN  [main ] org.eclipse.jetty.webapp.WebAppContext WebAppContext-doStart - Failed startup of context c.c.f.w.j.FishEyeWebApplicationContext{/,file:/opt/atlassian/fecru-4.6.0/content/},/op
      java.lang.IllegalStateException: No Method: <Call name="insertHandler"><Arg>
                <New id="RequestLog" class="com.cenqua.fisheye.web.jetty.FishEyeRequestLogHandler"><Set name="requestLog">
                    <New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog"><Set name="filename"><Property name="jetty.logs" default="PATH_LOG_FOLDER"/>/access-yyyy_mm_dd.log</Set><Set name="filenameDat
                  </Set></New>
              </Arg></Call> on class com.cenqua.fisheye.web.jetty.FishEyeWebApplicationContext
      

      Steps to reproduce

      Follow the current document Enabling Access Logging in Fisheye in Fisheye 4.6.x

      Expected results

      Fisheye/Crucible starts, and creates access log files in the specified directory

      Actual results

      Fisheye/Crucible fails to start and warns about

      java.lang.IllegalStateException: No Method: <Call name="insertHandler">
      

      in the logs.

      Workaround

      The following content for the jetty-web.xml file will enable Fisheye to start and write access logs.

      <?xml version="1.0" encoding="ISO-8859-1"?>
      <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://www.eclipse.org/jetty/configure.dtd" >
      <Configure class="org.eclipse.jetty.webapp.WebAppContext">
        <Set name="handler">
          <New class="com.cenqua.fisheye.web.jetty.FishEyeRequestLogHandler">
            <Set name="requestLog">
              <New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog">
                <Arg><SystemProperty name="jetty.logs" default="./var/log/" />atlassian-fisheye-access-yyyy_MM_dd.log</Arg>
                 <Set name="filenameDateFormat">yyyy_MM_dd</Set>
                <Set name="retainDays">90</Set>
                <Set name="append">true</Set>
                <Set name="extended">false</Set>
                <Set name="LogTimeZone">GMT</Set>
              </New>
            </Set>
          </New>
        </Set>
      </Configure>
      

      Documentation improvement suggestion

      Update the document to add the above content for jetty-web.xml specifically for Fisheye version 4.6

            Assignee:
            Mateusz Miara (Inactive)
            Reporter:
            Themis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: