Not sure if this helps since it’s
not directly OSGi (however, built on top if it), but we have had success wrapping
Jetty into an Eclipse plug-in that allows dynamic contribution of web apps: One of these web apps is Wicket, and in
order to deal with the class loader issues we had to introduce a custom class
loader (using the PluginClassLoaderWrapper as a starting point, see http://www.koders.com/java/fidF1EC15E4B7935CCD8213200FF6A7E3B656BC87E2.aspx))
that we use as the Jetty HttpContext classloader (using setClassLoader()). This
class loader follows the bundle/plugin dependencies to lookup classes. Another related issue we had to solve is
that we wanted to contribute Wicket Web Pages from various plug-ins using
extensions. This was solved by setting the default class resolver in wicket.protocol.http.WebApplication
to a custom class that internally again uses the PluginClassLoaderWrapper to
locate classes. This allows us to build web applications just like Eclipse
itself allows extending the IDE. If there is interest I can share code samples
(would love for someone to review the approach). We are planning to release part of our Eclipse
plugin code base as open source (after it is cleaned up a bit more), but maybe
the pure OSGi version is solid enough soon in which case I’ll be happy to
convert our code base to use it… - Jens From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner
Look at the VersionManager
of the page and its related classes. > As i said before you can do as much as you like alter the
structure of the
|
- [Wicket-develop] Wicket and OSGi Niclas Hedhman
- [Wicket-develop] Re: Wicket and OSGi Niclas Hedhman
- Re: [Wicket-develop] Wicket and OSGi Johan Compagner
- Re: [Wicket-develop] Wicket and OSGi Niclas Hedhman
- Re: [Wicket-develop] Wicket and OSGi Johan Compagner
- Re: [Wicket-develop] Wicket and OSGi Niclas Hedhman
- RE: [Wicket-develop] Wicket and OSGi / Ec... Jens Schmidt
- Re: [Wicket-develop] Wicket and OSGi... Niclas Hedhman
- Re: [Wicket-develop] Wicket and ... Johan Compagner
- Re: [Wicket-develop] Wicket ... Niclas Hedhman
- Re: [Wicket-develop] Wicket and OSGi Johan Compagner
- Re: [Wicket-develop] Wicket and OSGi Niclas Hedhman
- Re: [Wicket-develop] Wicket and OSGi Niclas Hedhman
- Re: [Wicket-develop] Wicket and OSGi Johan Compagner
- Re: [Wicket-develop] Wicket and OSGi Niclas Hedhman
- Re: [Wicket-develop] Wicket and OSGi Johan Compagner
- Re: [Wicket-develop] Wicket and ... Niclas Hedhman