tag:blogger.com,1999:blog-9238405.post113077599799067645..comments2026-04-17T02:13:19.234-07:00Comments on Agile Testing: Configuring Apache 2 and Tomcat 5.5 with mod_jkGrig Gheorghiuhttp://www.blogger.com/profile/17863511617654196370noreply@blogger.comBlogger55125tag:blogger.com,1999:blog-9238405.post-37651951556484343732012-07-20T05:17:07.033-07:002012-07-20T05:17:07.033-07:00Great tutorial,
Its very use full tutorial for m...Great tutorial,<br /><br /> Its very use full tutorial for me thanks very much..Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9238405.post-86537045241360243402011-04-15T04:46:06.026-07:002011-04-15T04:46:06.026-07:00using apache2.2.17,mod_jk_1.2.30,tomcat5.5.27..
mo...using apache2.2.17,mod_jk_1.2.30,tomcat5.5.27..<br />mo norma LB working fine.... i want 2500 concuurent request to handle..What all i have to configure at apache and tomcat ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9238405.post-45078194025895214732010-12-25T09:25:10.030-08:002010-12-25T09:25:10.030-08:00Thank you..this worked like a dream..
but applica...Thank you..this worked like a dream..<br /><br />but applications seem to be accessible from tomcats port as well.. how can i block that.<br /><br />i just want the applications to be accessed from apache(port).<br /><br />btw both tomcat and apache are on same unix server.Unknownhttps://www.blogger.com/profile/17762187393328965991noreply@blogger.comtag:blogger.com,1999:blog-9238405.post-18213383179382530402010-10-04T21:13:39.128-07:002010-10-04T21:13:39.128-07:00for me, its three part configurations,
1. apache, ...for me, its three part configurations,<br />1. apache, to load mod_jk.so, forward request to workers<br />2. tomcat, the worker connect to tomcat ajp1.3 connector port, so that tomcat would be notified of the forwarded request.<br />3. especially import, the worker port should be same as tomcat ajp1.3 connector port.Jackiehttps://www.blogger.com/profile/18331039390097222267noreply@blogger.comtag:blogger.com,1999:blog-9238405.post-47373514008678505472010-04-06T13:40:47.801-07:002010-04-06T13:40:47.801-07:00Thanks for such a nice Blog. I install Apache http...Thanks for such a nice Blog. I install Apache httpd 2.2, tomcat 6.0. I installed apache as root user and tomcat as tomcat user. I downloaded tomcat-connectors-1.2.28-src. Now i m trying to configure it as a tomcat user, but unable to configure it. getting error " cp: cannot create regular file `/usr/local/apache2/modules/mod_jk.so': Permission denied<br />"<br />Is there any way to configure it as tomcat user or do i have to configure it as root.<br /><br />Please advice. <br /><br />Thanks<br />ManojManojhttps://www.blogger.com/profile/06471355332121059276noreply@blogger.comtag:blogger.com,1999:blog-9238405.post-2880892960175499722010-01-06T20:43:29.351-08:002010-01-06T20:43:29.351-08:00you are the DON ... after hours with no luck your ...you are the DON ... after hours with no luck your article hit the spot ... first time i have ever left a post ... well doneAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-9238405.post-92227586426328635162009-09-19T10:39:16.665-07:002009-09-19T10:39:16.665-07:00great post...thanks a lot..Keep posting...great post...thanks a lot..Keep posting...Prakashnoreply@blogger.comtag:blogger.com,1999:blog-9238405.post-43397590212707934402009-04-15T12:38:00.000-07:002009-04-15T12:38:00.000-07:00Hi Grig,
Great post, after a little effort I manag...Hi Grig,<br />Great post, after a little effort I managed to get it working with Tomcat on port 8080. I have another server running Tomcat on port 80 and can't figure out how to get the right port for the worker. After a netstat -anp, I am non-the-wiser, any ideas ?Avronohttps://www.blogger.com/profile/13737834104833447894noreply@blogger.comtag:blogger.com,1999:blog-9238405.post-54143960151038256862008-08-24T13:15:00.000-07:002008-08-24T13:15:00.000-07:00Great Post!!! I used the same approach and posted ...Great Post!!! I used the same approach and posted it at:<BR/><BR/>http://vladi-blog.blogspot.com/<BR/><BR/>There you can find other issues on Apache, Tomcat, and other technical issues.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9238405.post-53651926517711988062008-04-11T17:53:00.000-07:002008-04-11T17:53:00.000-07:00The above examples will serve the static content, ...The above examples will serve the static content, not dynamic content<BR/><BR/>eg. Alias /jsp-examples "/usr/local/tomcat/webapps/jsp-examples/"<BR/><BR/>To get the static content, you don't even need to configure mod_jkAsad Sheikhhttps://www.blogger.com/profile/08582736827643964242noreply@blogger.comtag:blogger.com,1999:blog-9238405.post-12037909379555557462008-01-30T13:26:00.000-08:002008-01-30T13:26:00.000-08:00Straight, Forwarded and Focused.Short comment thou...Straight, Forwarded and Focused.<BR/><BR/>Short comment thought:<BR/><BR/>In case U're using Virtual Host tags then the following will not work for U:<BR/>Test Apache/Tomcat integration by going to http://Web_server_name_or_IP/jsp-examples and http://Web_server_name_or_IP/servlets-examples<BR/><BR/>Assuming that <BR/>Web_server_name_or_IP = Your_Virtual_Host_Name<BR/><BR/>To make it happen U need to place JkMount lines within Virtual_Host derectives tags.MishaDarhttps://www.blogger.com/profile/03320392789237834309noreply@blogger.comtag:blogger.com,1999:blog-9238405.post-68266103088710101872008-01-29T20:27:00.000-08:002008-01-29T20:27:00.000-08:00Thank you so much. Was going thru so much pain try...Thank you so much. Was going thru so much pain trying to get tomcat to work on apache server until I ran into your how-to. Thanks.<BR/>TilakAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-9238405.post-68178332733950802892008-01-10T01:15:00.000-08:002008-01-10T01:15:00.000-08:00Nice article but if you still have problem running...Nice article but if you still have problem running your java applications on apache2 with mod_jk connector just make a slight change..viz, use ajp13 worker rather than default, ajp12. good luck.Suraj Chattarhttps://www.blogger.com/profile/15277691937153726831noreply@blogger.comtag:blogger.com,1999:blog-9238405.post-34020062893373474822007-12-28T16:41:00.000-08:002007-12-28T16:41:00.000-08:00Thanks a lot. It worked for tomcat6 too.Thanks a lot. It worked for tomcat6 too.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9238405.post-72169427070205587732007-12-10T10:02:00.000-08:002007-12-10T10:02:00.000-08:00dbspace -- to point apache to a tomcat instance on...dbspace -- to point apache to a tomcat instance on a different machine, you need to specify that machine in your workers.properties file. <BR/><BR/>Example:<BR/><BR/>worker.app2.port=8010<BR/>worker.app2.host=remote-host<BR/>worker.app2.type=ajp13<BR/>worker.app2.lbfactor=1<BR/><BR/>In this case, worker app2 is directed to remote-host.<BR/><BR/>HTH,<BR/><BR/>GrigGrig Gheorghiuhttps://www.blogger.com/profile/17863511617654196370noreply@blogger.comtag:blogger.com,1999:blog-9238405.post-66793638196331370762007-12-09T07:11:00.000-08:002007-12-09T07:11:00.000-08:00has anyone try to have apache and tomcat in two di...has anyone try to have apache and tomcat in two different machine?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9238405.post-64676941393091750522007-11-23T00:04:00.000-08:002007-11-23T00:04:00.000-08:00hello there .........really a nice tutorial that u...hello there .........<BR/>really a nice tutorial that u have written... .above........<BR/><BR/><BR/>as the steps u have written.........<BR/>i have done all the configuration..........<BR/><BR/>as u have written in the documentation ........that static content is served by the apache it is gettting served .......<BR/>and jsp content is getting server by the tomcat using connector.......<BR/><BR/>but in case of jsp files the tomcat is showing the 404 error.......<BR/>i know what this error exctly means...........<BR/><BR/>but the the jsp files that i am looking for are already present at that location...........Vivek Bhandarkarhttps://www.blogger.com/profile/02854503687469370884noreply@blogger.comtag:blogger.com,1999:blog-9238405.post-44863272956141714652007-10-05T22:44:00.000-07:002007-10-05T22:44:00.000-07:00Thanks for posting this wonderful article. I found...Thanks for posting this wonderful article. <BR/>I found tomcat jsp examples if I only added "Alias" part(of course with directory tag) into the httpd.conf. <BR/>I don't know what is wrong? why I don't even need mod_jk.so. <BR/><BR/>Thanks,<BR/><BR/>rayAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-9238405.post-91262125002185915942007-07-22T01:17:00.000-07:002007-07-22T01:17:00.000-07:00Hi,First of all thanks so much for helping us get ...Hi,<BR/>First of all thanks so much for helping us get through the pain of configuring Apaceh2 and Tomcat 5.5 with mod_jk. However I am running into certain issues.<BR/><BR/>1. I am having a apache loadbalancer in place and I am using ssl. My ssl.conf file has the necessary ssl parameters. Now the issue I am actually facing is:<BR/>Say the name of my application is ABC which is placed under /opt/tomcat/webapps/ABC.<BR/><BR/>The ssl.conf file has following entries in Virtual Hosts section:<BR/><BR/>DocumentRoot "/opt/static" #Static content is served from here.<BR/><BR/>JKMount /ABC loadbalancer<BR/>JKMount /ABC/* loadbalancer<BR/><BR/>Now when I type https://ip-address/ in the browser, then the welcome page defined in web.xml of ABC application gets displayed (this is a login page). When I enter the username and press submit ideally /ABC/login.do should be called. However when i checked the apache logs, it showed that /login.do was called instead of /ABC/login.do. Basically this request was not forwarded to tomcat.<BR/> <BR/>However this works well when I enter https://ip-address/ABC in the broswer. Following this all calls are made in the proper way. i.e /ABC/login.do was called.<BR/><BR/>2. I am no getting any entries in mod_jk.log, Like the worker was looked up and stuff. <BR/><BR/>3. I have another application PQR in webapps. I have configuerd this application on another ip-address on the same machine.<BR/>There is another virtual host entry for this :<BR/><BR/>However when i try to access the application on this ip-address, the other applictaion ABC gets displayed. However if I type <BR/><BR/>https://ip-address2/PQR then this applictaion works fine.<BR/><BR/>Request you guys to help me sort this out.<BR/><BR/>Thanks in advance.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9238405.post-57542437103660929222007-07-05T08:20:00.000-07:002007-07-05T08:20:00.000-07:00I did it everything . I also got the connection, b...I did it everything . I also got the connection, but I can only load pages which are static. I can't load jsp pagesRajeesh Vhttps://www.blogger.com/profile/10337142895380316888noreply@blogger.comtag:blogger.com,1999:blog-9238405.post-72246367366282942312007-06-08T21:25:00.000-07:002007-06-08T21:25:00.000-07:00Not sure what's going on with your configuration. ...Not sure what's going on with your configuration. You may want to try installing mod_jk from an RPM:<BR/><BR/>http://rpmfind.net/linux/rpm2html/search.php?query=mod_jk&submit=Search+...Grig Gheorghiuhttps://www.blogger.com/profile/17863511617654196370noreply@blogger.comtag:blogger.com,1999:blog-9238405.post-6440382849270524652007-06-08T17:36:00.000-07:002007-06-08T17:36:00.000-07:00Grig:I finally find a RPM package with apxs in it....Grig:<BR/><BR/>I finally find a RPM package with apxs in it. And I install the package successfully in my server. [root@nexant-pl man8]# rpm -ql apache2-devel | grep apxs2<BR/>/usr/sbin/apxs2<BR/>/usr/share/man/man8/apxs2.8.gz<BR/><BR/>However, I don't know if I need to do "Make" or "make install" in order to make apxs2 take effort. I check by typing >man apxs2, it does not come up. And I do the following in the JK connector folder:<BR/>./configure --with-apxs=/usr/sbin/apxs2 <BR/><BR/>and get the same error :<BR/>could not find /usr/sbin/apxs2<BR/>configure: error: You must specify a valid --with-apxs path<BR/><BR/>Do you know if I miss anything to make the apxs2 takes effort in my server?Unknownhttps://www.blogger.com/profile/17935661503845771178noreply@blogger.comtag:blogger.com,1999:blog-9238405.post-69739304588633936582007-06-08T14:21:00.000-07:002007-06-08T14:21:00.000-07:00Jenny -- you can search for apache rpms at rpmfind...Jenny -- you can search for apache rpms at rpmfind.net:<BR/><BR/>http://rpmfind.net/linux/rpm2html/search.php?query=apache&submit=Search+...<BR/><BR/>Once you download an RPM that's suitable for your RH distro, install it with<BR/><BR/>rpm -hi rpmname.rpm<BR/><BR/>GrigGrig Gheorghiuhttps://www.blogger.com/profile/17863511617654196370noreply@blogger.comtag:blogger.com,1999:blog-9238405.post-87095843871635284602007-06-08T11:29:00.000-07:002007-06-08T11:29:00.000-07:00Grig:I still did not get through my problem becaus...Grig:<BR/><BR/>I still did not get through my problem because Redhat does not has dpkg. I search the web but can't find a file to allow me install dpkg to Redhat.<BR/><BR/>Would you please tell me the URL where you download your APACHE 2.0.55? It seems that your apache2 does come with apxs in its /bin folder. As I mentioned, I download both apache 2.2.24 or 2.0.59, either them come with apxs2.<BR/><BR/>Thank you very much.Unknownhttps://www.blogger.com/profile/17935661503845771178noreply@blogger.comtag:blogger.com,1999:blog-9238405.post-10802352080552146242007-06-06T16:48:00.000-07:002007-06-06T16:48:00.000-07:00Jenny -- here's a post that explains how to instal...Jenny -- here's a post that explains how to install .deb files:<BR/><BR/>http://www.newlinuxuser.com/howto-use-dpkg-to-install-deb-files/Grig Gheorghiuhttps://www.blogger.com/profile/17863511617654196370noreply@blogger.com