Hi Allan,

as you can also see here [1], it's all lower-case. So that camel-case
property shouldn't work, or better might end up in beeing used for the same
property as those keys are Strings and compared with ignore-case.
That would explain your exception. Now why it doesn't have an effect I'm
not sure.
Those property settings are handed one-to-one down to the underlying Jetty
server.
Could you open a new Issue for this?


regards, Achim


[1] -
https://github.com/ops4j/org.ops4j.pax.web/blob/master/pax-web-api/src/main/java/org/ops4j/pax/web/service/WebContainerConstants.java#L132

2016-12-24 1:17 GMT+01:00 Allan Cheong <[email protected]>:

> Hi all,
>
> I am using pax-web-4.2.6 with jetty. I would like to change the default
> logging time zone, but encountered an exception with the following property
> configured in the config file:
>
> org.ops4j.pax.web.log.ncsa.LogTimeZone=<some time zone>
>
> I am running karaf 4.0.5. Full stack trace:
>
> java.lang.IllegalArgumentException: Duplicate service property:
> org.ops4j.pax.web.log.ncsa.LogTimeZone
>         at org.apache.felix.framework.ServiceRegistrationImpl.
> initializeProperties(ServiceRegistrationImpl.java:318)[org.apache.felix.
> framework-5.4.0.jar:]
>         at org.apache.felix.framework.ServiceRegistrationImpl.<init>
> (ServiceRegistrationImpl.java:86)[org.apache.felix.framework-5.4.0.jar:]
>         at org.apache.felix.framework.ServiceRegistry.registerService(
> ServiceRegistry.java:121)[org.apache.felix.framework-5.4.0.jar:]
>         at org.apache.felix.framework.Felix.registerService(Felix.
> java:3520)[org.apache.felix.framework-5.4.0.jar:]
>         at org.apache.felix.framework.BundleContextImpl.registerService(
> BundleContextImpl.java:348)[org.apache.felix.framework-5.4.0.jar:]
>         at org.ops4j.pax.web.service.internal.Activator.
> updateController(Activator.java:357)[194:org.ops4j.pax.
> web.pax-web-runtime:4.2.6]
>         at org.ops4j.pax.web.service.internal.Activator$2.run(
> Activator.java:285)[194:org.ops4j.pax.web.pax-web-runtime:4.2.6]
>         at java.util.concurrent.Executors$RunnableAdapter.
> call(Executors.java:511)[:1.8.0_111]
>         at java.util.concurrent.FutureTask.run(FutureTask.
> java:266)[:1.8.0_111]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)[:1.8.0_111]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)[:1.8.0_111]
>         at java.lang.Thread.run(Thread.java:745)[:1.8.0_111]
>
> The property retainDays is also throwing the same error. However, if no
> caps (as per https://github.com/ops4j/org.ops4j.pax.web/blob/master/
> pax-web-runtime/src/main/resources/OSGI-INF/metatype/metatype.xml, no
> error is thrown, but at the same time no effect as well).
>
> I appreciate some help and tips. Thanks.
>
> --
> --
> ------------------
> OPS4J - http://www.ops4j.org - [email protected]
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OPS4J" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to