Hi there, On Tue, Jul 12, 2011 at 10:53 PM, <[email protected]> wrote: > Hello, > > I want to use jetty in combination with cipango. Therefore I already managed > to include the startprocess of jetty inside the OSGi environment. Following I > want to configure jetty to load the cipango extension inside this OSGi > environment. While doing so, I set > > -Djetty.etc.config.urls=jetty.xml,cipango.xml,cipango-deploy.xml > > In the loading procedure of cipango.xml, jetty throws an class not found > exception. I guess this has something to do with the OSGi classloading. > > Does somebody know how to add extensions like cipango in a propper way to > such an environment?
Looking at the cipango website, I suspect you might be the first to setup cipango from OSGi. I am not familiar with cipango. I can help you with the injection of new dependencies into the classloader used to start the jetty server. I took a quick look at etc/cipango.xml distributed with cipango-2.0.0. I think you need to use an OSGi fragment for org.eclipse.jetty.osgi.boot that would import the necessary cipango packages. This is described here: http://wiki.eclipse.org/Jetty/Feature/Jetty_OSGi#Injecting_new_server-wide_features_into_jetty-osgi You will need to package the cipango jars as OSGi bundles first. Then in your fragment, either require those cipango bundles either import-packages for them or take a small shortcut: Dynamic-ImportPackage: org.cipango.* Let us know how it goes. Hugues. > > Btw. as OSGi container implementation I am using equinox. > > Best regards :-) > > -- > NEU: FreePhone - kostenlos mobil telefonieren! > Jetzt informieren: http://www.gmx.net/de/go/freephone > _______________________________________________ > jetty-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/jetty-users > _______________________________________________ jetty-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/jetty-users
