Hi Achim
Thanks for your response. Actually I spent quite some time with setting up
a jetty.xml but the problem is that if I define an
org.eclipse.jetty.server.ServerConnector in jetty.xml on port 8080, I'll
receive a port already in use error on startup, since pax-web will create
another ServerConnector programmatically in JettyServerImpl (pax-web). Also
on port 8080 (org.osgi.service.http).
I also tried setting -Dorg.osgi.service.http.enabled=false assuming that
JettyServerImpl would then not create any ServerConnector, but then the
ServerConnector I declared in jetty.xml seems like its being initialized,
and then closed again by class ServerControllerImpl:
// remove maybe already configured
connectors through
// jetty.xml, the config-property/config-admin service is
// master configuration
I also looked at ServerControllerImpl.match() and tried to set up the
"name" property of my connector defined in jetty.xml, expecting that in
this case the ServerController would recognize my connector and not close
it. But also here I had no luck. That's where I decided to post to this
group :-)
Silvano
On Wed, Jul 20, 2016 at 9:47 PM, 'Achim Nierbeck' via OPS4J <
[email protected]> wrote:
> Hi Silvano,
>
> via a configuration I doubt right now. But if you can disable this by
> means of a jetty.xml or a jetty-web.xml in a war file, then it should be
> possible.
> If that doesn't work we need to add a flag for that. Though at that point
> we need to make sure it'll work for all servers:
> Jetty, Tomcat and Undertow.
>
> regards, Achim
>
>
> 2016-07-20 16:39 GMT+02:00 Silvano Maffeis <[email protected]>:
>
>> Hi
>>
>> Is it possible to configure the
>> org.eclipse.jetty.server.HttpConfiguration "sendServerVersion" property via
>> PAX-WEB?
>> I would like to disable the sending of the "Server" HTTP response header.
>>
>> Or is there another way to achieve this?
>>
>> Thanks and regards,
>> Silvano
>>
>> --
>> --
>> ------------------
>> 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 a topic in the
> Google Groups "OPS4J" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ops4j/s1df4gwFtw4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
Silvano Maffeis, Dr. oec publ.
Im Kehl 6, 5400 Baden
--
--
------------------
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.