Configuring Tomcat to Work With IIS

3
Configuring Tomcat to work with IIS 5.0 Using Windows 2000, IIS 5.0, and Tomcat 4.1.24 This is a listing of what to do with no explanation of why. These steps worked for me installing on two dissimilar boxes. If you have any questions, I’m probably not the one to ask because I don’t really understand the details of the connector. 1. Install IIS. Make sure it’s working. 2. Install Tomcat. Make sure it’s working on port 8080. Don’t change anything!  3. Download isapi_redirect.dll from the Jakarta site. I found it at: http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/bin/win32/i386/isapi_redirect.zip . 4. Put isapi_redirect.dll in %CATALINA_HOME%/bin. 5. In %CATALINA_HOME%/conf/server.x ml, uncomment the line: <!-- <Connector className="org.apache.ajp.tomcat4.Ajp13Connector" port="8009" minProcessors="5" maxProcessors="75" acceptCount ="10" debug="0"/> --> 6. If any other connector on port 8 009 is uncommented comment it out. 7. In conf/server.xml just under the top-level <server …> node, add the node:  <Listener className="org.apache.ajp.tomcat4.config.IISConfig" /> 8. If Tomcat is running, shut it down. 9. Start Tomcat. 10. Delete the listener line from %CATALINA_HOME%/conf/server.x ml. 11. I put all of my IIS files in %CATALINA_HOME%/iis. The example here does not show that but to do that you need to: a. Copy workers.properties, uriworkermap.properties, and isapi_redirect.dll to %CATALINA_HOME%/iis. b. Edit %CATALINA_HOME%/conf/auto/iis_redirect.r eg to the new file location. c. Set %CATALINA_HOME%/iis as the virtual directory for jakarta. d. Select %CATALINA_HOME%/iis/ isapi_redirect.dll as the filter. 12. Run %CATALINA_HOME%/conf/auto/iis_redirect.reg. 13. Create the file %CATALINA_HOME%/conf/jk/workers.properties file and in it type: workers.java_home=C:\java\j2sdk1.4 workers.tomcat_home="C:\Program Files\Apache Group\Tomcat 4.1" ps=\ worker.list=myworker

Transcript of Configuring Tomcat to Work With IIS

8/14/2019 Configuring Tomcat to Work With IIS

http://slidepdf.com/reader/full/configuring-tomcat-to-work-with-iis 1/3

Configuring Tomcat to work with IIS 5.0

Using Windows 2000, IIS 5.0, and Tomcat 4.1.24

This is a listing of what to do with no explanation of why. These steps worked for me installing on two dissimilar boxes. If

you have any questions, I’m probably not the one to ask because I don’t really understand the details of the connector. 

1.  Install IIS. Make sure it’s working. 

2.  Install Tomcat. Make sure it’s working on port 8080. Don’t change anything! 

3.  Download isapi_redirect.dll from the Jakarta site. I found it at:

http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/bin/win32/i386/isapi_redirect.zip. 

4.  Put isapi_redirect.dll in %CATALINA_HOME%/bin.

5.  In %CATALINA_HOME%/conf/server.xml, uncomment the line:

<!--

<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"

port="8009" minProcessors="5" maxProcessors="75"

acceptCount="10" debug="0"/>

-->

6.  If any other connector on port 8009 is uncommented – comment it out.

7.  In conf/server.xml just under the top-level <server …> node, add the node: 

<Listener className="org.apache.ajp.tomcat4.config.IISConfig" />

8.  If Tomcat is running, shut it down.

9.  Start Tomcat.

10. Delete the listener line from %CATALINA_HOME%/conf/server.xml.

11.  I put all of my IIS files in %CATALINA_HOME%/iis. The example here does not show that but to do that you need

to:

a.  Copy workers.properties, uriworkermap.properties, and isapi_redirect.dll to %CATALINA_HOME%/iis.

b.  Edit %CATALINA_HOME%/conf/auto/iis_redirect.reg to the new file location.

c. 

Set %CATALINA_HOME%/iis as the virtual directory for jakarta.

d.  Select %CATALINA_HOME%/iis/ isapi_redirect.dll as the filter.

12. Run %CATALINA_HOME%/conf/auto/iis_redirect.reg.

13. Create the file %CATALINA_HOME%/conf/jk/workers.properties file and in it type:

workers.java_home=C:\java\j2sdk1.4

workers.tomcat_home="C:\Program Files\Apache Group\Tomcat 4.1"

ps=\

worker.list=myworker

8/14/2019 Configuring Tomcat to Work With IIS

http://slidepdf.com/reader/full/configuring-tomcat-to-work-with-iis 2/3

8/14/2019 Configuring Tomcat to Work With IIS

http://slidepdf.com/reader/full/configuring-tomcat-to-work-with-iis 3/3

 

17. Uncheck Run Scripts and check Execute and press Next and then Finish.

18.  In IIS Manager, right click on the Default Web Site, Select Properties, then select the ISAPI Filters tab. Click the

Add button.

19. Fill out the dialog box with jakarta and the location of isapi_redirect.dll.

20. Reboot your computer. (Yes shutting down and restarting IIS and Tomcat should be sufficient – but sometimes it

isn’t.) 

21. Start IIS.

22. Start Tomcat (this step is easy to forget).

23. Go to http://localhost/examples/servlets/index.html. It should be the tomcat servlet examples page.

24.  If this doesn’t work, buy the book Professional Apache Tomcat and read chapter 14.