Hi, I think the problem here is, that the export function in the bndrun files does not create an OSGi bundle, but a jar file, which contains the whole application. Just open that jar with an archive tool and have a look at the contents.
The jar, which is created, already contains (or at least it is supposed to) everything to run your application, including the OSGi framework and the HTTP service. So all you need to do is to run it with "java -jar yourapplication.jar" Greetings, Henrik Am 13.02.2018 um 13:27 schrieb Nikhil Chilwant via osgi-dev: > 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 > > > > _______________________________________________ > OSGi Developer Mail List > email@example.com > https://mail.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________ OSGi Developer Mail List firstname.lastname@example.org https://mail.osgi.org/mailman/listinfo/osgi-dev