I assume you are talking about tomcat ?
The file $TOMCAT_HOME/conf/server.xml defines the listening ports. Look for a line containing
You will need to restart tomcat
BUT you need to make sure that Apache is not started otherwise you will get errors indicating that the port is already in use.
Cheers
Dave