Jonas 5.2.1 and Apache mod_jk
Celinio Fernandes <[email protected]> Sat, 1 Oct 2011 08:37:18 -0700 (PDT)
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Message-ID | <[email protected]> |
---569308781-1787686847-1317483438=:69779 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi,=0AI am trying to interface my instance of Jonas 5.2.1 with the connecto= r mod_jk, in a Linux environment (CentOS).=0A=0AI have added the module mod= _jk.so to /usr/lib64/httpd/modules.=0A=0AMy version of Apache is 2.2=0A=0AI= have configured /etc/httpd/conf/httpd.conf as the following :=0A=0ALoadMod= ule jk_module modules/mod_jk.so =0A=0A<IfModule jk_module>=0A# Ou trouver w= orkers.properties ?=0AJkWorkersFile /etc/httpd/conf/workers.properties=0A# = Ou mettre la memoire partagee de jk=0AJkShmFile /etc/httpd/logs/mod_jk.shm= =0A# Ou mettre les logs jk=0AJkLogFile /etc/httpd/logs/mod_jk.log=0A# Posit= ionner le niveau des logs jk [debug/error/info]=0AJkLogLevel info=0A# Selec= tionner lef ormat des logs pour le timestamp=0AJkLogStampFormat "[%a %b %d = %H:%M:%S %Y] "=0A#Format des logs=0AJkRequestLogFormat "%w %m %V %T"=0A# En= voyer les contextes dont le nom commence par test : /voltage* vers le worke= r nomm=E9 worker1=0AJkMount /toto*/* worker1=0A# On peut placer ici plusieu= rs JkMount si on a plusieurs contextes traites=0A# par des workers differen= ts=0A</IfModule>=0A=0AI have added the following worker in /etc/httpd/conf/= worker.properties :=0A=0A=A0#Define 1 worker=0A=A0worker.list=3Dworker1=0A= =A0=0A=A0#Set properties for worker1 (ajp13)=0A=A0worker.worker1.type=3Dajp= 13=0A=A0worker.worker1.host=3Dblabla.com=0A=A0worker.worker1.port=3D8009=0A= =0A=0AUnder /home/test/jonas-full-5.2.1/conf/=A0 I have configured both tom= cat6-server.xml and tomcat7-server.xml (since I do not know which one is us= ed). I have uncommented the following line (changed port 9009 to 8009)=0A= =0A=0A=A0 <Connector port=3D"8009" protocol=3D"AJP/1.3" redirectPort=3D"904= 3" />=0A=0AMy web app HTTP port in Jonas is configured to 9000.=0AWhen I hi= t the URL http://blabla.com:9000/toto I can see in the Jonas logs that Jona= s is listening to that connector but I have no idea whether Apache has hand= led the request or not.=0A=0AWhat can i do ? Am i missing something ?=0ATha= nks for helping.=0A ---569308781-1787686847-1317483438=:69779 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>Hi,</div><div>I = am trying to interface my instance of Jonas 5.2.1 with the connector mod_jk= , in a Linux environment (CentOS).<br></div><div>I have added the module mo= d_jk.so to /usr/lib64/httpd/modules.</div><div><br></div><div>My version of= Apache is 2.2</div><div><br></div><div>I have configured /etc/httpd/conf/h= ttpd.conf as the following :</div><div><br></div><div>LoadModule jk_module = modules/mod_jk.so <br><br><IfModule jk_module><br># Ou trouver worker= s.properties ?<br>JkWorkersFile /etc/httpd/conf/workers.properties<br># Ou = mettre la memoire partagee de jk<br>JkShmFile /etc/httpd/logs/mod_jk.shm<br= ># Ou mettre les logs jk<br>JkLogFile /etc/httpd/logs/mod_jk.log<br># Posit= ionner le niveau des logs jk [debug/error/info]<br>JkLogLevel info<br># Sel= ectionner lef ormat des logs pour le timestamp<br>JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "<br>#Format des logs<br>JkRequestLogFormat "%w %m= %V %T"<br># Envoyer les contextes dont le nom commence par test : /voltage= * vers le worker nomm=E9 worker1<br>JkMount /toto*/* worker1<br># On peut p= lacer ici plusieurs JkMount si on a plusieurs contextes traites<br># par de= s workers differents<br></IfModule></div><div><br></div><div>I have a= dded the following worker in /etc/httpd/conf/worker.properties :</div><div>= <br></div><div> #Define 1 worker<br> worker.list=3Dworker1<br>&nb= sp;<br> #Set properties for worker1 (ajp13)<br> worker.worker1.ty= pe=3Dajp13<br> worker.worker1.host=3Dblabla.com<br> worker.worker= 1.port=3D8009<br></div><div><br></div><div>Under /home/test/jonas-full-5.2.= 1/conf/ I have configured both tomcat6-server.xml and tomcat7-server.= xml (since I do not know which one is used). I have uncommented the followi= ng line (changed port 9009 to 8009)<br></div><div><br></div><div> <Connector port=3D"8009" protocol=3D"AJP/1.3" redirectPort=3D"9043" /&g= t;</div><div><br></div><div>My web app HTTP port in Jonas is configured to = 9000.</div><div>When I hit the URL http://blabla.com:9000/toto I can see in= the Jonas logs that Jonas is listening to that connector but I have no ide= a whether Apache has handled the request or not.</div><div><br></div><div>W= hat can i do ? Am i missing something ?</div><div>Thanks for helping.</div>= </div></body></html> ---569308781-1787686847-1317483438=:69779--