Hi Giacomo,

does it work with Karaf 2.3.5 for instance ?

Regards
JB

On 10/07/2014 05:16 PM, Giacomo Coletta wrote:
Hi Karaf users,

i'm in the need to have my Karaf based application to restart karaf
programmatically.
Searching the mailing list I found the following thread indicating me the
way:

http://karaf.922171.n3.nabble.com/Programmatically-restarting-Karaf-while-using-the-service-wrapper-td4031516.html#a4031517
<http://karaf.922171.n3.nabble.com/Programmatically-restarting-Karaf-while-using-the-service-wrapper-td4031516.html#a4031517>

Running Karaf  (originally version 2.3.2, but then I tried also 2.3.8 and
2.4.0) from the . bat file (no wrapper) at a certain point i call the
commands:

System.setProperty("karaf.restart", "true")
bundleContext.getBundle(0).stop()

Karaf shutdown and tryies to restart, but then give me a 'Unable to start
blueprint container for bundle org.apache.karaf.deployer.blueprint' error. I
attach my karaf.log file for more details: mykaraf.log
<http://karaf.922171.n3.nabble.com/file/n4035671/mykaraf.log>

Am I i doing something wrong ? If yes, how can I restart karaf from within
my application?

Thank you

Giacomo



--
View this message in context: 
http://karaf.922171.n3.nabble.com/karaf-programmatic-restart-tp4035671.html
Sent from the Karaf - User mailing list archive at Nabble.com.


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to