Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] Which HttpService

For Jetty 6 we created a convenient feature that you can use to add Jetty Http support to an Equinox setup.  See the org.eclipse.equinox.server.jetty feature.  This is in the equinox sdk download and should be in the 3.7 milestone repo.

For Jetty 7 support, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=309529

Jeff

On 2011-03-09, at 1:15 PM, Chris Frost wrote:

> Hi,
> 
> I'm getting confused now. With Equinox you get two implementations of HttpService. The Equinox one, which I have working fine. There is also Jetty one that I can't get working. I don't want all of the Jetty WAB support, just a HttpService. Having looked in the recent 3.7.x build I though it could be done with just a few bundles. I understand this is Jetty 6 and using Jetty 7 would be much better but it's really no benefit if it needs the whole of Jetty OSGi to provide a little HttpService. I couldn't find any documentation so was following a section in the 'OSGi and Equinox' book that says how to do it but adapting for Virgo, this also suggests that I only need a few bundles. 
> 
> org.eclipse.equinox.http.jetty, org.eclipse.equinox.http.servlet, org.mortbay.jetty.server and org.mortbay.jetty.util. Do these 4 bundles exist in Jetty 7? The fewer bundles the better, I'm going for light weight but a few more features than the Equinox implementation, i.e. JSPs.  
> 
> Thanks, Chris.
> 
> On 7 Mar 2011, at 11:25, Hugues Malphettes wrote:
> 
>> Hi Chris,
>> 
>> On Mon, Mar 7, 2011 at 6:19 PM, Christopher Frost <frostc@xxxxxxxxxx> wrote:
>>> Hi Hugues,
>>> 
>>> So, in order to use the Jetty HttpService you have to deploy and start up
>>> the whole of jetty in OSGi including the WAB container and then deploy the
>>> jetty-httpservice which will provide a HttpService implementation on top WAB
>>> container. If I'm right, does that mean there is no way to provide just the
>>> HttpService without the rest of the Jetty OSGi support.
>> The servlet "org.eclipse.equinox.http.servlet.HttpServiceServlet"
>> provides the HttpService.
>> I am not sure which subset of jetty you are looking for:
>> The bundle org.eclipse.jetty.osgi.httpservice (aka jetty-httpservice)
>> is simply meant to be deployed on jetty-osgi.
>> If there is an interest for it we could re-package it as a standard
>> Web-Bundle: no dependency on jetty. There really was no point making
>> it non-standard.
>> 
>> Equinox itself provides a way to start jetty-6 on which the
>> HttpServiceServlet is deployed. The way the server is configured is
>> through system properties.
>> I am not the expert but if this is what you are looking for I can look for it.
>> 
>> You could come up with your own bundle to bootstrap jetty and then
>> configure it to deploy the HttpServiceServlet.
>> This bundle would depend on less jars than the whole jetty-osgi.
>> Probably jetty-util, jetty-io, jetty-http, jetty-server,
>> jetty-servlet. And maybe for extras, jetty-websocket and
>> jetty-continuation.
>> 
>> Does this answer your question?
>> Hugues
>> 
>>> 
>>> Chris.
>>> 
>>> On 07/03/2011 00:24, Hugues Malphettes wrote:
>>> 
>>> Hi Chris,
>>> jetty-httpservice
>>> (http://repo2.maven.org/maven2/org/eclipse/jetty/osgi/jetty-httpservice/)
>>> is a non standard web-bundle. When jetty-osgi is started and that
>>> jetty-httpservice is started an implementation of the OSGi HttpService
>>> is provided.
>>> If this what you are looking for?
>>> Hugues
>>> 
>>> On Fri, Mar 4, 2011 at 6:32 PM, Christopher Frost <frostc@xxxxxxxxxx> wrote:
>>> 
>>> Hi,
>>> 
>>> I'm trying to get the Jetty HttpService running on the Virgo Kernel and was
>>> wondering which jars I should be using. I found some that come packaged with
>>> Equinox (org.eclipse.equinox.http.jetty, .servlet, org.mortbay.jetty.server
>>> and .util). I also found a jetty-httpservice jar on maven central. Which
>>> would you recommend and how should I be starting it as lot of them are lazy
>>> start bundles?
>>> 
>>> Chris.
>>> 
>>> --
>>> Chris Frost
>>> SpringSource, a division of VMware
>>> 
>>> Virgo Website, Wiki and Forum
>>> 
>>> _______________________________________________
>>> jetty-dev mailing list
>>> jetty-dev@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/jetty-dev
>>> 
>>> 
>>> _______________________________________________
>>> jetty-dev mailing list
>>> jetty-dev@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/jetty-dev
>>> 
>>> --
>>> Chris Frost
>>> SpringSource, a division of VMware
>>> 
>>> Virgo Website, Wiki and Forum
>>> 
>>> _______________________________________________
>>> jetty-dev mailing list
>>> jetty-dev@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/jetty-dev
>>> 
>>> 
> 
> _______________________________________________
> jetty-dev mailing list
> jetty-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jetty-dev



Back to the top