Hi,

right now I'm not sure if that is a bug or just a "misconfiguration".
Though right now I'm running low on time and energy to take a closer look.
If in doubt, just open a Jira issue so it won't be forgotten.
Unfortunately I can't tell how fast I'm able to take a look at it.

regarding comparable thing to jetty.xml for undertow. I'm not even sure
such a thing exists for undertow (but I'm not to deep into that so that
isn't a measurment ;) )
Might want to check the existing issues, if there already is a fix for this
or open issue, if not don't hesitate to create another one :)

regards, Achim


regards, Achim


2017-06-29 10:18 GMT+02:00 Jérémie Brébec <[email protected]>:

> Hi,
>
> With Jetty v9.3 (with PaxWeb 6.0.3), the GZipFilter is marked as obsolete.
> As Jetty is really verbose about this deprecation, I am trying to upgrade
> my application to remove all registration of the GZipFilter and use instead
> a global GZipHandler.
>
> However, I didn't succed to configure PaxWeb with this "HandlerWrapper" in
> jetty.xml :
>
>    - The official way is to call "Server.insertHandler" which create a
>    chain of HandlerWrapper. However, PaxWeb seems to suppose that the first
>    handlerwrapper is his own "JettyServerHandlerCollection", and I have a
>    lot of exception ("java.lang.IllegalStateException: STARTED" on each
>    registratrion (cf [1]), and a ClassCastException when the bundle is 
> stopped)
>    - If I call "getHandler().addHandler(..)", this doesn't work either :
>    the GZiphandler is either not call or throw a NPE as it doesn't have a
>    child handler
>
> How can I use this Handler with PaxWeb ? Moreover, is there an equivalent
> of the "jetty.xml" for undertow ?
>
> Thanks !
>
>
> [1]
> 2017-06-28T18:03:58,102 | ERROR | Start Level: Equinox Container:
> 052d47d4-8713-4018-89e6-d2027a5ad69f | WebApplication                   |
> 234 - org.ops4j.pax.web.pax-web-extender-whiteboard - 6.0.3 |
> Registration skipped for [ServletWebElement{mapping=DefaultServletMapping{
> httpContextId=null,urlPatterns=null,initParams={}
> ,servlet=xxx.web.redirect.RedirectServlet@5477a25b, alias=/redirect,
> servletNameredirect}}] due to error during registration
> java.lang.IllegalStateException: STARTED
> at org.eclipse.jetty.server.handler.HandlerWrapper.
> setHandler(HandlerWrapper.java:85) [206:org.eclipse.jetty.server:
> 9.3.14.v20161028]
> at org.eclipse.jetty.servlet.ServletContextHandler.<init>(
> ServletContextHandler.java:166) [207:org.eclipse.jetty.
> servlet:9.3.14.v20161028]
> at org.eclipse.jetty.servlet.ServletContextHandler.<init>(
> ServletContextHandler.java:128) [207:org.eclipse.jetty.
> servlet:9.3.14.v20161028]
> at 
> org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.<init>(HttpServiceContext.java:116)
> [235:org.ops4j.pax.web.pax-web-jetty:6.0.3]
> at 
> org.ops4j.pax.web.service.jetty.internal.JettyServerWrapper.addContext(JettyServerWrapper.java:290)
> [235:org.ops4j.pax.web.pax-web-jetty:6.0.3]
> at org.ops4j.pax.web.service.jetty.internal.JettyServerWrapper.
> getOrCreateContext(JettyServerWrapper.java:209)
> [235:org.ops4j.pax.web.pax-web-jetty:6.0.3]
> at org.ops4j.pax.web.service.jetty.internal.JettyServerWrapper.
> getOrCreateContext(JettyServerWrapper.java:190)
> [235:org.ops4j.pax.web.pax-web-jetty:6.0.3]
> at 
> org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.addServlet(JettyServerImpl.java:324)
> [235:org.ops4j.pax.web.pax-web-jetty:6.0.3]
> at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Started.
> addServlet(ServerControllerImpl.java:289) [235:org.ops4j.pax.web.pax-
> web-jetty:6.0.3]
> at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.
> addServlet(ServerControllerImpl.java:110) [235:org.ops4j.pax.web.pax-
> web-jetty:6.0.3]
> at 
> org.ops4j.pax.web.service.internal.HttpServiceStarted.registerServlet(HttpServiceStarted.java:239)
> [237:org.ops4j.pax.web.pax-web-runtime:6.0.3]
>
> --
> --
> ------------------
> 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