wiki:ChangingPorts

Changing Ports

If you already have tomcat, or another application using port 8080, 8443 or 8005 you will need to configure Address Book Server to use a different port.

/usr/share/addressBookServerEnterpriseEdition/apache-tomcat-6.0.24/

The server.xml file in the conf folder contains the server port configuration. Scroll down to the section which specifies the port number shown below and change it. In the example below the port has been changed from 8080 to 18080. The default port used is 8080. The shutdown port (default 8005) can also be customised.

conf/server.xml

...
<Server port="18005" shutdown="SHUTDOWN">
...
<Connector port="18080" protocol="HTTP/1.1" 
               connectionTimeout="20000" 
               redirectPort="18443" URIEncoding="UTF-8" />
...
<!--Optionally you should also change the SSL port if enabled-->
<Connector port="18443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               keystoreFile="${catalina.home}/ssl/keystore" keystorePass="change
               clientAuth="false" sslProtocol="TLS" />
...

Alternatively you can download the example of a modified server.xml file is attached below. After download this file please replace the default server.xml file with the one downloaded.

After changing the server.xml file restart tomcat using the instruction : Restarting Address Book Server

Once tomcat has been restarted using the new configuration you should be able to access it via Safari. It should be discoverable via Bonjour and the bookmark should have been updated. Once you verified that the new configuration has been accepted, you can configure your Address Book Client to use the new port.