How to work with IIS server and Tomcat

Source: Internet
Author: User

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)
 

 
 
  1. Log_file specifies the path of your log file, for example, "d: \ tomcat \ isapi. log ".
  2. Log_level "debug", "inform", "error", "emerg" 4.
  3. Worker_file workers. properties file path, for example, \ tomcat \ conf \ workers. properties"
  4. Name worker_mount_fileand
  5. 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.