I want to change the port of Apache ACE to 80. How can I do that? I could not find any documentation for that. I have tried by changing value of key Dorg.osgi.service.http.port
in file platform.properties
from 8080 to 80. But after this, i am not able to login in Apache ace. It gives invalid username & password message. However, i am able to login through same credentials if i run it on port 8080.
4 Answers
The properties in following files needs to be updated for port change.
platform.properties
-Dorg.osgi.service.http.port
conf/org.apache.ace.webui.vaadin.cfg
aceHost obrUrl
conf/org.apache.ace.server.activation.impl.cfg
hostName obrUrl
conf/org.apache.ace.discovery.property.cfg
serverURL
conf/org.apache.ace.deployment.provider.repositorybased.cfg
url
conf/org.apache.ace.configurator.useradmin.task.UpdateUserAdminTask.cfg
repositoryLocation
conf/org.apache.ace.client.automation.cfg
hostName
conf/org.apache.ace.activation.matcher.cfg
repositoryURL

- 1,076
- 2
- 16
- 33
-
@vinod: Could you explain which files need which changes? This might help future readers solve the problem faster. – Björn Pollex Sep 09 '12 at 18:54
-
@BjörnPollex- Updated the answer with the details of properties – Vinod Oct 04 '12 at 06:12
-
1The current "trunk" version has simplified this a lot. We have a single property now that you can set. This property is used as a variable in the configurations mentioned above. – Marcel Offermans Mar 08 '13 at 11:21
In current release (1.0.0) you can achieve what you were initially trying by removing following lines from laucher.properties that resides inside server(-allinone).jar
org.apache.ace.server.port=8080
org.osgi.service.http.port=8080

- 355
- 3
- 9
With 1.0.0 I was not able to pass in parameters via -D (which were commented out previously). What worked for me was setting port numbers in server-allinone.jar/launcher.properties.

- 31
- 3
With Ace 1.0, we used command line properties to change the port (to 8083 in our case):
java -Dorg.apache.ace.server.port=8083 -Dorg.osgi.service.http.port=8083 -jar server-allinone.jar
This did not work any more with Ace 2.0.1, ie we could change the port but authentication would not work. I identified the properties to be changed in launcher.properties but set them on the command line instead of changing launcher.properties. This keeps from having to recreate the jar. The command line I use is:
java -Dorg.apache.ace.server=localhost:8083 -Dorg.osgi.service.http.port=8083 -Dorg.apache.ace.obr=localhost:8083 -jar server-allinone.jar