[Carbon-dev] Loading Services From Bundles does not work on 2.0.1 branch

Srinath Perera srinath at wso2.com
Thu Aug 20 20:35:19 PDT 2009


BTW I have few bundles that does not have services.xml and they works
fine via dropins folder.

On Fri, Aug 21, 2009 at 9:03 AM, Srinath Perera<srinath at wso2.com> wrote:
> Hi All;
>
> 1. I have a bundle which have a service.xml, and when I copy the
> bundle to repository/componets/dropins carbon does not load the
> bundle, nor service.
> 2. But if I install the bundle via OSGI console and then start it via
> console, the bundle is loaded, service is deployed, and everything
> works fine.
>
> osgi> install file:repository/components/dropins/org.wso2.carbon.registry.contentSearch.service-2.0.0.SNAPSHOT.jar
> Bundle id is 186
>
> osgi> start 186
>
> 3. Based on Azeez suggestion, I copied the bundle to
> ../webapps/ROOT/WEB-INF/plugins/console/org.wso2.carbon.registry.contentSearch.service-2.0.0.SNAPSHOT.jar
> and added following entry to
> ../webapps/ROOT/WEB-INF/eclipse/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info.
> (Old way of deploying bundles)
>
> org.wso2.carbon.registry.contentSearch.service,2.0.0.SNAPSHOT,file:plugins/org.wso2.carbon.registry.contentSearch.service-2.0.0.SNAPSHOT.jar,10,true
>
> However it does not work either.
>
> 4. I turned on the logging via launch.ini, but did not see any error
> there as well.
>
> Q1: Is there a other place I should be putting bundles that has
> services? does repository/componets/dropins is the right place.
> Q2: Is this a bug? Any chance we can fix this?
>
> I have an workaround for now (which is install the bundle via carbon
> console, but if I restart, the bundle is gone and I have to redo).
>
> Thanks
> Srinath
>
>
> --
> ============================
> Srinath Perera, Ph.D.
>   WSO2 Inc. http://wso2.com
>   Blog: http://srinathsview.blogspot.com/
>



-- 
============================
Srinath Perera, Ph.D.
   WSO2 Inc. http://wso2.com
   Blog: http://srinathsview.blogspot.com/



More information about the Carbon-dev mailing list