Frank Charron
posted this on October 22, 2009 05:11 pm
After installing Contour Trial for Windows, if you are getting the "HTTP Status 404 - /contour/" in your browser and you've tried refreshing the browser, then very likely there is a conflict with the ports the Contour server is trying to use.
Steps to resolve:
1. Open Windows Command prompt and run the following command:
> netstat -oa
2. Look for the row where the Proto column is "TCP" and "Local Address" column ends in ":8080"
Example: TCP ANIMAL:8080 ANIMAL:0 LISTENING 1668
3. If you find a row that matches that pattern, then it means that port 8080 is already in use. Contour has been pre-configured to use this port
4. To find the next available port, add 1 to 8080 and keep adding 1 until you come up with a port not listed in the Local Address for TCP rows in the output from the netstat command. Example: 8081. Make a note of this port number which will be used in place of port 8080 in the Contour configuration.
5. Look for the row where the Proto column is "TCP" and "Local Address" column ends in ":8005"
Example: TCP ANIMAL:8005 ANIMAL:0 LISTENING 4120
6. If you find a row that matches that pattern, then it means that port 8005 is already in use. Contour has been pre-configured to use this port
7. To find the next available port, add 1 to 8005 and keep adding 1 until you come up with a port not listed in the Local Address for TCP rows in the output from the netstat command. Example: 8006. Make a note of this port number which will be used in place of port 8080 in the Contour configuration.
8. In WIndows Explorer, navigate to the location where you installed Contour (default is C:\Program Files\Contour)
9. Navigate into the folder named "apache_tomcat" and from there navigate to the folder named "conf".
10. Make a backup of the file "server.xml" to be safe (copy into a file named "server.xml.orig" for example).
11. Open the file "server.xml" in Notepad or your favorite text editor.
12. Find the following line:
<Connector URIEncoding="UTF-8" port="8080" maxHttpHeaderSize="8192"
and change 8080 to the available port you came up with in Step 3
Example:
<Connector URIEncoding="UTF-8" port="8081" maxHttpHeaderSize="8192"
13. Find the following line:
<Server port="8005" shutdown="SHUTDOWN">
and change 8005 to the available port you came up with in Step 7
Example:
<Server port="8006" shutdown="SHUTDOWN">
14.You're almost there. All you have to do now is start the Contour server. Under Windows Start > Control Panel > Administrative Tools, click on Services. Find the service named "Contour" and select with a right-mouse button click and then select Start.
15. Point your favorite browser (or click on the Shortcut to Contour Login and edit the URL) to:
http://localhost:[port you used instead of 8080]/contour/
Example:
http://localhost:8081/contour/
If you want, you can make a replace or modify the Shortcut to Contour Login to reflect the correct URL.