Several questions that need to be explained: Operating system Win2000Pro, has installed JBilder8, never set up environment variables such as java_home, and several files in the article have downloaded connections at the end of the text, I integrate IIS5 Tomcat5.0.7, but It is estimated that IIS6, Tomcat4 should also be, sorry, my win2003 is hung because of the patch, and the daemon virtual light is driven, I can't recognize IS6, IIS6 is also broken, there is no way to test, please allow me to be depressed.
Ok, let's start my specific steps:
1. Install Tomcat5.0.7. Run Jakarta-Tomcat-5.0.7.exe, the installation mode does not need Normal, but to select FULL (which will install Tomcat into Win2000 service, and Tomcat source code), then follow the prompts. My Taomcat is installed under C: / Program Files / Apache Software Foundation / Tomcat 5.0.7.
2. Set the environment variable tomcat_home. On the desktop, "My Computer" -> Click -> "Properties" -> "Advanced" -> Environment Variables -> System Variables -> New -> Variable Name: Tomcat_Home, Variable Value: C: / Program Files / Apache Software Foundation / Tomcat 5.0.7. Click "OK" to save.
3. New "Connector" folder under C: / Program Files / Apache Software Foundation / Tomcat 5.0.7 / Conf, then copy ISAPI_Redirector2.dll to C: / Program Files / Apache Software Foundation / Tomcat 5.0.7 / Conf / CONNECTOR below.
4. Create Workers2.properties to C: / Program Files / Apache Software Foundation / Tomcat 5.0.7 / Conf (you can use workers2.properties in my attachment, please modify the first line of the file before use, "C: / Program files / apache software firmation / tomcat 5.0.7 / logs / jk2.log "Change to the path you need, please note when the path to the COPY address bar is" / "instead" / ", expressed with Windows The path is different).
5. Create JK2.Properties to C: / Program Files / Apache Software Foundation / Tomcat 5.0.7 / Conf (directly using JK2.Properties in my attachment).
6. Import the registry file isapi_redirect.2.0.reg (Double-click File, then OK is fine) Before importing, please modify the registry file, put ServerRoot and Workersfile "C: // Program Files // Apache Software Foundation // Tomcat 5.0.7 "Replace with your Tomcat installation path.
7. Start menu -> Settings -> Control Panel -> Administrative Tools -> Internet Service Manager, then find your site (my computer name is LNBOY, "Default Web Site"). Right click -> "Properties" -> "ISAPI Filter" -> Add "-> Filter Name: Jakarta, Executable: C: C: / Program Files / Apache Software Foundation / Tomcat 5.0.7 / Conf / Connector / ISAPI_Redirector2.dll. Click "OK" to save. 8. Next, in the "Default Web Site" right click -> New -> Virtual Directory -> Next -> Alias fill in: jakarta, then point the next step -> select the directory is: C: / Program Files / Apache Software Foundation / Tomcat 5.0.7 / conf /connector, then click Next -> "Execute (for example, ISAPI application or cgi)" a hook, click Next, then "Finish".
9. Restart the Default Web Site. Then right-click "Default Web Site" -> "Properties" -> "ISAPI Filter", if "Jakarta" arrow, the arrow is green, then the configuration has been successful.
If the arrow is red, please check the entire configuration process, see if there is a wrong place, (essentially except for changes in the place where the Tomcat installation directory needs to be modified).
(You can also refer to Tomcat / Tomcat_iis_service_jk2.html "> http://www.reynir.net/tomcat/tomcat_iis_service_jk2.html, the above steps, I am in accordance with its description plus some small modifications after configuring success.)
At this point, there should be some small problems to access JSP normally.
10. Set the environment variable tomcat_home. On the desktop, "My Computer" -> Click-> "Properties" -> "Advanced" -> Environment Variable "-> System Variables -> New -> Variable Name: Java_Home, Variable Value: D: / JBUILDER8 / JDK1.4. Click "OK" to save.
11. Tools.jar under the D: /JBuilder8/jdk1.4/lib directory to Tomcat's common / lib directory (C: / Program Files / Apache Software Foundation / Tomcat 5.0.7 / Common / LIB / Next, restart Tomcat and restart IIS.
12. Open http://localhost/index.jsp: Not http: // localhost /), you should see the Tomcat page. But have you seen it? ? ? The picture shows abnormal and then modifies.
13. Start menu -> Settings -> Control Panel -> Administrative Tools -> Internet Service Manager, then find your site (my computer name is LNBOY, "Default Web Site"). Right click -> "Properties" -> "Document" -> Add, enter "index.jsp", determine, add "index.html", determine (because this is the default start page of Tomcat). Go to the "Main Catalog", "Local Path" column, select "C: / Program Files / Apache Software Foundation / Tomcat 5.0.7 / WebApps / root". 14. Restart IIS, open http: // localhost /, compare, and open http: // localhost: 8080 / ? ? Dacheng is also good! ! ! Don't be busy, open http: // localhost / jsp-example / see, is it can't be opened? ? ? At this point, you will need to create a new virtual directory JSP-Examples in IIS, local paths: c: / program files / apache software Foundation / Tomcat 5.0.7 / WebApps / JSP-EXAMPLES (Look at INDEX.html under the subfolder, Know why you want to add "index.html" in front ???).
15. Restart IIS, you can open http: //localhost/jsp-examples/jsp2/simpletag/hello.jsp? ? ?
PS: Uploaded an attachment, there is a need for WORKERS2.PROPERTIES, JK2.PROPERTIES, and ISAPI_Redirector2.dll, isapi_redirect.2.0.reg.
Attachment in Tomcatconf.rar "> http://www.delphibbs.com/keylife/mcatconf.rar