Hi there,

not entirely sure if this is the right forum to ask the question.
I was deploying the plain/simple sample of pax wicket in version 2.1.0 into
my Karaf OSGi container. Everything starts smoothly. I can stop or uninstall
the bundle and start or install it again. The behaviour is as expected.
But when I set dev:watch BUNDLEID to allow the project to be redeployed
after an mvn install, the sample is started/stopped twice:

karaf@root> install
mvn:org.ops4j.pax.wicket.samples.plain/org.ops4j.pax.wicket.samples.plain.simple/2.1.0
Bundle ID: 105
********************************************************************
*** WARNING: Wicket is running in DEVELOPMENT mode.              ***
***                               ^^^^^^^^^^^                    ***
*** Do NOT deploy to your live server(s) without changing this.  ***
*** See Application#getConfigurationType() for more information. ***
********************************************************************
karaf@root> dev:watch 105
Watched URLs/IDs:
105

[A mvn install is conducted on the plain.simple project ...]

karaf@root> [Watch] Updating watched bundle:
org.ops4j.pax.wicket.samples.plain.simple (2.1.0)
********************************************************************
*** WARNING: Wicket is running in DEVELOPMENT mode.              ***
***                               ^^^^^^^^^^^                    ***
*** Do NOT deploy to your live server(s) without changing this.  ***
*** See Application#getConfigurationType() for more information. ***
********************************************************************
********************************************************************
*** WARNING: Wicket is running in DEVELOPMENT mode.              ***
***                               ^^^^^^^^^^^                    ***
*** Do NOT deploy to your live server(s) without changing this.  ***
*** See Application#getConfigurationType() for more information. ***
********************************************************************

Even though it looks like that the WicketApplication is created twice only,
it actually is the Activator start and stop methods that get invoked twice?
How can I prevent it from doing so?

Thanks,
Ralf



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Pax-Wicket-project-bundle-starts-stops-twice-if-dev-watch-set-tp4027937.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to