You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by helander <le...@gmail.com> on 2012/08/06 13:59:35 UTC
http server config from feature
Maybe I have misunderstood things. I am trying to provide configuration for
the http server using the following feature definition:
<feature name="httpserver-config" version="1.0.0">
<config name="org.ops4j.pax.web">
org.osgi.service.http.port = 8181
org.osgi.service.http.port.secure = 8443
org.osgi.service.http.enabled = true
org.osgi.service.http.secure.enabled = true
org.ops4j.pax.web.ssl.keystore = my.keystore
org.ops4j.pax.web.ssl.password = xyz
org.ops4j.pax.web.ssl.keypassword = abc
org.ops4j.pax.web.ssl.clientauthwanted = true
org.ops4j.pax.web.ssl.clientauthneeded = true
</config>
</feature>
When I install this feature nothing happens with the http-server
configuration and no information is put into the log.
Can someone provide any clarifications?
Thanks
Lars
--
View this message in context: http://karaf.922171.n3.nabble.com/http-server-config-from-feature-tp4025430.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: http server config from feature
Posted by helander <le...@gmail.com>.
Hi JB,
thanks for the clarification.
Looking forward for the merge/overwrite capability for <config>, meanwhile I
will use the <configfile> variant.
/Lars
--
View this message in context: http://karaf.922171.n3.nabble.com/http-server-config-from-feature-tp4025430p4025432.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: http server config from feature
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Lars,
Unfortunately <config/> doesn't overwrite the existing configuration, it
just introduces new one.
I raise a Jira to add the merge/overwrite capability on <config/>:
https://issues.apache.org/jira/browse/KARAF-1046
A possible workaround is to use <configfile/> which support
overwrite="true" (and which overwrite the existing configuration file).
Regards
JB
On 08/06/2012 01:59 PM, helander wrote:
> Maybe I have misunderstood things. I am trying to provide configuration for
> the http server using the following feature definition:
>
>
> <feature name="httpserver-config" version="1.0.0">
> <config name="org.ops4j.pax.web">
> org.osgi.service.http.port = 8181
> org.osgi.service.http.port.secure = 8443
> org.osgi.service.http.enabled = true
> org.osgi.service.http.secure.enabled = true
> org.ops4j.pax.web.ssl.keystore = my.keystore
> org.ops4j.pax.web.ssl.password = xyz
> org.ops4j.pax.web.ssl.keypassword = abc
> org.ops4j.pax.web.ssl.clientauthwanted = true
> org.ops4j.pax.web.ssl.clientauthneeded = true
> </config>
> </feature>
>
> When I install this feature nothing happens with the http-server
> configuration and no information is put into the log.
>
> Can someone provide any clarifications?
>
>
> Thanks
>
> Lars
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/http-server-config-from-feature-tp4025430.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com