Skip to main content



      Home
Home » Eclipse Projects » Equinox » Starting the http plugin
Starting the http plugin [message #87468] Thu, 03 May 2007 10:13 Go to next message
Eclipse UserFriend
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I downloaded org.eclipse.osgi_3.2.2.R32x_v20070118.jar. in there is a
plugin for HTTP org.eclipse.equinox.http_1.0.2.R32x_v20061218.jar. I
have loaded the required servlets. Here is the ss command in the
equinox server:
osgi> ss

Framework is launched.

id State Bundle
0 ACTIVE system.bundle_3.2.2.R32x_v20070118
2 RESOLVED org.eclipse.equinox.http_1.0.2.R32x_v20061218
3 ACTIVE org.eclipse.equinox.servlet.api_1.0.0.v20060601
4 ACTIVE org.eclipse.osgi.util_3.1.100.v20060601
5 ACTIVE org.eclipse.osgi.services_3.1.100.v20060601

when I run the start 2 I get a stack trace:
May 3, 2007 10:11:48 AM Log ErrorPort 80 is use
java.net.BindException: Address already in use: JVM_Bind

I have a web server running on the machine already.

How do I change the port for the http server to 8080?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGOe3tyHA2ZZVyicQRAv6lAJ945SJoX+II7FL50NboF+/R3NnnagCd GouA
JWZxqpvAVoMxwhLdK9b3IFo=
=l5d6
-----END PGP SIGNATURE-----
Re: Starting the http plugin [message #87483 is a reply to message #87468] Thu, 03 May 2007 10:31 Go to previous messageGo to next message
Eclipse UserFriend
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

One clarification I'm trying to run the servlet engine Do I have the
correct configuration?

Mark Russell wrote:
> I downloaded org.eclipse.osgi_3.2.2.R32x_v20070118.jar. in there is a
> plugin for HTTP org.eclipse.equinox.http_1.0.2.R32x_v20061218.jar. I
> have loaded the required servlets. Here is the ss command in the
> equinox server:
> osgi> ss
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE system.bundle_3.2.2.R32x_v20070118
> 2 RESOLVED org.eclipse.equinox.http_1.0.2.R32x_v20061218
> 3 ACTIVE org.eclipse.equinox.servlet.api_1.0.0.v20060601
> 4 ACTIVE org.eclipse.osgi.util_3.1.100.v20060601
> 5 ACTIVE org.eclipse.osgi.services_3.1.100.v20060601
>
> when I run the start 2 I get a stack trace:
> May 3, 2007 10:11:48 AM Log ErrorPort 80 is use
> java.net.BindException: Address already in use: JVM_Bind
>
> I have a web server running on the machine already.
>
> How do I change the port for the http server to 8080?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGOfI7yHA2ZZVyicQRArgDAKCYdFz0G1UD36KI1MV2AWHhdpHM3wCf TYFe
RQje/1oQAxsraMKHaF9X/yI=
=fWv5
-----END PGP SIGNATURE-----
Re: Starting the http plugin [message #87498 is a reply to message #87483] Thu, 03 May 2007 11:40 Go to previous messageGo to next message
Eclipse UserFriend
Hi Mark,

It looks like you have the right basic configuration.
By default the http service uses port 80.

You can use the System Property "org.osgi.service.http.port" to control the
port.
e.g. -Dorg.osgi.service.http.port=8080 or put
org.osgi.service.http.port=8080 in your config.ini

HTH
-Simon


"Mark Russell" <fireresq@earthlink.net> wrote in message
news:f1crqi$p4s$1@build.eclipse.org...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> One clarification I'm trying to run the servlet engine Do I have the
> correct configuration?
>
> Mark Russell wrote:
>> I downloaded org.eclipse.osgi_3.2.2.R32x_v20070118.jar. in there is a
>> plugin for HTTP org.eclipse.equinox.http_1.0.2.R32x_v20061218.jar. I
>> have loaded the required servlets. Here is the ss command in the
>> equinox server:
>> osgi> ss
>>
>> Framework is launched.
>>
>> id State Bundle
>> 0 ACTIVE system.bundle_3.2.2.R32x_v20070118
>> 2 RESOLVED org.eclipse.equinox.http_1.0.2.R32x_v20061218
>> 3 ACTIVE org.eclipse.equinox.servlet.api_1.0.0.v20060601
>> 4 ACTIVE org.eclipse.osgi.util_3.1.100.v20060601
>> 5 ACTIVE org.eclipse.osgi.services_3.1.100.v20060601
>>
>> when I run the start 2 I get a stack trace:
>> May 3, 2007 10:11:48 AM Log ErrorPort 80 is use
>> java.net.BindException: Address already in use: JVM_Bind
>>
>> I have a web server running on the machine already.
>>
>> How do I change the port for the http server to 8080?
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (Cygwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGOfI7yHA2ZZVyicQRArgDAKCYdFz0G1UD36KI1MV2AWHhdpHM3wCf TYFe
> RQje/1oQAxsraMKHaF9X/yI=
> =fWv5
> -----END PGP SIGNATURE-----
Re: Starting the http plugin [message #87529 is a reply to message #87498] Thu, 03 May 2007 12:20 Go to previous messageGo to next message
Eclipse UserFriend
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks Simon :-).

I got it working now and am using o.o.e.http.jetty.

here is my current configuration:
Framework is launched.

id State Bundle
0 ACTIVE system.bundle_3.2.2.R32x_v20070118
4 ACTIVE org.eclipse.osgi.util_3.1.100.v20060601
5 ACTIVE org.eclipse.osgi.services_3.1.100.v20060601
6 ACTIVE org.mortbay.jetty_5.1.11.qualifier
10 ACTIVE org.eclipse.equinox.servlet.api_1.0.0.v20060601
11 ACTIVE javax.servlet_2.4.0.qualifier
12 ACTIVE org.apache.commons.logging_1.0.4.qualifier
13 ACTIVE org.eclipse.equinox.common_3.2.0.v20060603
14 ACTIVE org.eclipse.equinox.registry_3.2.1.R32x_v20060814
15 ACTIVE org.eclipse.equinox.http.jetty_1.0.0.200705031113
16 ACTIVE org.eclipse.equinox.http.registry_1.0.0.200705031113
17 ACTIVE org.eclipse.equinox.http.servlet_1.0.0.200705031113
19 ACTIVE com.instantiations.example.equinox.server_1.0.0

in the com.instantiations.example.equinox.server bundle I have a println
for start and stop. and I see them so I know my plugin is being loaded.

Every time I try to make a request from he server I get a 404.

is there any debug messages I can turn on to see why I'm getting a 404?

Or can anyone tell me what code to put a breakpoint in to look at the
code to see why I keep getting a 404?

Simon Kaegi wrote:

> Hi Mark,
>
> It looks like you have the right basic configuration.
> By default the http service uses port 80.
>
> You can use the System Property "org.osgi.service.http.port" to control the
> port.
> e.g. -Dorg.osgi.service.http.port=8080 or put
> org.osgi.service.http.port=8080 in your config.ini
>
> HTH
> -Simon
>
>
> "Mark Russell" <fireresq@earthlink.net> wrote in message
> news:f1crqi$p4s$1@build.eclipse.org...
> One clarification I'm trying to run the servlet engine Do I have the
> correct configuration?
>
> Mark Russell wrote:
>>>> I downloaded org.eclipse.osgi_3.2.2.R32x_v20070118.jar. in there is a
>>>> plugin for HTTP org.eclipse.equinox.http_1.0.2.R32x_v20061218.jar. I
>>>> have loaded the required servlets. Here is the ss command in the
>>>> equinox server:
>>>> osgi> ss
>>>>
>>>> Framework is launched.
>>>>
>>>> id State Bundle
>>>> 0 ACTIVE system.bundle_3.2.2.R32x_v20070118
>>>> 2 RESOLVED org.eclipse.equinox.http_1.0.2.R32x_v20061218
>>>> 3 ACTIVE org.eclipse.equinox.servlet.api_1.0.0.v20060601
>>>> 4 ACTIVE org.eclipse.osgi.util_3.1.100.v20060601
>>>> 5 ACTIVE org.eclipse.osgi.services_3.1.100.v20060601
>>>>
>>>> when I run the start 2 I get a stack trace:
>>>> May 3, 2007 10:11:48 AM Log ErrorPort 80 is use
>>>> java.net.BindException: Address already in use: JVM_Bind
>>>>
>>>> I have a web server running on the machine already.
>>>>
>>>> How do I change the port for the http server to 8080?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGOgu1yHA2ZZVyicQRArrIAJ9NGwe+u6gAJfVMlS4vEmlGcjRWUwCg jZ9o
tYI5/35oJPK+Q+DrI08J2hE=
=EnJ5
-----END PGP SIGNATURE-----
Re: Starting the http plugin [message #87600 is a reply to message #87468] Thu, 03 May 2007 22:49 Go to previous messageGo to next message
Eclipse UserFriend
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I finally figured out why I was getting 404 return for all of my
requests. when I build the plugin I forgot to add the resources in the
build.xml file.

Once I added them Everything worked fine

Mark Russell wrote:
> I downloaded org.eclipse.osgi_3.2.2.R32x_v20070118.jar. in there is a
> plugin for HTTP org.eclipse.equinox.http_1.0.2.R32x_v20061218.jar. I
> have loaded the required servlets. Here is the ss command in the
> equinox server:
> osgi> ss
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE system.bundle_3.2.2.R32x_v20070118
> 2 RESOLVED org.eclipse.equinox.http_1.0.2.R32x_v20061218
> 3 ACTIVE org.eclipse.equinox.servlet.api_1.0.0.v20060601
> 4 ACTIVE org.eclipse.osgi.util_3.1.100.v20060601
> 5 ACTIVE org.eclipse.osgi.services_3.1.100.v20060601
>
> when I run the start 2 I get a stack trace:
> May 3, 2007 10:11:48 AM Log ErrorPort 80 is use
> java.net.BindException: Address already in use: JVM_Bind
>
> I have a web server running on the machine already.
>
> How do I change the port for the http server to 8080?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGOp9CyHA2ZZVyicQRAjd8AKCHFsAYc2v8E8FguDsv7KFHC5yzWACg iKG5
ywMDQPt8rAdYfnEMAw/MWQ8=
=2824
-----END PGP SIGNATURE-----
Re: Starting the http plugin [message #87615 is a reply to message #87600] Fri, 04 May 2007 09:08 Go to previous message
Eclipse UserFriend
That's great.
If you ever wanted to take a deeper look at what's going on at request
mapping time a good starting point is to set a break point in
ProxyServlet.service(req, resp). This works for both the Jetty and
Servletbridge Http Service implementations.
-Simon

"Mark Russell" <fireresq@earthlink.net> wrote in message
news:f1e73u$dc4$1@build.eclipse.org...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I finally figured out why I was getting 404 return for all of my
> requests. when I build the plugin I forgot to add the resources in the
> build.xml file.
>
> Once I added them Everything worked fine
>
> Mark Russell wrote:
>> I downloaded org.eclipse.osgi_3.2.2.R32x_v20070118.jar. in there is a
>> plugin for HTTP org.eclipse.equinox.http_1.0.2.R32x_v20061218.jar. I
>> have loaded the required servlets. Here is the ss command in the
>> equinox server:
>> osgi> ss
>>
>> Framework is launched.
>>
>> id State Bundle
>> 0 ACTIVE system.bundle_3.2.2.R32x_v20070118
>> 2 RESOLVED org.eclipse.equinox.http_1.0.2.R32x_v20061218
>> 3 ACTIVE org.eclipse.equinox.servlet.api_1.0.0.v20060601
>> 4 ACTIVE org.eclipse.osgi.util_3.1.100.v20060601
>> 5 ACTIVE org.eclipse.osgi.services_3.1.100.v20060601
>>
>> when I run the start 2 I get a stack trace:
>> May 3, 2007 10:11:48 AM Log ErrorPort 80 is use
>> java.net.BindException: Address already in use: JVM_Bind
>>
>> I have a web server running on the machine already.
>>
>> How do I change the port for the http server to 8080?
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (Cygwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGOp9CyHA2ZZVyicQRAjd8AKCHFsAYc2v8E8FguDsv7KFHC5yzWACg iKG5
> ywMDQPt8rAdYfnEMAw/MWQ8=
> =2824
> -----END PGP SIGNATURE-----
Previous Topic:Equinox Console Commands Syntaxes?
Next Topic:developing fragments in pde
Goto Forum:
  


Current Time: Thu May 08 23:26:42 EDT 2025

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

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

Back to the top