A few points to note during actual operation:
\ in the reg file cannot be changed to , otherwise it will not be imported into the registry.
The configuration can also be successful under iis6.0 and tomcat4.1. Port 9003 is actually the default port (even if it is changed to 8080, the result is wrong)
.....Configuration is a painful process, but fortunately I found the following article:
Integrate Tomcat5 and IIS5 and open jsp normally (absolutely detailed operation)
Preface: I have read N documents before and followed the instructions in the configuration, but never succeeded. Today I finally succeeded! ! ! When I go back and look at those documents, many of them are just Ctrl+C and Ctrl+v (and the source of the original text is not explained, so I can’t even ask anyone). The key operations are always unclear, and even after the configuration is completed, I still can't open the jsp page, some of which I haven't actually operated... Sigh...
Yesterday, because of a question from a wealthy friend (who said I am greedy for points, 555), I went there again After looking for information, I found that the configuration was finally successful yesterday afternoon.
Several issues that need to be explained: The operating system is win2000pro, Jbilder8 has been installed, and environment variables such as JAVA_HOME have never been set. Several files that need to be used in the article have download links at the end of the article. I integrated IIS5+Tomcat5.0.7, but It is estimated that IIS6 and tomcat4 should also be able to do it. Sorry, my win2003 has been patched, and the Daemon virtual optical drive failed and the ISO cannot be recognized. IIS6 is also broken, so there is no way to test it. Please allow me to be depressed for a while.
Okay, let’s start with my specific steps:
1. Install tomcat5.0.7.
Run jakarta-tomcat-5.0.7.exe, do not use normal in the installation mode, but select full (this will install tomcat as a win2000 service and also have tomcat source code), and then follow the prompts. My taomcat is installed under C:Program FilesApache Software FoundationTomcat 5.0.7.
2. Set the environment variable tomcat_home. On the desktop, "My Computer" -> right click -> "Properties" -> "Advanced" -> "Environment Variables" -> "System Variables" -> New -> Variable name: tomcat_home, variable value: C: Program FilesApache Software FoundationTomcat 5.0.7. Click "OK" to save.
3. Create a new "connector" folder under C:Program FilesApache Software FoundationTomcat 5.0.7conf, and then copy isapi_redirector2.dll to C:Program FilesApache Software FoundationTomcat 5.0.7conf below the connector.
4. Create workers2.properties under C:Program FilesApache Software FoundationTomcat 5.0.7conf (you can use workers2.properties in my attachment. Please modify the first line of the file before using it and replace "C: /Program Files/Apache Software Foundation/Tomcat 5.0.7/logs/jk2.log" to the path you need. When copying the path in the address bar, please note that it is "/" instead of "", which is expressed like windows. paths are different).
5. Create jk2.properties under C:Program FilesApache Software FoundationTomcat 5.0.7conf (use jk2.properties directly in my attachment).
6. Import the registry file isapi_redirect.2.0.reg (double-click the file and click OK). Please modify the registry file before importing, and change the serverRoot and workersFile to "C:\Program Files\Apache Software Foundation\ Tomcat 5.0.7" with your tomcat installation path.
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.7confconnector isapi_redirector2.dll. Click "OK" to save.
8. Next, right-click on "Default Web Site" -> New -> Virtual Directory -> Next -> Fill in the alias: jakarta, then click Next -> Directory selection: C:Program FilesApache Software Foundation Tomcat 5.0.7confconnector, then click Next->Tick "Execute (such as ISAPI application or CGI)", click Next, and then click "Finish".
9. Restart the "Default Web Site". Then right-click on "Default Web Site" -> "Properties" -> "ISAPI Filter". If the arrow in front of "jakarta" is green, it indicates that the configuration has been successful.
If the arrow is red, then please check the entire configuration process to see if there is anything wrong (basically, except for the parts involving the tomcat installation directory that need to be modified, there is nothing else that needs to be modified).
(You can also refer to http://www.reynir.net/tomcat/tomcat_IIS_service_jk2.html . I successfully configured the above steps by following its instructions and adding some minor modifications.)
At this time, there are still some small problems in accessing jsp normally.
10. Set the environment variable tomcat_home.
On the desktop, "My Computer"->right-click->"Properties"->"Advanced"->"Environment Variables"->"System Variables"->New->Variable name: JAVA_HOME, variable value: D: JBuilder8jdk1.4. Click "OK" to save.
11. Copy the tools.jar in the D:JBuilder8jdk1.4lib directory to the commonlib directory of tomcat (C:Program FilesApache Software FoundationTomcat 5.0.7commonlib (Down), restart Tomcat, and then restart IIS.
12. Now open http://localhost/index.jsp (note: not http://localhost/ ), you should be able to see the tomcat page.
But did you see it? ? ? The image is not displayed properly, please modify it later.
13. Start menu->Settings->Control Panel->Administrative 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", confirm, then add "index.html", confirm (because this is the default start page of tomcat). Go to the "Home Directory" and "Local Path" columns and select "C:Program FilesApache Software FoundationTomcat 5.0.7webappsROOT".
http://www.downcodes.com/
14. Restart IIS and open http://localhost/ . Compare it with opening http://localhost:8080/, right? ? ? You're done! ! !
Don't be busy, open http://localhost/jsp-examples/ and see if it can't be opened? ? ? At this time, you also need to create a new virtual directory jsp-examples in IIS. The local path is: C:Program FilesApache Software FoundationTomcat 5.0.7webappsjsp-examples (look at index.html in the sub-folder, Do you know why "index.html" is added in front? )?
15. Restart IIS. Can you open http://localhost/jsp-examples/jsp2/simpletag/hello.jsp ? ? ?
To throw bricks, please http://expert.csdn.net/Message_Board/Send.asp?sendto=wellsoon
(What. You are not a CSDN user, please log in first, and don’t have too many bricks, I will build a bungalow. )
PS: The attachment has been uploaded, which contains workers2.properties, jk2.properties, isapi_redirector2.dll, isapi_redirect.2.0.reg that need to be used.
The attachment is at http://www.google.com/ (What a cute dog)
Monopoly Forum http://www.delphibbs.com/ (The first technical forum I went to, I learned more than just technology)
CSDN Watering Paradise ( http://expert.csdn.net/Expert/ForumList.asp?typenum=1&Roomid=1404 ) (This is how the first star in CSDN was made)