Windows2003 integrated IIS6 and Tomcat5

  First start with my system, Windows 2003 Server Chinese version IIS6 + + Tomcat5.0.14, JDK 1.4.2 install directory is C: \ JDK, Tomcat install directory is C: \ Tomcat, and the environment variable JAVA_HOME TOMCAT_HOME have set up good and at their respective installation directory.    (Note that all the documents involved in the next tomcat path to please amend their own path for their own Tomcat) 

  Tomcat5 installation and IIS6 I do not say, a lot of on-line documents, on the assumption that at this time we have installed a Tomcat5 and IIS6 and can operate independently, the two sites are at the default C: \ web directory. 

  Now we have to do is to http://apache.linuxforum.net/dist/jakarta/tomcat-connectors/jk2/binaries/win32/jakarta-tomcat-connectors-jk2.0.2-win32-IIS.zip to download JK2, from the IIS and Tomcat JK2 responsible for the communication, isapi_redirector2.dll get untied, I put it in the C: \ tomcat \ iis under (directory casually). 

  Next Tomcat installation directory in the conf directory to build a workers2.properties file, copy the following into this NEE preservation.    =".." Attention of the file path should use the "/" Oh! 

  [Shm] 
  File = c: / Tomcat/logs/jk2.log 
  Size = 1048576 
  # Practical use at all the localhost 8009 and replaced by your own IP and port 

  [Channel.socket: localhost: 8009] 
  Port = 8009 
  Host = localhost 

  # Define the worker 
  [Ajp13: localhost: 8009] 
  Channel = channel.socket: localhost: 8009 

  # Uri mapping 
  [Uri: / *. jsp] 
  [Uri: / web / *] 
  = Ajp13 worker: localhost: 8009 

  # Define the worker 
  [Status: status] 

  # Uri mapping 
  [Uri: / jkstatus / *] 
  = Worker status: status 
  After jk2.properties edit documents, which confirm whether there is such a: 

  Request.tomcatAuthentication = false 
  Next to edit the registry directly to build a iis.reg documents, the following paragraph and then double-click on the preservation of residences into iis.reg the information into the registry.    (Note to the Tomcat path into the path of your Tomcat) 

  Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE \ SOFTWARE \ Apache Software Foundation \ Jakarta Isapi Redirector \ 2.0] 
  "ServerRoot" = "c: \ \ Tomcat" 
  "ExtensionUri" = "/ jakarta/isapi_redirector2.dll" 
  "WorkersFile" = "c: \ \ Tomcat \ \ conf \ \ workers2.properties" 
  "LogLevel" = "INFO" 
  Then open the "My Computer -> Control Panel -> Management Tools -> Internet Information Services Management," and inside select "Web site" in the default Web site (the default Web site, I assume at the C: \ web), in its last point Right-election "attributes" in the pop-up box on page select "ISAPI filter," points "add", the name filters fill jakarta, the executable file in your isapi_redirector2.dll fill the absolute path.    "OK" after the point of "OK" Close attribute page.    Again in the "default site" on the right button and select "New" -> "virtual directory", alias fill jakarta, the next step, the path chosen your isapi_redirector2.dll storage directory, my C: \ tomcat \ iis, Next, remember that the authority of the "executive" that the check, well, complete. 

  If you are using an IIS5 so, we can conclude here, but not IIS6 End to. 

  "Internet Information Services Manager," "Web sites" in the "Web services expansion" right on point choose "Add a new Web service to be extended," the pop-up box filled Tomcat extension (in fact, do not matter), " requested documents "choose" Add "and then find your isapi_redirector2.dll after" determine. "    "Settings allow for the expansion of the state"打上勾determined. 

  Well, the end configuration.    Now we start Tomcat5 and net start w3svc start IIS6.    Http://localhost:8080/hello.jsp type (I of this paper is on the c: \ web under) and see us!    Http://localhost/hello.jsp then see if the results of the implementation of both the same, congratulate you, the successful integration! 

  But perhaps this is not enough, then you confirm the following points: 

  1. Your "Internet Information Services Manager" -> "Site" -> "default site" -> "attributes" -> "ISAPI filter" in jakarta whether the upward green arrow?    If it is red, check before you do have fewer configuration or wrong and what re-configured again 

  2. Confirm your Tomcat installation directory under the common \ lib directory tools.jar whether there is a document (Tomcat5 seems to be some, but is not Tomcat4, online documentation rarely mentioned the matter, which I have repeatedly allocation failure), if not from the JDK lib a copy of the past. 

  3.IIS directory at the best and Tomcat at the same directory, or will happen images and other resources could not find documentation.    (This does not affect the implementation, huh!) 

  4. English document also referred to IIS6 should be set to IIS5 isolation mode "Internet Information Services Manager" -> "Site" -> "attributes" -> "service" and "isolation mode of operation to IIS5.0 WWW service "打上勾.    However, I can not check normal use, if you can be configured unsuccessful try this. 

  Is not enough?    Good, we are relentless, open the case, remove hard drive, thrown to the ground, I hit, hit, hit!    I dare you to look at the top (to open a joke, but before I do configuration after many failures some frustration and regret) 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • DotNetKicks
  • DZone
  • Netvouz
  • Propeller

Recommend Articles

Comments

Leave a Reply