Integrate TOMCAT5 and IIS5 and normal open JSP

Source: Internet
Author: User
Tags filter copy iis modify variables tomcat
Iis|js Preface: Before also read n document, follow inside the description configuration, but always did not succeed, today finally succeeded!!! Come back and look at those documents, a lot of direct CTRL + V CTRL + + (also does not explain the source of the original, want to ask people can not), the key operation of the place is always ambiguous, and even if the configuration is over, also can not open JSP page, some have no actual operation on the ... Alas......

I went to look for the information, yesterday afternoon finally configuration succeeded.

Need to explain a few questions: Operating system Win2000pro, has installed Jbilder8, never set up java_home and other environment variables, the text needs to use a few files in the end of the text has a download connection, I integrated is iis5+ Tomcat5.0.7, but the estimated iis6,tomcat4 should also be able, sorry, my win2003 because of a patch, the result daemon virtual optical drive hanging, do not recognize the ISO, IIS6 also broken, there is no way to test, please allow me to be depressed first.

OK, let's start with my specific steps:


1. Install tomcat5.0.7.
Run Jakarta-tomcat-5.0.7.exe, install mode does not use normal, but select Full (this will install Tomcat as a Win2000 service, as well as Tomcat source code), and then follow the prompts. My taomcat is under C:Program filesapache Software foundationtomcat 5.0.7.

2. Set the environment variable tomcat_home. On the desktop, the "My Computer"-> point right-> "Properties"-> "Advanced"-> "Environment variables"-> "System variables"-> new-> variable name: tomcat_home, variable value: C:Program Filesapache Software foundationtomcat 5.0.7. Point "OK" to save.

3. Under C:Program filesapache Software foundationtomcat 5.0.7conf, create a new "connector" folder, and then copy 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 (You can use the workers2.properties in my attachment, please modify the first line of the file before use, "C:/Program Files/apache Software foundation/tomcat 5.0.7/ Logs/jk2.log "Change to the path you need, note that the path to the copy address bar is"/"instead of" "Oh, not the way Windows represents.

5. Create jk2.properties to C:Program filesapache Software foundationtomcat 5.0.7conf (direct use of jk2.properties in my attachment).

6. Import Registry File Isapi_redirect.2.0.reg (double-click the file, and then click OK) before importing please modify the registry file to ServerRoot and Workersfile "C:\Program Files\apache Software foundation\tomcat 5.0.7 "Replace with your Tomcat installation path.

7. Start Menu-> set-> Control Panel-> admin Tools->internet Service Manager, and then find your site (My Computer name is Lnboy, "default Web site"). Right-click-> "Properties"-> "ISAPI filter"-> "Add"-> Filter Name: Jakarta, executable: C:Program Filesapache Software 5.0.7confconnectorisapi_redirector2.dll. Point "OK" to save.

8. Next in the "Default Web site" point right-click-> new-> virtual directory-> next-> alias fill: Jakarta, then click Next-> directory selected as: C:Program filesapache Software Foundationtomcat 5.0.7confconnector, then click Next-> "execute (for example, ISAPI application or CGI)" To tick, click Next, and then click Finish.

9. Restart the default Web site. Then, at the default Web site point, right-click-> Property-> ISAPI filter, if the arrow in front of "Jakarta" is green, then the configuration has succeeded.

If the arrow is red, check the entire configuration process to see if there is a mistake (basically there is nothing to be changed except where the Tomcat's installation directory is needed).

(You can also refer to http://www.reynir.net/tomcat/tomcat_IIS_service_jk2.html, the above steps, I just follow its instructions plus a few small changes after the configuration succeeded.) )


There are a few minor problems with normal access to JSP at this time,

10. Set the environment variable tomcat_home.
On the desktop, the "My Computer"-> point right-> "Properties"-> "Advanced"-> "Environment variables"-> "System variables"-> new-> variable name: java_home, Variable value: d:jbuilder8jdk1.4. Point "OK" to save.

11. Copy the Tools.jar in the D:jbuilder8jdk1.4lib directory to the Commonlib directory of Tomcat (C:Program Filesapache Software 5.0.7COMMONLIB), restart Tomcat, and then restart IIS.

12. Open http://localhost/index.jsp At this point (note: not http://localhost/), you should see the Tomcat page.
But did you see it??? The picture does not appear normal, and then modify it.

13. Start Menu-> set-> Control Panel-> admin Tools->internet Service Manager, and then find your site (My Computer name is Lnboy, "default Web site"). Right-click-> "Properties"-> "Document"-> Add, enter "index.jsp", OK, add "index.html", OK (because this is Tomcat's default start Page). Then to the home directory, the Local path column, select C:Program filesapache Software foundationtomcat 5.0.7webappsROOT.

14. Restart IIS, at this time open http://localhost/, compare, and open http://localhost:8080/bar??? It's!!!.
Don't be busy, open http://localhost/jsp-examples/see, is not open ah??? You also need to create a new virtual directory Jsp-examples in IIS, with the local path: C:Program filesapache Software foundationtomcat 5.0.7webappsjsp-examples ( Look at the index.html under the secondary folder, you know why to add "index.html" in front of it??? )。

15. Restart IIS, can you open the http://localhost/jsp-examples/jsp2/simpletag/hello.jsp???


PS: Upload the attachment, there are need to use the workers2.properties,jk2.properties and Isapi_redirector2.dll,isapi_redirect.2.0.reg.

Attachment in Http://www.delphibbs.com/keylife/images/u88173/tomcatconf.rar

Final thanks: Google http://www.google.com/(good cute dog)



Related Article

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.