Hi I suspect a old reference to the original bundle somewhere. As you use DS, one of the other bundles might still hold a reference to your servlet containing bundle. In that case it's best to do a bundle:refresh on the shell to force a re-wiring of the bundles.
regards, Achim 2014-09-17 11:00 GMT+02:00 F.Aubele <[email protected]>: > Hi everyone, > I'm having a problem with Servlets. I'm using Karaf 3.0.1 with the latest > BND-Annotations. > The Component Annotation for the servlet looks like this: > > @Component(immediate=true, provide = Servlet.class, properties = > {"alias=/config/ConfigServlet"} ) > > Everything gets deployed fine and i can reach the servlet. > The problem is that when stopping and restarting (updating) the bundle > including the servlet, the servlet is listed two times when looking up > Servlet Status via http:list. One is deployed (from updated bundle > version), > the other is undeployed (from old bundle version). If i build a regular wab > with web.xml etc., the Servlet seems to get updated fine, no double > servlets. When using DS, everytime the servlet is updated, it won't get > redeployed, but a new servlet is added (which then has status "deployed"), > while the old one is left in undeployed state. After a restart everything > is > cleaned up. > > Anyone an idea? Thanks for your help. > > PS: > Any news for release dates for Karaf 3.0.2 and an updated EIK? > > Kind regards, > Florin > > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/Karaf-3-0-1-Problem-with-Servlets-using-DS-tp4035323.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/> Software Architect / Project Manager / Scrum Master
