Reputation: 5438
I am trying to enable the retainDays option in my pax-web config like this:
org.ops4j.pax.web.config.file=etc/jetty.xml
org.osgi.service.http.port=80
javax.servlet.context.tempdir=data/pax-web-jsp
org.ops4j.pax.web.log.ncsa.format = /yyyy_mm_dd.request.log
org.ops4j.pax.web.log.ncsa.directory = ${karaf.data}/ncsa-log/
org.ops4j.pax.web.log.ncsa.retainDays = 3
org.ops4j.pax.web.log.ncsa.enabled = true
I am using pax-web version 1.1.17 (org.ops4j.pax.web.pax-web-jetty (1.1.17)
) embedded in my ServiceMix 5.1.4.
However the jetty seems not starting when I restart my service.
As the official documentation mentions some other options, I also tried to add org.ops4j.pax.web.log.ncsa.extended = true
but it does make no effect.
In fact in the documentation, there's no explanation of how to use the retainDays (I read sometime retaindays
and tried also in lowercase) and what is the purpose of the option org.ops4j.pax.web.log.ncsa.extended
.
Any idea on how to enable retainDays
option?
UPDATE:
What's totally confused me is this new feature request in JIRA which mention a fixVersion: 1.1.0 which is inferior to my 'even old' version 1.1.17.
Upvotes: -1
Views: 250
Reputation: 5285
That is a very very old version of Pax-Web you got there, so it might very well be that there had been an issue with the ncsa.extended setting with that version. The documentation you've linked is for the current snapshot version which is Pax-Web 6.1.0-SNAPSHOT. So you see that there have been quite a lot of major releases between those version.
The org.ops4j.pax.web.log.ncsa.retaindays
setting needs to be set as integer. The documentation is wrong concerning the camel case, will fix that.
The org.ops4j.pax.web.log.ncsa.extende
setting is just a paththrough to the Jetty NCSA configuration:
Upvotes: -1