In Win2000 Professional + IIS server 5.0Win2000) + Tomcat 3.1 binary release. in this environment, Tomcat 3.1 is a compiled version. In this version, the IIS server and NT Service are not configured, however, there is a Detailed Help File in Tocmcat 3.2 source. Based on these help files, you can smoothly insert Tomcat as a plug-in to the IIS server.
How to insert Tomcat into the IIS server so that the IIS server and Tomcat can work together. Perform the following steps:
1. Create a new key in the Windows Registry: "HKEY_LOCAL_MACHINE \ SOFTWARE \ Apache Software Foundation \ Jakarta Isapi Redire ctor \ 1.0"
2. Create the following entry and string key value in this key. Value: extension_uri "/jakarta/isapi_redirect.dll"
Do not change)
- Log_file specifies the path of your log file, for example, "d: \ tomcat \ isapi. log ".
- Log_level "debug", "inform", "error", "emerg" 4.
- Worker_file workers. properties file path, for example, \ tomcat \ conf \ workers. properties"
- Name worker_mount_fileand
- The URL of the uriworkermap. properties file, for example, "d: \ tomcat \ conf \ uriworkermap. properties"
In fact, xxxxx is included in 3.2. reg. auto file, modify the content in this file according to your actual situation, and change the file name to xxxx. reg, and double-click the file)
3. Open the IIS manager and create a virtual directory jakarta in the "Default WEB site" to direct its path to the directory where isapi_redirect.dll is located.
This dll may not exist in the 3.1 bin. You can copy one from the bin \ iis \ nt4 \ i386 directory of 3.2. The virtual directory should be set to "executable ". )
4. Use the IIS manager to set isapi_redirect.dll to the ISAPI filter of "Default WEB site". The name can start.
5. Restart the IIS server. Check that a green up arrow is marked before the added ISAPI filter and restart Tomcat to execute tomcat \ bin \ shutdown. bat can disable Tomcat) at this time, IIS should be able to process *. jsp file.
In Tomcat settings, the default Root is tomcat \ webapps \ ROOT, so you can place a jsp file such as index in this directory. jsp), and then access http: // localhost/index. jsp. Check the effect.
If the IIS server still cannot process jsp files according to the above method, you can try to add an "Application ing" in IIS Manager> default WEB site Properties> main directory> configuration ", set *. the jsp file is mapped to isapi_redirect.dll.