Re: Re: Jonas 5.2.1 and Apache mod_jk
Celinio Fernandes <[email protected]> Sat, 1 Oct 2011 09:26:58 -0700 (PDT)
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Message-ID | <[email protected]> |
---1024903478-261180843-1317486418=:14130 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi Ali,=0Athere is no specific reason.=0A=0AAnyways, how can i make sure my= webapp is using the mod_jk connector ?=0AI have installed and configured i= t in Apache and I have also configured it in Jonas.=0AI can also see the AJ= P/JK connector configured on port 8009 in the Jonas console admin.=0A=0ANow= how do i make sure my request hits Apache first and that Apache redirects = it to Jonas then ?=0A=0A=0A=0A________________________________=0AFrom: S. A= li Tokmen <[email protected]>=0ATo: [email protected]=0ASent: Saturday, O= ctober 1, 2011 5:49 PM=0ASubject: [jonas] Re: Jonas 5.2.1 and Apache mod_jk= =0A=0A=0AHi Celinio=0A=0AIs there a spacific reason why you're using mod_jk= under Apache=0A httpd 2.2 as opposed to the already embedded mod_proxy_= ajp?=0A=0AThank you=0A=0A=0AS. Ali Tokmen=0Ahttp://ali.tokmen.com/ GSM (ch)= : +41 79 207 29 22 [Swisscom]=0AGSM (fr): +33 66 43 00 555 [Orange]=0AGSM (= tr): +90 555 266 52 73 [Avea] My AIM, ICQ, MSN Messenger and Yahoo IM=0Acon= tact details are on http://contact.ali.tokmen.com=0AOn 2011/10/01 18:37, Ce= linio Fernandes wrote: =0AHi,=0A>I am trying to interface my instance of Jo= nas 5.2.1 with the connector mod_jk, in a Linux environment (CentOS).=0A>= =0A>I have added the module mod_jk.so to /usr/lib64/httpd/modules.=0A>=0A>= =0A>My version of Apache is 2.2=0A>=0A>=0A>I have configured /etc/httpd/con= f/httpd.conf as the following :=0A>=0A>=0A>LoadModule jk_module modules/mod= _jk.so =0A>=0A><IfModule jk_module>=0A># Ou trouver workers.properties ?=0A= >JkWorkersFile /etc/httpd/conf/workers.properties=0A># Ou mettre la memoire= partagee de jk=0A>JkShmFile /etc/httpd/logs/mod_jk.shm=0A># Ou mettre les = logs jk=0A>JkLogFile /etc/httpd/logs/mod_jk.log=0A># Positionner le niveau = des logs jk [debug/error/info]=0A>JkLogLevel info=0A># Selectionner lef orm= at des logs pour le timestamp=0A>JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "= =0A>#Format des logs=0A>JkRequestLogFormat "%w %m %V %T"=0A># Envoyer les c= ontextes dont le nom commence par test :=0A /voltage* vers le work= er nomm=E9 worker1=0A>JkMount /toto*/* worker1=0A># On peut placer ici plus= ieurs JkMount si on a plusieurs=0A contextes traites=0A># par des = workers differents=0A></IfModule>=0A>=0A>=0A>I have added the following wor= ker in /etc/httpd/conf/worker.properties :=0A>=0A>=0A>=A0#Define 1 worker= =0A>=A0worker.list=3Dworker1=0A>=A0=0A>=A0#Set properties for worker1 (ajp1= 3)=0A>=A0worker.worker1.type=3Dajp13=0A>=A0worker.worker1.host=3Dblabla.com= =0A>=A0worker.worker1.port=3D8009=0A>=0A>=0A>=0A>Under /home/test/jonas-ful= l-5.2.1/conf/=A0 I have configured both tomcat6-server.xml and tomcat7-serv= er.xml (since I do not know which one is used). I have uncommented the foll= owing line (changed port 9009 to 8009)=0A>=0A>=0A>=0A>=A0 <Connector port= =3D"8009" protocol=3D"AJP/1.3" redirectPort=3D"9043" />=0A>=0A>=0A>My web a= pp HTTP port in Jonas is configured to 9000.=0A>When I hit the URL http://b= labla.com:9000/toto I can see in the Jonas logs that Jonas is listening to = that connector but I have no idea whether Apache has handled the request or= not.=0A>=0A>=0A>What can i do ? Am i missing something ?=0A>Thanks for hel= ping. ---1024903478-261180843-1317486418=:14130 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable <html><body><div style=3D"color:#000; background-color:#fff; font-family:ti= mes new roman, new york, times, serif;font-size:12pt"><div><span>Hi Ali,</s= pan></div><div><span>there is no specific reason.</span></div><div><br><spa= n></span></div><div><span>Anyways, how can i make sure my webapp is using t= he mod_jk connector ?</span></div><div><span>I have installed and configure= d it in Apache and I have also configured it in Jonas.</span></div><div><sp= an>I can also see the </span>AJP/JK connector configured on port 8009 in th= e Jonas console admin.</div><div><br></div><div>Now how do i make sure my r= equest hits Apache first and that Apache redirects it to Jonas then ?<br></= div><div><br></div><div style=3D"font-family: times new roman, new york, ti= mes, serif; font-size: 12pt;"><div style=3D"font-family: times new roman, n= ew york, times, serif; font-size: 12pt;"><font face=3D"Arial" size=3D"2"><h= r size=3D"1"><b><span style=3D"font-weight:bold;">From:</span></b> S. Ali T= okmen <[email protected]><br><b><span style=3D"font-weight: bold;">T= o:</span></b> [email protected]<br><b><span style=3D"font-weight: bold;">Sent:<= /span></b> Saturday, October 1, 2011 5:49 PM<br><b><span style=3D"font-weig= ht: bold;">Subject:</span></b> [jonas] Re: Jonas 5.2.1 and Apache mod_jk<br= ></font><br>=0A<div id=3D"yiv1828746923">=0A =0A=0A =0A =0A <div>=0A = Hi Celinio<br>=0A <br>=0A Is there a spacific reason why you're us= ing mod_jk under Apache=0A httpd 2.2 as opposed to the already embedded = mod_proxy_ajp?<br>=0A <br>=0A Thank you<br>=0A <br>=0A <pre cla= ss=3D"yiv1828746923moz-signature">S. Ali Tokmen=0Ahttp://ali.tokmen.com/=0A= =0AGSM (ch): +41 79 207 29 22 [Swisscom]=0AGSM (fr): +33 66 43 00 555 [Oran= ge]=0AGSM (tr): +90 555 266 52 73 [Avea]=0A=0AMy AIM, ICQ, MSN Messenger an= d Yahoo IM=0Acontact details are on http://contact.ali.tokmen.com</pre>=0A = <br>=0A On 2011/10/01 18:37, Celinio Fernandes wrote:=0A <blockquo= te type=3D"cite">=0A <div style=3D"color:#000;background-color:#fff;fo= nt-family:times new roman, new york, times, serif;font-size:12pt;">=0A = <div>Hi,</div>=0A <div>I am trying to interface my instance of Jo= nas 5.2.1 with=0A the connector mod_jk, in a Linux environment (Ce= ntOS).<br>=0A </div>=0A <div>I have added the module <a targe= t=3D"_blank" href=3D"http://mod_jk.so">mod_jk.so</a> to=0A /usr/li= b64/httpd/modules.</div>=0A <div><br>=0A </div>=0A <di= v>My version of Apache is 2.2</div>=0A <div><br>=0A </div>=0A= <div>I have configured /etc/httpd/conf/httpd.conf as the=0A = following :</div>=0A <div><br>=0A </div>=0A <div>Loa= dModule jk_module modules/mod_jk.so <br>=0A <br>=0A <I= fModule jk_module><br>=0A # Ou trouver workers.properties ?<br>= =0A JkWorkersFile /etc/httpd/conf/workers.properties<br>=0A = # Ou mettre la memoire partagee de jk<br>=0A JkShmFile /etc/htt= pd/logs/mod_jk.shm<br>=0A # Ou mettre les logs jk<br>=0A = JkLogFile /etc/httpd/logs/mod_jk.log<br>=0A # Positionner le nivea= u des logs jk [debug/error/info]<br>=0A JkLogLevel info<br>=0A = # Selectionner lef ormat des logs pour le timestamp<br>=0A J= kLogStampFormat "[%a %b %d %H:%M:%S %Y] "<br>=0A #Format des logs<= br>=0A JkRequestLogFormat "%w %m %V %T"<br>=0A # Envoyer = les contextes dont le nom commence par test :=0A /voltage* vers le= worker nomm=E9 worker1<br>=0A JkMount /toto*/* worker1<br>=0A = # On peut placer ici plusieurs JkMount si on a plusieurs=0A = contextes traites<br>=0A # par des workers differents<br>=0A = </IfModule></div>=0A <div><br>=0A </div>=0A = <div>I have added the following worker in=0A /etc/httpd/conf/worke= r.properties :</div>=0A <div><br>=0A </div>=0A <div>&n= bsp;#Define 1 worker<br>=0A worker.list=3Dworker1<br>=0A = <br>=0A #Set properties for worker1 (ajp13)<br>= =0A worker.worker1.type=3Dajp13<br>=0A worker= .worker1.host=3Dblabla.com<br>=0A worker.worker1.port=3D8009= <br>=0A </div>=0A <div><br>=0A </div>=0A <div>U= nder /home/test/jonas-full-5.2.1/conf/ I have configured=0A = both tomcat6-server.xml and tomcat7-server.xml (since I do not=0A = know which one is used). I have uncommented the following line=0A = (changed port 9009 to 8009)<br>=0A </div>=0A <div><br>=0A = </div>=0A <div> <Connector port=3D"8009" protocol=3D"AJ= P/1.3"=0A redirectPort=3D"9043" /></div>=0A <div><br>=0A= </div>=0A <div>My web app HTTP port in Jonas is configured t= o 9000.</div>=0A <div>When I hit the URL http://blabla.com:9000/toto= I can see in=0A the Jonas logs that Jonas is listening to that co= nnector but I=0A have no idea whether Apache has handled the reque= st or not.</div>=0A <div><br>=0A </div>=0A <div>What c= an i do ? Am i missing something ?</div>=0A <div>Thanks for helping.= </div>=0A </div>=0A </blockquote>=0A </div>=0A=0A</div><br><br></d= iv></div></div></body></html> ---1024903478-261180843-1317486418=:14130--