0 Replies Latest reply: Jan 4, 2012 8:53 AM by Peter Penzov RSS

Cannot start OSGI service from EAR package

Peter Penzov Newbie

 

I found this simple tutorial with a simple OSGI bundle and web application. https://github.com/bosschaert/coderthoughts/tree/master/WebAppOSGiService I have tested to replace the web application with EAR package several times but unfortunately the the EAR package can't start the service. I have included the OSGI bundle in the EAR's package dependencies. It seems that there is a configuration in the EAR package which I don't know. In order to work what changes I have to do to the EAR package to allow the OSGI services?



This is the error message when I try to enable the EAR package from JBoss web interface

failure-description" => {"JBAS014671: Failed services" => {"TestService" => "org.jboss.msc.service.StartException in service TestService: Failed to start service"}}


Any idea is this a JBoss 7.1.0CR1B bug or I have made somewhere a mistake?


best wishes



p.s is it possible that this maybe a problem coused by the EAR class loading?

h2.