Hi JB,
I see an other strange thing between the version 1.0.1 and the version 1.1.0
In the 2 cases, I put the jar file in the deploy folder, then I execute
Karaf which deployed my bundle.
In the case of the version 1.1.0 of my bundle, you can see what is displayed
below (bundle:update 215 allows to update the hibernate-osgi bundle. It
seems it's necessary) :
__ __ ____
/ //_/____ __________ _/ __/
/ ,< / __ `/ ___/ __ `/ /_
/ /| |/ /_/ / / / /_/ / __/
/_/ |_|\__,_/_/ \__,_/_/
Apache Karaf (4.0.4)
Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
karaf@root()> *Demarrage du bundle omega-module-dao du projet OMEGA_WSREST
1.0.0*
Demarrage du bundle omega-module-jaxrs du projet OMEGA_WSREST 1.0.0
Demarrage du bundle omega-module-service-metier du projet OMEGA_WS_REST
1.0.0
*Demarrage du bundle omega-module-dao du projet OMEGA_WSREST 1.1.0*
karaf@root()> bundle:update 123
*Arret du bundle omega-module-dao du projet OMEGA_WSREST 1.0.0
Demarrage du bundle omega-module-dao du projet OMEGA_WSREST 1.1.0*
karaf@root()> bundle:update 215
karaf@root()> bundle:refresh
karaf@root()> Arret du bundle omega-module-jaxrs du projet OMEGA_WSREST
1.0.0
Arret du bundle omega-module-service-metier du projet OMEGA_WS_REST 1.0.0
*Arret du bundle omega-module-dao du projet OMEGA_WSREST 1.1.0*
Demarrage du bundle omega-module-jaxrs du projet OMEGA_WSREST 1.0.0
Demarrage du bundle omega-module-service-metier du projet OMEGA_WS_REST
1.0.0
**Demarrage du bundle omega-module-dao du projet OMEGA_WSREST 1.1.0**
*Everything is OK.*
And here you can see the case of the deployement of the version 1.0.1 of my
bundle (I start from a new installation of Karaf):
__ __ ____
/ //_/____ __________ _/ __/
/ ,< / __ `/ ___/ __ `/ /_
/ /| |/ /_/ / / / /_/ / __/
/_/ |_|\__,_/_/ \__,_/_/
Apache Karaf (4.0.4)
Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
karaf@root()> Demarrage du bundle omega-module-dao du projet OMEGA_WSREST
1.0.0
Demarrage du bundle omega-module-jaxrs du projet OMEGA_WSREST 1.0.0
Demarrage du bundle omega-module-service-metier du projet OMEGA_WS_REST
1.0.0
*Demarrage du bundle omega-module-dao du projet OMEGA_WSREST 1.0.0*
/---------> Not OK : it should be 1.0.1/
karaf@root()> bundle:update 123
Arret du bundle omega-module-dao du projet OMEGA_WSREST 1.0.0
*Demarrage du bundle omega-module-dao du projet OMEGA_WSREST 1.0.0*
/---------> Not OK : it should be 1.0.1/
karaf@root()> bundle:update 215
karaf@root()> bundle:refresh
karaf@root()> Arret du bundle omega-module-jaxrs du projet OMEGA_WSREST
1.0.0
*Arret du bundle omega-module-dao du projet OMEGA_WSREST 1.0.0
Arret du bundle omega-module-dao du projet OMEGA_WSREST 1.0.0*
/---------> Not OK : it should be 1.0.1 and only one time/
Arret du bundle omega-module-service-metier du projet OMEGA_WS_REST 1.0.0
Demarrage du bundle omega-module-jaxrs du projet OMEGA_WSREST 1.0.0
*Demarrage du bundle omega-module-dao du projet OMEGA_WSREST 1.0.1
Demarrage du bundle omega-module-dao du projet OMEGA_WSREST 1.0.1*
/---------> Not OK : it should be 1.0.1 and only one time/
Demarrage du bundle omega-module-service-metier du projet OMEGA_WS_REST
1.0.0
In the second case (version 1.0.1), you can see that after the
"bundle:refresh" command, the bundle dao (version 1.0.1) seems to be
deployed 2 times...
Had you got the time to see my project? Have you an idea where is the
problem?
Thank you for your help.
Olivier
--
View this message in context:
http://karaf.922171.n3.nabble.com/Bundle-versioning-tp4046396p4046440.html
Sent from the Karaf - User mailing list archive at Nabble.com.