How iis5 and tomcat5 integrate with JK2 in Win32 Environment

Source: Internet
Author: User

This article assumes that iis5 and tomcat5are installed.
JK2:

Http://apache.linuxforum.net/dist/jakarta/tomcat-connectors/jk2/binaries/win32/jakarta-tomcat-connectors-jk2.0.4-win32-IIS.zip

It containsInstall4iis. jsGenerally, it is not easy to use. You need to manually configure it..

1
SetJk2.propertiesAndWorkers2.propertiesPut two files$ {Tomcat_home}/Conf,

WhereJk2.propertiesIt doesn't matter if you comment out all the missing time.,Use the default downloaded content..(Yes.

Add the following line,Request. tomcatauthentication = false,I am not very clear about the specific role

Workers2.propertiesIt should be noted that there are at least three parts:

[SHM:]

Info = scoreboard. Required for reconfiguration and status with Multiprocess servers

File = E: "Program Files" Apache Software Foundation "Tomcat 5.0" Temp "jk2.shm

Size = 1048576

[Channel. Socket: localhost: 8009]

Info = ajp13 forwarding over socket

Tomcatid = localhost: 8009

# Map webapps to the Web server URI Space

[URI:/JSP-examples/*]

[URI:/Servlets-examples/*]

Part 1WindowsFile name path"/"Or"""It doesn't matter (not like some online saying)

The second part is as follows:JK2Port used8009Come to work

The third part isUriMap the table to useTomcatYou can add the path as needed.

2
DownloadIsapi_redirector2.dllThe file can be stored anywhere, but it is best$ {Tomcat_home}Create a directory. The directory name is only used in the following two places.

First, inIis5Create a virtual directory namedJakartaThis directory must be specified"Run"Permissions,This directory contains files.Isapi_redirector2.dllDirectory.

SecondWeb"ISAPIFilter"Tab, add an item, the name is random (suchTomcat). The executable file also pointsIsapi_redirector2.dll. (Figure omitted)

3
Create a registry import file manually, for exampleJk2.regAt least the following content must be included:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE "software" Apache Software Foundation "Jakarta ISAPI redirector" 2.0]

"Workersfile" = "E:" "Program Files" "Apache Software Foundation" "Tomcat 5.0" "conf" "workers2.properties"

"Extensionuri" = "/Jakarta/isapi_redirector2.dll"

"Loglevel" = "info"

"Serverroot" = "E:" "Program Files" "Apache Software Foundation" "Tomcat 5.0 """


OnlyWorkersfileAndServerrootThe key value needs to be changed. I use$ {Tomcat_home}Yes"E:" "Program Files" "Apache Software Foundation" "Tomcat 5.0 """

Double-click to import the registry. The role of these registry information isIsapi_redirector2.dllRead some initialization parameters.

4
RestartIis5,RestartTomcat5,It should be inIISOfWeb"ISAPIFilter"Tab to see the added project, and there is a green arrow in front, the priority is high. This is successful.

To sum up, you only needIsapi_redirector2.dllOne file, OtherJk2.properties,Workers2.properties,Jk2.regCan be created by yourself.

Test method:

OpenHTTP: /localhost: 8080/JSP-examples/, Should be able to access normally(PassTomcat5)

Delete the port numberHttp: // localhost/JSP-examples /,Normal access(PassIis5 ).

5
 If a problem occurs, check the following possibilities::

*Whether to write the letter incorrectly. For exampleJakartaWriteJarkata

* IISOfWeb"ISAPIFilter"If the project in the tab is green and the priority is high, it indicates it has been loaded. If not, try to restartWebService, sometimes the computer may need to be restarted

*Check System ParametersJava_homeAndTomcat_homeSet correctly

* Isapi_redirector2.dllWrite error messages to system applicationsProgramIn the log, this usually occurs because the RegistryJk2.regIncorrect settings,Initialization fails..

*Some machines may80,808 0, 8009These ports are already in use. You can close the programs in use, Or change the default port.(SetIIS and tomcatThe service is stopped first.Netstat-Command to see which ports are occupied)

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.