Hello

Sorry for (very) late answer.
For pax-web 7.2.0 there are quite good and reliable tests that install
(through pax-web-extender-whiteboard) different web elements. Like this one
<https://github.com/ops4j/org.ops4j.pax.web/blob/pax-web-7.2.x/pax-web-itest/pax-web-itest-common/src/main/java/org/ops4j/pax/web/itest/common/AbstractWhiteboardIntegrationTest.java>.
You can change the underlying sample
<https://github.com/ops4j/org.ops4j.pax.web/tree/pax-web-7.2.x/samples/whiteboard>
and possibly check if there's some race or another kind of problem.

I'm personally using pax-web in some scenarios where listeners really have
to be called at precise moment and I didn't notice any suspicious behavior.
If you could elaborate on this problem, I could possibly check with changed
test.

best regards and happy new year!
Grzegorz Grzybek

pon., 19 lis 2018 o 20:26 Nhut Thai Le <[email protected]> napisaƂ(a):

> Hello,
> I'm using pax-web-extender-whiteboard and pax-web-jetty 7.2.0 to register
> servletContext, Listeners, Filters and servlets. Is there any guarantee
> that the ServletContextListener will be registered with jetty before the
> ServletContext is created? What I observe is that the
> ServletContextListener.contextInitialized() sometime never get called.
> Another weird behavior is that I have a 2 servlet filters and both match to
> the same URl pattern, the 2 filters has different service.ranking so they
> can be executed in a controlled order according to compendium, however i
> see the request pass through the first filter, but never go the 2nd ones.
> The debug info from paxweb show that the request match the 2nd
> filter: 14:23:51.277 [qtp654253229-81] DEBUG o.o.p.w.s.s.m.ServerModel -
> Path [/zk/new] matched to
> {pattern=/.*,model=FilterModel{id=org.ops4j.pax.web.service.spi.model.FilterModel-37,urlPatterns=[/*],servletNames=null,filter=
> com.castortech.iris.ba.webviewer.servletfilter.HeadersFilter
> @2b785b4b,filterClass=null,context=ContextModel{id=org.ops4j.pax.web.service.spi.model.ContextModel-24,name=,httpContext=org.ops4j.pax.web.extender.whiteboard.internal.WebApplication$1@55acec17,contextParams={httpContext.shared=true,
> webapp.context=},virtualHosts={},connectors={}}}}
>
> Thai
>
> --
> --
> ------------------
> 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