Skip to main content



      Home
Home » Eclipse Projects » Equinox » info on running HTTP Service?
info on running HTTP Service? [message #55812] Thu, 05 January 2006 11:25 Go to next message
Eclipse UserFriend
Originally posted by: yoduderoo.netscape.net

Hi,
I am getting started with equinox. I started the console using the info
in the "Getting Started" doc.

I connect to the Eclipse CVS and imported the HTTP Service. From
Eclipse, I exported it as a jar and then installed manually using the
console "install" and "start" commands. "Status" shows it is ACTIVE. But
now what?

It looks to me like a tomcat is expected....

Is there any info available to help a newbie like me in getting the http
service running?

Thanks,
y
Re: info on running HTTP Service? [message #55838 is a reply to message #55812] Thu, 05 January 2006 12:15 Go to previous messageGo to next message
Eclipse UserFriend
> It looks to me like a tomcat is expected....

Is there some kind of error message or what do you mean? I have not used
this service myself but checking if port 80 is up seems reasonable to
determine if the service is operable.

Ricky
Re: info on running HTTP Service? [message #55865 is a reply to message #55838] Thu, 05 January 2006 14:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: yoduderoo.netscape.net

There is no error message and there is no additional listening port
after I start the service. Therefore no truly active http service.

In Eclipse, one sees plugin dependencies on the Eclipse 3.1 tomcat
plugin. Hence I must also install this Eclipse plugion in my OSGi
environment? And I want a "pure" OSGi environment, what is recommended?
Construct a OSGi tomcat bundle?

Thanks, Y



Ricky wrote:
>> It looks to me like a tomcat is expected....
>
> Is there some kind of error message or what do you mean? I have not used
> this service myself but checking if port 80 is up seems reasonable to
> determine if the service is operable.
>
> Ricky
Re: info on running HTTP Service? [message #55890 is a reply to message #55865] Fri, 06 January 2006 06:10 Go to previous messageGo to next message
Eclipse UserFriend
> In Eclipse, one sees plugin dependencies on the Eclipse 3.1 tomcat
> plugin. Hence I must also install this Eclipse plugion in my OSGi
> environment? And I want a "pure" OSGi environment, what is recommended?
> Construct a OSGi tomcat bundle?

I do not know anything about this so I hope someone else shed some light
on this issue.

The plugin dependencies irritate me too as they seem not to be used (no
imported packages/required bundles) and the plugin seems to implement a
server itself. I wild guess is to simple use it. Although the start method
of the plugin seems to start the server imidiately, maybe some kind of
lazy loading is in effect so register a servlet and look what happens. But
you have done this I assume.

Ricky
Re: info on running HTTP Service? [message #56034 is a reply to message #55890] Fri, 06 January 2006 11:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: simon.kaegi.cognos.com

The http service just needs access to the javax.servlet package and you're
seeing tomcat mentioned because PDE is matching up the import from
org.eclipse.tomcat.

For a minimal OSGi environment all you really need is the contents of
servlet.jar in it's own bundle. This is currently up for consideration see
bug 121585.

For the time being you might do it yourself create and use a new plugin-in
project based on the servlet.jar contents.
(e.g. new->project and then Plugin-Development->Plug-in from existing jar)

In terms of a working service I can confirm that the httpservice works
when running on top of 3.2M4. By default it listens on port 80 and is not
lazy in terms of waiting for resources and servlets to be registered.

Hope this helps.
-Simon
Re: info on running HTTP Service? [message #61253 is a reply to message #56034] Fri, 10 February 2006 13:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: morova.bol.com.br

The latest equinox integration releases includes Servlet API bundles.

And how can I change the default port without the Config Admin service? It
tries to bind to port 80 without luck in Linux. The OSGi reference talks
about using org.osgi.service.http.port and org.osgi.http.port.secure OSGi
environment properties, but I don't know if they are normal environment
properties.

Gustavo

On Fri, 06 Jan 2006 16:15:34 +0000, Simon Kaegi wrote:

> The http service just needs access to the javax.servlet package and you're
> seeing tomcat mentioned because PDE is matching up the import from
> org.eclipse.tomcat.
>
> For a minimal OSGi environment all you really need is the contents of
> servlet.jar in it's own bundle. This is currently up for consideration see
> bug 121585.
>
> For the time being you might do it yourself create and use a new plugin-in
> project based on the servlet.jar contents.
> (e.g. new->project and then Plugin-Development->Plug-in from existing jar)
>
> In terms of a working service I can confirm that the httpservice works
> when running on top of 3.2M4. By default it listens on port 80 and is not
> lazy in terms of waiting for resources and servlets to be registered.
>
> Hope this helps.
> -Simon
Re: info on running HTTP Service? [message #61299 is a reply to message #61253] Fri, 10 February 2006 16:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: simon.kaegi.cognos.com

Hi Gustavo,

Setting "org.osgi.service.http.port" (e.g. -Dxxx or as a System property)
to a value other than 80 is supported for the Equinox HttpService.

-Simon
Re: info on running HTTP Service? [message #61445 is a reply to message #61299] Mon, 13 February 2006 06:39 Go to previous message
Eclipse UserFriend
Originally posted by: morova.bol.com.br

It worked, thanks! On Eclipse 3.2M4, it worked using -D argument under
Arguments tab, but not using Environment tab in Run dialog. Should I post
a bug for this?

Gustavo

On Fri, 10 Feb 2006 21:26:51 +0000, Simon Kaegi wrote:

> Hi Gustavo,
>
> Setting "org.osgi.service.http.port" (e.g. -Dxxx or as a System property)
> to a value other than 80 is supported for the Equinox HttpService.
>
> -Simon
Previous Topic:Bundle Server Concern
Next Topic:Problems with platform I20060210-1640
Goto Forum:
  


Current Time: Sun May 11 20:34:15 EDT 2025

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

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

Back to the top