Great that you got it working.

Thanks for the feedback and happy holidays to everyone.

Achim

Allan C. <[email protected]> schrieb am Sa. 24. Dez. 2016 um 15:41:

> Hi Achim,
>
> Upon further testing, I managed to get it to work.
>
> The effect didn't seem to be in place at first because the parameter I put
> in is wrong. I was putting in the format <sign><hours>:<minutes> instead of
> the values available in TimeZone class.
>
> Just to clarify, this is not pax-web issue.
>
> Regards,
> Allan C.
>
>
> On Saturday, 24 December 2016 08:17:54 UTC+8, Allan C. wrote:
>
> 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.
>
>
>

-- 
-- 
------------------
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