Tuesday, October 5, 2010

TOMCAT and IIS integration



1, the installation tomcat5.0.7.
Running jakarta-tomcat-5.0.7.exe, installation mode not normal, but select full (this will install into win2000 tomcat services, but also the tomcat source code), then follow the prompts. My taomcat installed in C: Program FilesApache Software FoundationTomcat 5.0.7 under.

2, set the environment variable tomcat_home. On the desktop, "My Computer" -> right click -> "Properties" -> "Advanced" -> "Environment Variables" -> "System Variables" -> New -> variable names: tomcat_home, variable value: C: Program FilesApache Software FoundationTomcat 5.0.7. Point "OK" to save.

3, in C: Program FilesApache Software FoundationTomcat 5.0.7conf under the new "connector" folder, and then copy the isapi_redirector2.dll to C: Program FilesApache Software FoundationTomcat 5.0.7confconnector below.

4, create workers2.properties to C: Program FilesApache Software FoundationTomcat 5.0.7conf under (you can use my attachments workers2.properties, please modify the file before using the first line to "C: / Program Files / Apache Software Foundation / Tomcat 5.0.7/logs/jk2.log "change the path you need, copy the address bar, please note that the path is" / "instead of" "Oh, that's the path with the windows not the same).

5, create jk2.properties to C: Program FilesApache Software FoundationTomcat 5.0.7conf under the (direct use my accessories in the jk2.properties).

6, to import the registry file isapi_redirect.2.0.reg (double-click the file, and then identified like a) modify the registry file before you import, the serverRoot and workersFile the "C: \ Program Files \ Apache Software Foundation \ Tomcat 5.0. 7 "replace the path of your tomcat installation.

7, Start Menu -> Settings -> Control Panel -> Administrative Tools -> Internet Services Manager, and then find your site (my computer name is lnboy, "Default Web Site"). Right click -> "Properties" -> "ISAPI Filter" -> "Add" -> Filter Name: jakarta, executable file: C: Program FilesApache Software FoundationTomcat 5.0.7confconnectorisapi_redirector2.dll. Point "OK" to save.

8, the next in the "Default Web Site" right click -> New -> Virtual Directory -> Next -> alias fill: jakarta, and then click Next -> Directory selected as: C: Program FilesApache Software FoundationTomcat 5.0.7confconnector, and then click Next -> "Execute (such as ISAPI applications or CGI)" a check mark, and then click Next, and then point "complete."

9, restart the "Default Web Site." Then in the "Default Web Site" right click -> "Properties" -> "ISAPI Filter", if the "jakarta" in front of the arrow is green, then that configuration has been successful.

If the arrow is red, then please check the configuration process, see if there are wrong places, (basically, apart from involving the local tomcat installation directory need to modify, the other where there is no need to modify).

(We also can refer to http://www.reynir.net/tomcat/tomcat_IIS_service_jk2.html, the above steps, I was in accordance with its instructions with some minor changes after the successful configuration.)


To access jsp normal at this time there are still some minor problems

10, set the environment variable tomcat_home.
On the desktop, "My Computer" -> right click -> "Properties" -> "Advanced" -> "Environment Variables" -> "System Variables" -> New -> variable name: J *** A_HOME, variable value: D: JBuilder8jdk1.4. Point "OK" to save.

11, the D: JBuilder8jdk1.4lib directory to copy tools.jar to the commonlib tomcat directory (C: Program FilesApache Software FoundationTomcat 5.0.7commonlib below), restart Tomcat, and then restart IIS.

12, then open the http://localhost/index.jsp (note: not the http://localhost/), should be able to see the tomcat page.
But see? ? ? Image shows abnormal, then further modified.

13, Start Menu -> Settings -> Control Panel -> Administrative Tools -> Internet Services Manager, and then find your site (my computer name is lnboy, "Default Web Site"). Right click -> "Properties" -> "Document" -> Add, enter the "index.jsp", OK, and then add "index.html", OK (because it is a tomcat with the default start page). Then "Home Directory", "Local path" field, select "C: Program FilesApache Software FoundationTomcat 5.0.7webappsROOT".

14, restart IIS, then open http://localhost/, compare, and open http://localhost:8080/, right? ? ? 're Done too! ! !
Haste to open the http://localhost/jsp-examples/ see, is not not open ah? ? ? At this time also need to create a new IIS virtual directory jsp-examples, the local path: C: Program FilesApache Software FoundationTomcat 5.0.7webappsjsp-examples (see sub-folder under the index.html, know why to add in front of "index . html "a bar ???)銆?br />
15, restart IIS, you can open http://localhost/jsp-examples/jsp2/simpletag/hello.jsp now? ? ?







相关链接:



Nine ways to recruit good STAFF



Top Install And Setup



XviD to WMV



Glory years of wind and rain



FLV to SWF



"Mount & Blade" combat experience



Expert Games And Entertainment



The Production of a three-dimensional characters



Borrow money to make money doing BUSINESS



3GPP to WMV



Focus DreamWeaver MX 2004



Mobile Phones For Kids



Masanobu CAT



No comments:

Post a Comment