I'm thinking the test is wrong, because the comment on associateHttpContext implies that the context can be used multiple times for a single bundle. What about changing the test to:
if( currentBundle != null && currentBundle != bundle ) I think it would solve the problem. On Mon, Feb 25, 2008 at 11:22 AM, Guillaume Nodet <[EMAIL PROTECTED]> wrote: > When I'm trying to deploy a web app, I have lots of exceptions like > the following one: > java.lang.IllegalStateException: Http context > [EMAIL PROTECTED] is > already associated to bundle > mvn_org.apache.servicemix_apache-servicemix-web_3.2.1_war [92] > at > org.ops4j.pax.web.service.internal.model.ServerModel.associateHttpContext(ServerModel.java:235) > at > org.ops4j.pax.web.service.internal.HttpServiceStarted.getOrCreateContext(HttpServiceStarted.java:499) > at > org.ops4j.pax.web.service.internal.HttpServiceStarted.registerErrorPage(HttpServiceStarted.java:416) > at > org.ops4j.pax.web.service.internal.HttpServiceProxy.registerErrorPage(HttpServiceProxy.java:187) > at > org.ops4j.pax.web.extender.war.internal.RegisterWebAppVisitorWC.visit(RegisterWebAppVisitorWC.java:272) > at > org.ops4j.pax.web.extender.war.internal.model.WebApp.accept(WebApp.java:500) > > It seems the problem comes from > http://scm.ops4j.org/changelog/OPS4J?cs=10709, so I'm thinking this is > a transient problem that will be fix soon and that pax-web-extender > has not been updated yet. > Am I right ? > > -- > Cheers, > Guillaume Nodet > ------------------------ > Blog: http://gnodet.blogspot.com/ > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ _______________________________________________ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general