Existing Tomcat server on port 80 gives error: BAD REQUEST after installing/starting IIS on another Port

This is an issue which has caused a lot of trouble to me. My understanding was that I can run Apache & IIS on the same server provided, they are occupying different ports. Though this statement is true, but you should make sure that Apache should be installed on any other port except 80 if you intended to run both Tomcat & IIS on the same server.

The problem is that though your .NET website will run on the port assigned to it, the HTTP service, which is used by the IIS to listen any incoming request, runs on port 80. Now this service blocks the Apache Tomcat server (if it’s also running on port 80)

As of now the only way that crosses my mind to run both the servers on the same machine is not to assign Tomcat server to port 80. Use any other port except 80.

*********************************************************************************
Following are the steps taken to set up a ASP.NET site on the IIS where TOMCAT has occupied the port 80. In case it hampers the existing TOMCAT server then look at the 2nd segment of this document.

1. If the HTTP SSL service is present & stopped then, start the HTTP SSL service (if it’s not running)
If you get the error 1068, Filed to Load the Dependency, then it means the HTTP service is down. To restart it type regedit in run. Then traverse to LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/HTTP. SET Start = 2; Refer: http://support.microsoft.com/kb/103000.
Then restart the server.
Now you will see HTTP SSL & World Wide Web Publishing services are on.

2. Start the World Wide Web Publishing service (if not on)

3. Inside IIS, select Web Service Extensions and allow ASP.NET v4.0 (Considering the sites target framework is 4.0 (for IIS 6.0 only. For IIS 7.0, select the ASP.NET version from the site App Pool.))

*********************************************************************************

If the localhost (TOMCAT) is throwing the BAD Request error for the TOMCAT server running on port 80, then do the following:

1. Stop the IIS site.

2. Stop the World Wide Web Publishing service

3. If you’re still getting the error then,
type regedit in run. Then traverse to LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/HTTP.
SET Start = 4; Refer: http://support.microsoft.com/kb/103000. Then restart the server.

*********************************************************************************

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s