How to use grizzly with enroute

18 views
Skip to first unread message

Naftali van der Loon

unread,
Dec 1, 2017, 10:20:37 AM12/1/17
to bndtool...@googlegroups.com
Hi

I'm trying to use the grizzly http service instead of jetty with enroute, but it resolving bundles always includes org.apache.felix.jetty. It seems like this has to do with osgi.enroute.base.api, but I'm not sure. 

How do I use the grizzly http service instead of jetty?

Greetz, Naftali

Peter Kriens

unread,
Dec 1, 2017, 1:02:24 PM12/1/17
to bndtool...@googlegroups.com
You could try to 

1) add the jetty to the  -runblacklist (same format as the -runrequires)
2) add the grizzly directly to the -runrequires 

If you resolved, check out the pane at the bottom, it allows you to check out requirements graph. Also see http://enroute.osgi.org/appnotes/resolving.html

Kind regards,

Peter Kriens

--
You received this message because you are subscribed to the Google Groups "bndtools-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raymond Auge

unread,
Dec 1, 2017, 2:11:33 PM12/1/17
to bndtool...@googlegroups.com
Is there actually an OSGi HttpService or Http Whiteboard impl that knows how to bootstrap grizzly?

Both equinox.http.servlet and felix http have bundles specific to bootstrapping in jetty, but I'm not sure about other servlet engines.

While there may be OSGi grizzly bundles out there, that's not all you need. You need something that knows how to setup that up with the HttpService and/or whiteboard on top of that.

I guess what I'm saying is that it won't be a simple as making sure the bundles are available.

Sincerely,
- Ray

To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "bndtools-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Raymond Augé (@rotty3000)
Senior Software Architect Liferay, Inc. (@Liferay)
Board Member & EEG Co-Chair, OSGi Alliance (@OSGiAlliance)

MrMiyagi

unread,
Feb 23, 2018, 7:18:48 AM2/23/18
to bndtools-users
Ok, so when I do this it tells me it can't find an implementation for osgi.http

I'v looked in https://github.com/osgi/osgi.enroute/blob/master/osgi.enroute.pom.distro/augments.bndrun
where I can see 
-augment.fe_je: \ org.apache.felix.http.jetty; \ capability:= "osgi.service;objectClass=org.osgi.service.http.HttpService;effective:=active, \ osgi.implementation;osgi.implementation=osgi.http"

So here I think what happens is that org.apache.felix.http.jetty is hardwired as org.osgi.service.http.HttpService 
How can I overwrite this? Or am I misinterpreting this? 

Raymond Auge

unread,
Feb 23, 2018, 9:24:58 AM2/23/18
to bndtool...@googlegroups.com
On Fri, Feb 23, 2018 at 7:18 AM, MrMiyagi <naf...@vanderloon.nl> wrote:
Ok, so when I do this it tells me it can't find an implementation for osgi.http

I'v looked in https://github.com/osgi/osgi.enroute/blob/master/osgi.enroute.pom.distro/augments.bndrun
where I can see 
-augment.fe_je: \ org.apache.felix.http.jetty; \ capability:= "osgi.service;objectClass=org.osgi.service.http.HttpService;effective:=active, \ osgi.implementation;osgi.implementation=osgi.http"


I wouldn't call that "hard wired". I'd call it "the only provider of the HttpService or http whiteboard implementations".

All you need to be able to provide any other is to have some other bundle ALSO provide those capabilities.

Sincerely,
- Ray
 
So here I think what happens is that org.apache.felix.http.jetty is hardwired as org.osgi.service.http.HttpService 
How can I overwrite this? Or am I misinterpreting this? 
On Friday, December 1, 2017 at 7:02:24 PM UTC+1, Peter Kriens wrote:
You could try to 

1) add the jetty to the  -runblacklist (same format as the -runrequires)
2) add the grizzly directly to the -runrequires 

If you resolved, check out the pane at the bottom, it allows you to check out requirements graph. Also see http://enroute.osgi.org/appnotes/resolving.html

Kind regards,

Peter Kriens

On 1 Dec 2017, at 16:20, Naftali van der Loon <naf...@vanderloon.nl> wrote:

Hi

I'm trying to use the grizzly http service instead of jetty with enroute, but it resolving bundles always includes org.apache.felix.jetty. It seems like this has to do with osgi.enroute.base.api, but I'm not sure. 

How do I use the grizzly http service instead of jetty?

Greetz, Naftali

--
You received this message because you are subscribed to the Google Groups "bndtools-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "bndtools-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Naftali van der Loon

unread,
Feb 23, 2018, 9:28:58 AM2/23/18
to bndtool...@googlegroups.com
So I'm a little lost here, do you maybe have an example where glassfish grizzly is the implementation? There's not much I can find..

--
You received this message because you are subscribed to a topic in the Google Groups "bndtools-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bndtools-users/OG75ltICzDw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bndtools-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Met vriendelijke groet,

Naftali van der Loon

Raymond Auge

unread,
Feb 23, 2018, 9:43:56 AM2/23/18
to bndtool...@googlegroups.com
As I stated in my very first response, just because grizzly exists as a set of OSGi bundles doesn't mean that someone took the time to implement the HttpService [1] or the Http Whiteboard [2] specifications on top of it (I've personally never heard of one).

And, in order to provide (satisfy) these capabilities:

osgi.service;objectClass=org.osgi.service.http.HttpService;effective:=active, osgi.implementation;osgi.implementation=osgi.http"

that's exactly what you need (e.g. [3]).

You may want to take a look at how org.apache.felix.http.jetty [4] works in bootstrapping jetty and do something similar using grizzly.

Sincerely,
- Ray


Reply all
Reply to author
Forward
0 new messages