Hi
AFAIK the below configuration is only applicable if you use an absolute
HTTP address in which case an embedded/standalone Jetty instance is
created, if you use a relative address then it is a servlet bound to
Jetty-powered HTTP service and hence jetty.xml is effective
Cheers, Sergey
On 18/07/16 10:39, Allan C. wrote:
Hi Sergey,
I did another test running just jetty9 (configured using jetty.xml) and
fiddled with both sendServerVersion and sendDateHeader parameters. It seems
to be working as expected.
When I use CXF JAXRS server, the parameter seems to be ignored. Here is my
CXF jetty configuration part.
<httpj:engine-factory id="httpjEngine">
<httpj:engine port="80" sendServerVersion="false">
<httpj:threadingParameters minThreads="8" maxThreads="16" />
</httpj:engine>
</httpj:engine-factory>
Could you maybe give me a hint on which class/jar I should most probably
look into in more detail?
JettyHTTPServerEngineConfigType in cxf-rt-transports-http-jetty, but as
I said it is probably not used
Cheers, Sergey
Regards,
Allan C.
On Mon, Jul 18, 2016 at 3:00 PM, Allan C. <allan...@gmail.com> wrote:
Noted. Thanks for the info!
Regards,
Allan C.
On Mon, Jul 18, 2016 at 2:35 PM, Sergey Beryozkin <sberyoz...@gmail.com>
wrote:
Hi
On 18/07/16 05:58, Allan C. wrote:
Hi,
I have a jax-rs server configured up and running in a blueprint
container.
All good except a couple of minor tweaks left.
When I test the service, the HTTP headers "Date" appears twice. For
instance:
HTTP/1.1 401 Unauthorized
Date: Mon, 18 Jul 2016 02:50:09 GMT
Date: Mon, 18 Jul 2016 02:50:09 GMT
As it happens I've been looking into this issue last week. It only
happens on Jetty (not on Tomcat) - with Jetty ignoring the fact the
higher-level application sets Date (JAX-RS runtime must set Date) and
setting its own Date.
However, CXF uses HttpServletResponse.addHeader(). This is usually needed
when a header has multiple values but otherwise
HttpServletResponse.setHeader() is fine - making this minor update fixed a
duplicate Date header issue on Jetty, CXF 3.1.7 will have it all sorted.
Content-Length: 0
Server: Jetty(9.2.15.v20160210)
Another is although I've set "sendServerVersion="false", it still returns
the "Server" header. Any ideas what I've missed? Appreciate your
response.
Not sure, but it is entirely a Jetty configuration issue
Cheers, Sergey
Regards,
Allan C.
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/