Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Equinox/Jetty Works Out-of-the-Box? Not
Equinox/Jetty Works Out-of-the-Box? Not [message #117261] Wed, 10 September 2008 17:53 Go to next message
Geoffry Roberts is currently offline Geoffry Roberts
Messages: 71
Registered: July 2009
Member
All,

"[Suggested] If you're using Eclipse it might be far simpler to "import" a
team project set with everything needed. "

According to the literature, the file jettyhttp-anon.psf contains the
bundles required to run the jetty servlet container inside equnox.

javax.servlet
org.apache.commons.logging
org.eclipse.equinox.http.jetty
org.eclipse.equinox.http.registry
org.mortbay.jetty
org.eclipse.equinox.http.servlet

I am running eclipse Ganymede and all the above bundles are present in the
distribution so one might assume I'm good to go. However, the following
two bundles are not a part of my set up when I run the diag command on the
above

org.osgi.service.cm
org.osgi.service.http

I'm looking for the best way to include them. As yet, I can find no
proper update site. Instead, I find a download
org.osgi.compendium-1.2.0-project.zip that appears to have the missing
bits but does not appear to be setup for eclipse.
Before I head down the road of creating bundles I'd like to ask:

1. I there an update site for these?
2. Am I simply missing something?

For good measure, the results of running diag is included below.

osgi> diag 7221
initial@reference :file:plugins/org.eclipse.equinox.http.jetty_1.1.0.v20080425 .jar/
[7221]
Direct constraints which are unresolved:
Missing imported package org.eclipse.equinox.http.servlet_1.0.0.
Missing imported package org.osgi.service.cm_1.2.0.
Leaf constraints in the dependency chain which are unresolved:

initial@reference :file:plugins/org.eclipse.equinox.http.servlet_1.0.100.v2008 0427-0830.jar/
[7307]
Missing imported package org.osgi.service.http_1.2.0.
Re: Equinox/Jetty Works Out-of-the-Box? Not [message #117290 is a reply to message #117261] Thu, 11 September 2008 12:28 Go to previous messageGo to next message
Gunnar Wagenknecht is currently offline Gunnar Wagenknecht
Messages: 451
Registered: July 2009
Location: Germany ✈ Vancouver
Senior Member

Geoffry Roberts schrieb:
> According to the literature, the file jettyhttp-anon.psf contains the
> bundles required to run the jetty servlet container inside equnox.

Do you have a link to the file? It seems that it's outdated. All bundles
are available in Ganymede. You could start right away by creating a
fresh workspace and setup an "OSGi Framework" launch configuration from
the bundles in your target platform (which would be the running SDK).
Simply select and check the org.eclipse.equinox.http.jetty bundle and
then click on "Add Required Bundles".

> org.osgi.service.cm
> org.osgi.service.http

These are OSGi services provided by org.eclipse.osgi.services bundle.

Following the steps above you should get the following output in the
console view.

----------------
osgi> 11.09.2008 14:24:53 org.mortbay.http.HttpServer doStart
INFO: Version Jetty/5.1.x
11.09.2008 14:24:53 org.mortbay.util.Container start
INFO: Started
org.eclipse.equinox.http.jetty.internal.Servlet25Handler@15b9e68
11.09.2008 14:24:53 org.mortbay.util.Container start
INFO: Started HttpContext[/,/]
11.09.2008 14:24:53 org.mortbay.http.SocketListener start
INFO: Started SocketListener on 0.0.0.0:80
11.09.2008 14:24:53 org.mortbay.util.Container start
INFO: Started org.mortbay.http.HttpServer@12558d6
ss

Framework is launched.

id State Bundle
0 ACTIVE org.eclipse.osgi_3.4.0.v20080605-1900
Fragments=8
1 ACTIVE org.eclipse.osgi.services_3.1.200.v20071203
2 ACTIVE org.eclipse.equinox.http.servlet_1.0.100.v20080427-0830
3 ACTIVE org.mortbay.jetty_5.1.14.v200806031611
4 ACTIVE javax.servlet_2.4.0.v200806031604
6 ACTIVE org.eclipse.equinox.http.jetty_1.1.0.v20080425
7 ACTIVE org.apache.commons.logging_1.0.4.v20080605-1930
8 RESOLVED org.eclipse.equinox.transforms.hook_1.0.0.v20080610
Master=0
11 ACTIVE org.eclipse.equinox.common_3.4.0.v20080421-2006
13 ACTIVE org.eclipse.equinox.http.registry_1.0.100.v20080427-0830
14 ACTIVE org.eclipse.equinox.registry_3.4.0.v20080516-0950

osgi>
----------------

Bundles evolve to the bundle list in 3.4 is now:
org.eclipse.osgi_3.4.0.v20080605-1900
org.eclipse.osgi.services_3.1.200.v20071203
javax.servlet_2.4.0.v200806031604
org.eclipse.equinox.http.servlet_1.0.100.v20080427-0830
org.mortbay.jetty_5.1.14.v200806031611
org.eclipse.equinox.http.jetty_1.1.0.v20080425
org.apache.commons.logging_1.0.4.v20080605-1930
org.eclipse.equinox.transforms.hook_1.0.0.v20080610
org.eclipse.equinox.common_3.4.0.v20080421-2006
org.eclipse.equinox.http.registry_1.0.100.v20080427-0830
org.eclipse.equinox.registry_3.4.0.v20080516-0950

-Gunnar

--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
Re: Equinox/Jetty Works Out-of-the-Box? Not [message #117317 is a reply to message #117290] Thu, 11 September 2008 16:56 Go to previous messageGo to next message
Geoffry Roberts is currently offline Geoffry Roberts
Messages: 71
Registered: July 2009
Member
Gunnar,

Thanks for your response.

Gunnar Wagenknecht wrote:


> Geoffry Roberts schrieb:
>> According to the literature, the file jettyhttp-anon.psf contains the
>> bundles required to run the jetty servlet container inside equnox.

> Do you have a link to the file? It seems that it's outdated. All bundles

This is the page the link was on:

http://www.eclipse.org/equinox/server/http_in_equinox.php

Here's the link to the psf file in question:

http://www.eclipse.org/equinox/server/downloads/jettyhttp-an on.psf

It does appear the page is a bit out of date. I had put my faith in the
phrase: '..."import" a team project set with everything needed...'.

Another thing that threw me was the statement near the bottom of the page:
"Select the bundles listed above and your application" The bundle:
org.eclipse.osgi.services is not on the list and, as I stated earlier,
running the diag command indicates that the problem is the lack of
org.osgi.service.cm and org.osgi.service.http. At this point, one begins
to get steered down the wrong path. Apparently, the eclipse team has,
perhaps, repackaged some functionality under another name.
Understandable, but a tripping point for the uninformed.

The up shot is, now that I have the missing piece, all is well, and I can
proceed.

Once again thanks.
Re: Equinox/Jetty Works Out-of-the-Box? Not [message #117340 is a reply to message #117317] Thu, 11 September 2008 17:43 Go to previous message
Simon Kaegi is currently offline Simon Kaegi
Messages: 381
Registered: July 2009
Senior Member
Apologies. I should mark that page out of date until I get a chance to
update it.

"Geoffry Roberts" <geoff.roberts@qinetiq-na.com> wrote in message
news:e05cc64ed0b5ace405a0ea244f24462b$1@www.eclipse.org...
> Gunnar,
>
> Thanks for your response.
>
> Gunnar Wagenknecht wrote:
>
>
>> Geoffry Roberts schrieb:
>>> According to the literature, the file jettyhttp-anon.psf contains the
>>> bundles required to run the jetty servlet container inside equnox.
>
>> Do you have a link to the file? It seems that it's outdated. All bundles
>
> This is the page the link was on:
>
> http://www.eclipse.org/equinox/server/http_in_equinox.php
>
> Here's the link to the psf file in question:
>
> http://www.eclipse.org/equinox/server/downloads/jettyhttp-an on.psf
>
> It does appear the page is a bit out of date. I had put my faith in the
> phrase: '..."import" a team project set with everything needed...'.
> Another thing that threw me was the statement near the bottom of the page:
> "Select the bundles listed above and your application" The bundle:
> org.eclipse.osgi.services is not on the list and, as I stated earlier,
> running the diag command indicates that the problem is the lack of
> org.osgi.service.cm and org.osgi.service.http. At this point, one begins
> to get steered down the wrong path. Apparently, the eclipse team has,
> perhaps, repackaged some functionality under another name.
> Understandable, but a tripping point for the uninformed.
>
> The up shot is, now that I have the missing piece, all is well, and I can
> proceed.
>
> Once again thanks.
>
Previous Topic:Multi Platform Launchers?
Next Topic:p2'izing an application takes too long
Goto Forum:
  


Current Time: Wed Oct 22 09:58:29 GMT 2014

Powered by FUDForum. Page generated in 0.02184 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software