Integrating Apache Tomcat using mod_jk for windows xp

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

1 comments

Comments 1 - 1 of 1 previous next Post a comment

  • + suire suire 6 days ago
    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
Post a comment
Embed Video
Edit your comment Cancel

Favorites, Groups & Events

Integrating Apache Tomcat using mod_jk for windows xp - Presentation Transcript

  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) 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_DRIVE\\Apache Software Foundation\\modules”
  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_DRIVE\\Tomcat 6.0\\conf\\jk” 6) Configure Apache a. Open “httpd.conf” from “YOUR_DRIVE\\Apache Software Foundation\\conf” b. Add the following code at the end of the file “httpd.conf” LoadModule jk_module\"YOUR_DRIVE/ApacheSoftwareFoundation/modules/mod_jk.so\" Include \"YOUR_DRIVE/Tomcat 6.0/conf/auto/mod_jk.conf\"
  4. 7) Configure Tomcat a. Open “server.xml” from “YOUR_DRIVE\\Tomcat 6.0\\conf” b. Add the following inside “<Server>” element <Listener className = \"org.apache.jk.config.ApacheConfig\" workersConfig=\"conf/workers.properties\" mod_Jk=\"YOUR_DRIVE/Apache Software Foundation/modules/mod_jk.so\" jkLog=\"logs/mod_jk.log\" jkDebug=\"info\" noRoot=\"false\"/> c. Add the following inside “<Engine>” element <Listener className = \"org.apache.jk.config.ApacheConfig\" workersConfig=\"conf/workers.properties\" mod_Jk=\"YOUR_DRIVE/Apache Software Foundation/modules/mod_jk.so\" jkLog=\"logs/mod_jk.log\" jkDebug=\"info\" noRoot=\"false\"/> 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. 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.
SlideShare Zeitgeist 2009

+ topsealrockerstopsealrockers Nominate

custom

2265 views, 0 favs, 0 embeds more stats

More info about this document

© All Rights Reserved

Go to text version

  • Total Views 2265
    • 2265 on SlideShare
    • 0 from embeds
  • Comments 1
  • Favorites 0
  • Downloads 64
Most viewed embeds

more

All embeds

less

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel
File a copyright complaint
Having problems? Go to our helpdesk?

Categories