[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] how to change the jetty port from 80 to other

Hi Bob,

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
> equinox-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/equinox-dev