Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » How to open the Equinox sample web page
How to open the Equinox sample web page [message #78799] Mon, 11 December 2006 00:09 Go to next message
Mario Scalas is currently offline Mario ScalasFriend
Messages: 32
Registered: July 2009
Member
Hi there,
I'm moving my first steps with Equinox server side. I've checked out the
latest bundles from CVS and installed the sample.http.registry bundle from
http://www.eclipse.org/equinox/server/http_in_equinox.php but while the
bundles all seems activated:

osgi> ss

Framework is launched.

id State Bundle
0 ACTIVE system.bundle_3.2.1.R32x_v20060919
8 ACTIVE javax.servlet_2.4.0.qualifier
9 ACTIVE org.eclipse.equinox.common_3.2.0.v20060603
10 ACTIVE org.eclipse.equinox.http.registry_1.0.0.qualifier
11 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.qualifier
13 ACTIVE org.eclipse.equinox.registry_3.2.1.R32x_v20060814
15 ACTIVE org.eclipse.osgi.services_3.1.100.v20060601
16 ACTIVE sample.http.registry_1.0.0

osgi>

I do not understand which URL I need to make my browser point to :S I've
tried the command line arguments:
-Dorg.osgi.service.http.port=8080 -console
with no luck too.

So I guess it is something really stupid. Any help for a newbie? :)

Regards
Mario

--
Mario Scalas

"Relax. You don't have to be a great designer --you just have to be
creatively lazy."
-- Kent Beck
Re: How to open the Equinox sample web page [message #78855 is a reply to message #78799] Mon, 11 December 2006 12:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ridcully560.yahoo.com

Hi Mario,

I think that you can access them via:

http://localhost:8080/bridge/helloworld (Servlet)
or
http://localhost:8080/bridge/helloworld.html (HTML-Resource)

with some browser. You mentioned, that you followed the desription on
the "Embedding an HTTP server in Equinox"-page. But I'm unsure if
there's a webserver (like Jetty) in the status-output you posted -
although I may be wrong there. You might try it with one of this (just
see the website you mentioned for details):

> * org.eclipse.equinox.http
>
OR
>
> * org.eclipse.equinox.http.jetty
> * org.eclipse.equinox.http.servlet
> * org.mortbay.jetty (v5_1_11 - from Orbit Depot)
> * org.apache.commons.logging (v1_0_4 - from Orbit Depot)

Hope that helps,
Johannes
Re: How to open the Equinox sample web page [message #78892 is a reply to message #78855] Tue, 12 December 2006 18:28 Go to previous messageGo to next message
Mario Scalas is currently offline Mario ScalasFriend
Messages: 32
Registered: July 2009
Member
Hi Johannes

Johannes wrote:
<snip>
>You might try it with one of this (just
> see the website you mentioned for details):
>
>> * org.eclipse.equinox.http
>>
> OR
>>
>> * org.eclipse.equinox.http.jetty
>> * org.eclipse.equinox.http.servlet
>> * org.mortbay.jetty (v5_1_11 - from Orbit Depot)
>> * org.apache.commons.logging (v1_0_4 - from Orbit Depot)
>

:O Silly me! And I double checked that list several times ... just passed
over the name "equinox.http" ... with all those *.http* I got confused.
Well, I think I've expended much of my newbie credit :)

> Hope that helps,
> Johannes

Of course it had! Thank you very much!! There is only one problem: how to
change the listening port: I tried setting
-Dorg.osgi.service.http.port=8080
in the arguments tab but with no effect :S

Cheers
Mario

--
Mario Scalas

"Relax. You don't have to be a great designer --you just have to be
creatively lazy."
-- Kent Beck
Re: How to open the Equinox sample web page [message #78922 is a reply to message #78892] Wed, 13 December 2006 10:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ridcully560.yahoo.com

Hi Mario,

> Well, I think I've expended much of my newbie credit :)

I don't think so!

> Of course it had! Thank you very much!! There is only one problem: how to
> change the listening port: I tried setting
> -Dorg.osgi.service.http.port=8080
> in the arguments tab but with no effect :S

Hmm... I think you can start the jetty server with some kind of
configuration-file. To do that I had to change the HttpServer to Server
in the jetty-Activator (in org.eclipse.equinox.http.jetty). I think you
can create a server with new Server(/path/to/config/file). I tried it
that way once to get my hibernate running, but for some reason I'm not
using that way anymore - and I fear I can't tell you if that is a way to
change the port, but maybe it's woth a look.

As it was easier for the moment, I simply switched the tomcat that I
need to run next to the jetty to another port - I'll have to change that
one day, but for now it works.

Johannes
Re: How to open the Equinox sample web page [message #78944 is a reply to message #78892] Wed, 13 December 2006 17:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: skaegi.sympatico.ca

Hi Mario,

> There is only one problem: how to
> change the listening port: I tried setting
> -Dorg.osgi.service.http.port=8080
> in the arguments tab but with no effect :S

That looks right.
The -Dorg.osgi.service.http.port=8080 should be in the "VM Arguments"
portion of the argument tab.

-Simon

"Mario Scalas" <mario.scalas@gmail.com> wrote in message
news:elmsdb$1ps$1@utils.eclipse.org...
> Hi Johannes
>
> Johannes wrote:
> <snip>
> >You might try it with one of this (just
> > see the website you mentioned for details):
> >
> >> * org.eclipse.equinox.http
> >>
> > OR
> >>
> >> * org.eclipse.equinox.http.jetty
> >> * org.eclipse.equinox.http.servlet
> >> * org.mortbay.jetty (v5_1_11 - from Orbit Depot)
> >> * org.apache.commons.logging (v1_0_4 - from Orbit Depot)
> >
>
> :O Silly me! And I double checked that list several times ... just passed
> over the name "equinox.http" ... with all those *.http* I got confused.
> Well, I think I've expended much of my newbie credit :)
>
> > Hope that helps,
> > Johannes
>
> Of course it had! Thank you very much!! There is only one problem: how to
> change the listening port: I tried setting
> -Dorg.osgi.service.http.port=8080
> in the arguments tab but with no effect :S
>
> Cheers
> Mario
>
> --
> Mario Scalas
>
> "Relax. You don't have to be a great designer --you just have to be
> creatively lazy."
> -- Kent Beck
Re: How to open the Equinox sample web page [message #78952 is a reply to message #78944] Wed, 13 December 2006 23:37 Go to previous message
Mario Scalas is currently offline Mario ScalasFriend
Messages: 32
Registered: July 2009
Member
Hi Simon,

Simon Kaegi wrote:
> That looks right.
> The -Dorg.osgi.service.http.port=8080 should be in the "VM Arguments"
> portion of the argument tab.

Sgrunt! I did append the option in the program section, of course! Appending
in the VM args section worked perfectly.

Now I can start with the serious problems ... :)

Thanks!
Mario

--
Mario Scalas

"Relax. You don't have to be a great designer --you just have to be
creatively lazy."
-- Kent Beck
Previous Topic:is OSGi comparable with iBATIS SQLMAP 2
Next Topic:problem with export of bundles when resuming an osgi application
Goto Forum:
  


Current Time: Sat Apr 27 00:30:04 GMT 2024

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

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

Back to the top