When we tried something similar we had some problems with the HttpService servlet conflicting with some other things we exposed in other ways (through manifest headers). What we ended up doing was dropping the OSGi HttpService thing and exposed org.eclipse.jetty.server.handler.ContextHandler:s instead as the org.eclipse.jetty.osgi.boot bundle actually tracks services of that kind.
I'm still not sure it's an entirely safe way of doing things (please let me know if it's totally stupid :), but it seems to work well enough for us. It also allows for a bit more flexible configuration, although it does make Jetty a hard dependency rather than just 'anything that exposes HttpService', which might not be what you want. Either way, I rambled about it here, in case someone's interested: http://blog.fnord.se/journal/2011/1/26/deploying-a-servlet-in-jetty-7-using-osgi-ds.html . // Henrik On Feb 8, 2011, at 16:07 , Mitul Adhia wrote: > Hi All, > > Could anyone please let me now how can i achieve httpservice in jetty 7.2.2 > embeded in equinox container ?? > Which are all the bundles can be used to achieve this ??? I have few bundles > with me which are listed down . Do let me know which are all missing bundles > if any . > > 1) jetty-continuation-7.2.2.v20101205.jar > 2) jetty-http-7.2.2.v20101205.jar > 3) jetty-io-7.2.2.v20101205.jar > 4) jetty-security-7.2.2.v20101205.jar > 5) jetty-server-7.2.2.v20101205.jar > 6) jetty-servlet-7.2.2.v20101205.jar > 7) jetty-util-7.2.2.v20101205.jar > 8) jetty-xml-7.2.2.v20101205.jar > > The requirement would be to use ServiceTracer class from osgi which would > track the HttpService of embeded web container here jetty . > I did achieve this using the org.eclipse.equinox.http.jetty when i was using > jetty 6.1 from mortbay. In that i was using following 2 bundles from mortbay > > 1) org.mortbay.jetty.server > 2) org.morbay.jetty.util. > > But now i have upgraded to jetty 7.2.2 and wanted to achieve the same > behavior. Now while using jetty7.2.2 i have removed the morbay bundles as > well the bundle from equinox i.e org.eclipse.equinox.http.jetty as this > bundle is still pointing to morbay bundle 6.1 :( > > > Best Regards, > Mitul > _______________________________________________ > 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
