Integrating Apache Tomcat using mod_jk for windows xp

14,947 views
14,613 views

Published on

Published in: Self Improvement
1 Comment
2 Likes
Statistics
Notes
  • hi, your article was great and precise. got this working. if you can also write about how to send specific urls to tomcat and serve the others from apache, that would be useful. Also if you have a rss please add it to the nosle rss index at http://nosle.com
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
14,947
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
561
Comments
1
Likes
2
Embeds 0
No embeds

No notes for slide

Integrating Apache Tomcat using mod_jk for windows xp

  1. 1. Configuration / Integrating Tomcat and Apache Web server on Windows using mod_jk Version used – 1. Apache 2.2.4-win32-x86-no ssl 2. Tomcat-6.0.10 3. mod_jk-1.2.27-httpd-2.2.10.so 1) Installing Apache – a. Download “Apache 2.2.4-win32-x86-no ssl.msi” b. Just follow the wizard and click next button until finish c. Run the apache at the system tray (usually it autorun) d. Type http://localhost/ in browser i. You will get “it works!” ii. Ref:
  2. 2. 2) Installing Tomcat – a. Download “apache-tomcat-6.0.10.exe” b. Just follow the wizard and click next button until finish c. Make sure the port number is 8080 (you can change this later) d. Run the Tomcat at the system tray (usually it autorun) e. Type http://localhost:8080/ in browser i. You will get the Apache Tomcat web page ii. Ref: 3) Stop both servers now 4) Download jk connector “mod_jk-1.2.27-httpd-2.2.10.so” a. Rename it to “mod_jk.so” b. Copy “mod_jk.so” and paste in here “YOUR_DRIVEApache Software Foundationmodules”
  3. 3. 5) Download “workers.properties” a. Open and add the following code at the end of the file “workers.properties” # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 b. Copy and paste it in here “YOUR_DRIVETomcat 6.0confjk” 6) Configure Apache a. Open “httpd.conf” from “YOUR_DRIVEApache Software Foundationconf” b. Add the following code at the end of the file “httpd.conf” LoadModule jk_modulequot;YOUR_DRIVE/ApacheSoftwareFoundation/modules/mod_jk.soquot; Include quot;YOUR_DRIVE/Tomcat 6.0/conf/auto/mod_jk.confquot;
  4. 4. 7) Configure Tomcat a. Open “server.xml” from “YOUR_DRIVETomcat 6.0conf” b. Add the following inside “<Server>” element <Listener className = quot;org.apache.jk.config.ApacheConfigquot; workersConfig=quot;conf/workers.propertiesquot; mod_Jk=quot;YOUR_DRIVE/Apache Software Foundation/modules/mod_jk.soquot; jkLog=quot;logs/mod_jk.logquot; jkDebug=quot;infoquot; noRoot=quot;falsequot;/> c. Add the following inside “<Engine>” element <Listener className = quot;org.apache.jk.config.ApacheConfigquot; workersConfig=quot;conf/workers.propertiesquot; mod_Jk=quot;YOUR_DRIVE/Apache Software Foundation/modules/mod_jk.soquot; jkLog=quot;logs/mod_jk.logquot; jkDebug=quot;infoquot; noRoot=quot;falsequot;/> 8) Start Tomcat 9) Start Apache 10) If the mod_jk appear under the Apache Service Monitor, that’s mean the mod_jk module is loaded.
  5. 5. 11) Now type “http://localhost/” it will directly lead you to apache tomcat web page. 12) That’s prove that Apache and Tomcat had integrated using mod_jk.

×