Hi JP, thanks for the hint, that should actually help :-)
regards, Achim 2016-03-02 10:11 GMT+01:00 CLEMENT Jean-Philippe < jean-philippe.clem...@fr.thalesgroup.com>: > Hi, > > Did you try to put a "depends-on" in your Blueprint service? > > JP > > -----Message d'origine----- > De : kuvalda [mailto:peha...@mail.ru] > Envoyé : mardi 1 mars 2016 21:46 > À : user@karaf.apache.org > Objet : PAX-WEB ServletMapping service sometimes starts before > ServletContextListenerMapping > > I'm trying to configure ServletContextListener for Servlet with whiteboard > extender via blueprint in my bundle, karaf version 4.0.4. > ServletMapping and ListenerMapping are used. > The problem is that ServletMapping and ListenerMapping services are > registered in random order, so when ServletMapping is registered before > ListenerMapping, Listener does not catch contextInitialized event, because > it's already happened earlier. > > Any ideas, how to solve this problem? > May be, there is some way to set service registration order? > > > > ----- > Pavel > -- > View this message in context: > http://karaf.922171.n3.nabble.com/PAX-WEB-ServletMapping-service-sometimes-starts-before-ServletContextListenerMapping-tp4045660.html > Sent from the Karaf - User mailing list archive at Nabble.com. > -- 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