0

Good morning, I am deploying a Web Application into Jetty Server embebed into Equinox OSGi. Still, i works in port 8080, but I need to run two different servers. Then, a conflict between ports is launched. I would like to change port number in one of servers. Could someone help me please?

Thanks in advance!

Jose Hdez
  • 2,297
  • 7
  • 38
  • 52

2 Answers2

3

try those system properties:

jetty.port=xxxx - Jetty specific property

org.osgi.service.http.port=xxxx - OSGi HTTP Service property

Community
  • 1
  • 1
Dmytro Pishchukhin
  • 2,369
  • 1
  • 14
  • 19
  • What if you specify both properties? For example if my environment is running with two webservers? Which property will jetty use? – 0xAffe Nov 17 '14 at 15:09
  • 1. for jetty you can use fragment bundle with configuration. you can configure 1+ connectors with different ports 2. for OSGi HTTP service you have to use OSGI ConfigurationAdmin for the service to define which port(s) will be used – Dmytro Pishchukhin Nov 18 '14 at 07:24
0

if you run in eclipse, you can try put this in your VM argument

-Dorg.osgi.service.http.port=9090
王子1986
  • 3,019
  • 4
  • 31
  • 43