Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] request-logs problem

We have deployed and are successfully using jetty 9.3.9.v20160517 as a web server and servlet container on ubuntu 14.04.4 LTS

In two of our webapps, we are trying to deploy request logs as described in http://www.eclipse.org/jetty/documentation/9.3.0.v20150612/configuring-jetty-request-logs.html

We seek suggestions on what may be misconfigured. Thanks

With the setup below, the logs were created but all the servlets became unavailable.  We also tried to follow http://www.eclipse.org/jetty/documentation/current/override-web-xml.html which had a somewhat different failure: the webapp behaved as though override-web.xml was not there at all.

We provided  $jetty.base/webapps/OurApp/WEB-INF/jetty-web.xml

<Configure class="org.eclipse.jetty.webapp.WebAppContext">
 <Set name="handler">
  <New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler">
   <Set name="requestLog">
    <New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog">
     <Set name="filename"><Property name="jetty.logs" default="./logs"/>/yyyy_mm_dd.request.log</Set>
     <Set name="filenameDateFormat">yyyy_MM_dd</Set>
     <Set name="LogTimeZone">GMT</Set>
     <Set name="retainDays">90</Set>
     <Set name="append">true</Set>
    </New>
   </Set>
  </New>
 </Set>
</Configure>


 $jetty.base/webapps/OurApp/WEB-INF/web.xml
<?xml version="1.0" encoding="utf-8"?>
<web-app>
        <servlet>
                <servlet-name>ResServlet</servlet-name>
                <servlet-class>de.uka.ipd.idaho.easyIO.web.ResourceServlet</servlet-class>
                <init-param>
                        <param-name>dataPath</param-name>
                        <param-value>resData</param-value>
                </init-param>
        </servlet>
        <servlet-mapping>
                <servlet-name>ResServlet</servlet-name>
                <url-pattern>/resources/*</url-pattern>
        </servlet-mapping>
....
</web-app>

--
Robert A. Morris

Emeritus Professor  of Computer Science
UMASS-Boston
100 Morrissey Blvd
Boston, MA 02125-3390


Filtered Push Project
Kurator Project
Harvard University Herbaria
Harvard University

email: morris.bob@xxxxxxxxx
web: http://efg.cs.umb.edu/
web: http://wiki.filteredpush.org
       http://wiki.datakurator.net
       http://taxonconceptexplorer.org/
http://www.cs.umb.edu/~ram

Back to the top