[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [equinox-dev] how to change the jetty port from 80 to other
- From: Simon Kaegi <Simon_Kaegi@xxxxxxxxxx>
- Date: Wed, 31 Oct 2007 10:30:22 -0400
- Delivered-to: email@example.com
These sorts of question should normally be asked in the user newsgroup
instead of the dev list.
You can configure the Jetty Server in a number of different ways:
1) System properties (prefix the properties you found with the bundle name
-- e.g. -Dorg.eclipse.equinox.http.jetty.http.port=8080)
2) JettyConfigurator (see
3) ConfigurationAdmin (The config.xml file you found is actually for use
with the metatype service in conjunction with ConfigAdmin.)
equinox-dev-bounces@xxxxxxxxxxx wrote on 10/31/2007 02:01:36 AM:
> Hello everybody,
> I am new to the Equinox, I am coding a sample application by following
> the article " Embedding an HTTP server in Equinox".
> I coded a servlet and want to start a jetty server in Equinox. The
> application uses a plugin "org.eclipse.equinox.http.jetty", and when
> it started, I got a warning says 'binding listening port to 80
> failed', because I am working in the linux and I am not the root, so
> I need to tell the jetty plugin to use a new port such as 8080, but I
> don't know how to config the jetty plugin to use the new port.
> I checked the plugin source and found a file
> 'OSGI-INF/metatype/config.xml', there is a line like
> "<AD id="http.port" type="Integer" default="0"/>",
> but I think it's not a good idea to change source of the plugin just
> for choose a different listening port.
> any idea? thanks!
> Best regards
> Bob Yang
> equinox-dev mailing list