Hi Dario, since you are an OSGi-beginner I'd suggest you start with something easier then a complete container design :-) therefore since you probably want to start with your own stuff and not be bothered by infrastructural issues I really suggest take a look at Karaf [1]. It's a real easy to use container where you can easy start with your application also Web.
regards, Achim [1] - karaf.apache.org 2012/8/13 Harald Wellmann <hwellmann...@gmail.com>: > If you just want to launch an OSGi framework with a given set of > bundles, then what you're doing seems way too complex to me. Leave the > system packages alone unless you know exactly what you're doing. It > seems that this is causing your class cast exception. > > Provisioning your framework programmatically with > BundleContext.installBundle() is not exactly the easiest way. > > Just put all the bundles you want to start in a directory, write a > config file for your OSGi framework (Felix or Equinox), and run the > framework as "java -D.... -jar framework.jar", setting the config file > by the appropriate properties or arguments. > > I don't use Felix very often, so I can't give you the exact > commandline off of my head. > > Personally, I find Equinox (up to 3.7) much easier to use due to its > built-in console/shell. > > Hope that helps, > Harald > > _______________________________________________ > general mailing list > general@lists.ops4j.org > http://lists.ops4j.org/mailman/listinfo/general -- Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home> Commiter & Project Lead blog <http://notizblog.nierbeck.de/> _______________________________________________ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general