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.
How to change Port of Apache ACE?
1k views Asked by Ayushi AtThere are 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
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
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