Solved it. I was uploading exported jar instead of the bundle which gets generated in /generated folder.
Regarding approach, I found it working. I have blogged about my PoC here: https://exploringsoftwareworld.blogspot.in/2018/02/osgi-plugin-framework-using-http.html Hope it helps people in future. Can we use it for the demo of HTTP whiteboard on the enroute site? ( http://enroute.osgi.org/services/org.osgi.service.http.whiteboard.html). On Tue, Feb 13, 2018 at 5:57 PM, Nikhil Chilwant <nikhilbchilw...@gmail.com> wrote: > Hi, > > OSGi newbie here. This question is lengthy but I hope it helps people in > future. > > I want to make a software which provides the feature to install/uninstall > plugins. Think of something like Eclipse IDE plugins. The only difference > is mine is web-app. > > I thought of implementing plugins as follows: > Whenever a new plugin is installed, new HTTP servlet will be registered at > Http Whiteboard. These exposed servlet endpoints will be used by other > bundles as well as third-party apps which are present outside. Each plugin > will be developed separately as an OSGi bundle. I can use Felix web console > to allow the user to install/uninstall bundle of his choice. > > To verify my approach, I tried to run given OSGi enroute Proxy provider > example > <https://github.com/osgi/osgi.enroute.examples/tree/e407f783ef7a470875c910a53f45861870b4316f/osgi.enroute.examples.proxycache.provider> > from https://github.com/osgi/osgi.enroute.examples. I was able to run it > in debug mode from Eclipse IDE but when I exported it to JAR ( tried to do > so both from osgi.enroute.examples.proxycache.bndrun and debug.bndrun) > and tried to install it through Felix web console, it gave the following > error: > > *Using default permissions for inputstream:proxyCacheApp.jar* > *No permissions for inputstream:proxyCacheApp.jar* > > My questions: > 1. Is it feasible to implement my idea using Http Whiteboard? > 2. How to give permissions for input steam? > 3. Could any point out to working example of Http Whiteboard using OSGi > enroute? The tutorial page for this on enroute site is empty ( > http://enroute.osgi.org/services/org.osgi.service.http.whiteboard.html) > > Feel free to guide/criticize/shout at me :) > -- > Regards, > Nikhil Chilwant > > -- Regards, Nikhil Chilwant
_______________________________________________ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev