Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Jonas 5.2.1 and Apache mod_jk
Celinio Fernandes <[email protected]> Sun, 9 Oct 2011 07:41:13 -0700 (PDT)
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Message-ID | <[email protected]> |
---2037237518-2058888765-1318171273=:78594 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi,=0Aregarding the tomcat configuration file to modify, in the Jonas insta= nce, which one do we need to modify ?=0ASince there are two :=0Atomcat6-ser= ver.xml=0Atomcat7-server.xml=0A=0AI have been systematically modifying both= of them but i suppose modifying one only should be enough.=0AWhich one sho= uld i modify ? where do i configure which version of tomcat i want to use i= n Jonas ?=0A=0AThanks.=0A=0A=0A=0A________________________________=0AFrom: = Benoit Pelletier <[email protected]>=0ATo: [email protected]=0ASent: We= dnesday, October 5, 2011 8:47 AM=0ASubject: [jonas] Re: Re: Re: Re: Re: Re:= Re: Re: Re: Re: Re: Re: Jonas 5.2.1 and Apache mod_jk=0A=0A=0ASee the doc = here.=0ABriefly, it copies the mount point=A0 definitions in all the virtua= l=0Ahosts.=0Aregards=0A=0AIt finally worked ! :)=0A>With JkMountCopy All in= stead=0Aof JkMountCopy On.=0A>=0A>=0A>=0A>Thanks Benoit.=0A>=0A>=0A>What is= the difference between JkMountCopy All and JkMountcopy=0AOn ?=0A>=0A>=0A>= =0A>=0A>=0A>=0A>________________________________=0A>From: Benoit Pelletier = <[email protected]>=0A>To: [email protected]=0A>Sent: Tuesday, October= =0A4, 2011 10:39 AM=0A>Subject: [jonas] Re:=0ARe: Re: Re: Re: Re: Re: Re: R= e: Re: Jonas 5.2.1 and Apache mod_jk=0A>=0A>=0A>Try with=0A>=0A>JkMountCopy= All=0A>>=0Arather than =0A>=0A>=A0=A0=A0 =A0=A0=A0 JkMountcopy On=0A>=0A>= =0A>I did that too, I forgot to mention it.=0A>>Any idea what's wrong ?=0A>= >Thanks.=0A>>=0A>>=0A>>=0A>>=0A>>________________________________=0A>>From:= Son=0ATung Nguyen <[email protected]>=0A>>To: [email protected]=0A>>Sent: = Tuesday,=0AOctober=0A4, 2011 9:09 AM=0A>>Subject: [jonas] Re:=0ARe: Re: Re:= Re: Re: Re: Re: Jonas 5.2.1 and Apache mod_jk=0A>>=0A>>=0A>>In jonas's tom= cat6-server.xml ... =0A>>Le 4 oct. 2011 08:58, "Son Tung Nguyen" <snguyen@c= ergy.itin.fr> a=0A=E9crit=A0:=0A>>>=0A>>> Hi, you must also configure your = engine for that. =0A>>> In your config of the Engine, you have to precise w= hat's the name=0Aof your jvmroute. Typically, "worker1" in your case.=0A>>>= =0A>>> Le 4 oct. 2011 03:26, "Celinio Fernandes" <[email protected]>=0Aa =E9= crit=A0:=0A>>>=0A>>> > Hi all,=0A>>> > thanks for helping.=0A>>> > =0A>>> >= I changed the log level to debug and here it what it says in=0A/etc/httpd/= logs/mod_jk.log :=0A>>> > =0A>>> > [info] init_jk::mod_jk.c (3198): mod_jk/= 1.2.31 (1026297)=0Ainitialized=0A>>> > [debug] wc_get_worker_for_name::jk_w= orker.c (116): found a=0Aworker worker1=0A>>> > [debug] wc_get_name_for_typ= e::jk_worker.c (293): Found worker=0Atype 'ajp13'=0A>>> > [debug] uri_worke= r_map_ext::jk_uri_worker_map.c (512):=0AChecking extension for worker 0: wo= rker1 of type ajp13 (2)=0A>>> > [debug] wc_get_worker_for_name::jk_worker.c= (116): found a=0Aworker worker1=0A>>> > [debug] wc_get_name_for_type::jk_w= orker.c (293): Found worker=0Atype 'ajp13'=0A>>> > [debug] uri_worker_map_e= xt::jk_uri_worker_map.c (512):=0AChecking extension for worker 1: worker1 o= f type ajp13 (2)=0A>>> > [debug] wc_get_worker_for_name::jk_worker.c (116):= found a=0Aworker worker1=0A>>> > [debug] wc_get_name_for_type::jk_worker.c= (293): Found worker=0Atype 'ajp13'=0A>>> > [debug] uri_worker_map_ext::jk_= uri_worker_map.c (512):=0AChecking extension for worker 2: worker1 of type = ajp13 (2)=0A>>> > [debug] wc_get_worker_for_name::jk_worker.c (116): found = a=0Aworker worker1=0A>>> > [debug] wc_get_name_for_type::jk_worker.c (293):= Found worker=0Atype 'ajp13'=0A>>> > [debug] uri_worker_map_ext::jk_uri_wor= ker_map.c (512):=0AChecking extension for worker 3: worker1 of type ajp13 (= 2)=0A>>> > [debug] uri_worker_map_dump::jk_uri_worker_map.c (171): uri=0Ama= p dump after extension stripping: index=3D0 file=3D'(null)'=0Areject_unsafe= =3D0 reload=3D60 modified=3D0 checked=3D0=0A>>> > [debug] uri_worker_map_du= mp::jk_uri_worker_map.c (176):=0Ageneration 0: size=3D0 nosize=3D0 capacity= =3D0=0A>>> > [debug] uri_worker_map_dump::jk_uri_worker_map.c (176):=0Agene= ration 1: size=3D4 nosize=3D0 capacity=3D4=0A>>> > [debug] uri_worker_map_d= ump::jk_uri_worker_map.c (186): NEXT=0A(1) map #0: uri=3D/voltage-gestion/*= worker=3Dworker1=0Acontext=3D/voltage-gestion/* source=3DJkMount type=3DWi= ldchar len=3D18=0A>>> > [debug] uri_worker_map_dump::jk_uri_worker_map.c (1= 86): NEXT=0A(1) map #1: uri=3D/voltage-gestion/ worker=3Dworker1=0Acontext= =3D/voltage-gestion/ source=3DJkMount type=3DExact len=3D17=0A>>> > [debug]= uri_worker_map_dump::jk_uri_worker_map.c (186): NEXT=0A(1) map #2: uri=3D/= voltage-gestion* worker=3Dworker1=0Acontext=3D/voltage-gestion* source=3DJk= Mount type=3DWildchar len=3D17=0A>>> > [debug] uri_worker_map_dump::jk_uri_= worker_map.c (186): NEXT=0A(1) map #3: uri=3D/voltage-gestion worker=3Dwork= er1=0Acontext=3D/voltage-gestion source=3DJkMount type=3DExact len=3D16=0A>= >> > etc ...=0A>>> > [debug] do_shm_open_lock::jk_shm.c (353): Duplicated s= hared=0Amemory lock /etc/httpd/logs/mod_jk.shm.27847.lock=0A>>> > [debug] j= k_child_init::mod_jk.c (3082): Initialized=0Amod_jk/1.2.31 (1026297)=0A>>> = > [debug] jk_translate::mod_jk.c (3434): missing uri map for=0Adefault:/vol= tage-gestion=0A>>> > [debug] jk_map_to_storage::mod_jk.c (3593): missing ur= i map=0Afor default:/voltage-gestion=0A>>> > =0A>>> > Here is my configurat= ion again :=0A>>> > =0A>>> > I changed my /etc/httpd/conf/httpd.conf (I add= ed 4 contexts=0Afor voltage-gestion):=0A>>> >=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =0A>>> > <IfModule= =0Ajk_module>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 =0A>>> > JkWorkersFile=0A/etc/httpd/conf/workers.properties= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =0A>>> >= JkShmFile=0A/etc/httpd/logs/mod_jk.shm=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =0A>>> >= JkLogFile=0A/etc/httpd/logs/mod_jk.log=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =0A>>> >= JkLogLevel=0Adebug=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =0A>>> > JkLogStampFormat "[%a %b %d %H:%= M:%S %Y]=0A"=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 =0A>>> > JkRequestLogFormat "%w %m %V=0A%T"=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =0A>>> > JKMountCopy=0AOn=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =0A>>> > JkMount /voltage-gestion/*=0Aworker1=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 =0A>>> > jkMount /voltage-gestion*=0Aworker1=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 =0A>>> > jkMount /voltage-gestion=0Aworker1=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 =0A>>> > jkMount /voltage-gestion/=0Aworker1=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 =0A>>> > </IfModule>=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 =0A>>> > =0A>>> > =0A>>> > I am not running any= Virtual Host.=A0=A0 =0A>>> > =0A>>> > /etc/httpd/conf/workers.properties := =0A>>> > =0A>>> > worker.list=3Dworker1=0A>>> > # Define worker1=0A>>> > wo= rker.worker1.port=3D8009=0A>>> > worker.worker1.host=3Dlocalhost=0A>>> > wo= rker.worker1.type=3Dajp13=0A>>> > =0A>>> > =0A>>> > And regarding Jonas,=0A= >>> > this is the line that i uncommented both on=0Atomcat6-server.xml and = tomcat7-server.xml :=0A>>> > =0A>>> > <!-- Define an AJP 1.3 Connector on p= ort 9009 -->=0A>>> > =A0=A0=A0 <Connector port=3D"8009" protocol=3D"AJP/1.3= "=0AredirectPort=3D"9043" />=0A>>> > =0A>>> > =0A>>> > Apache and Jonas are= running on the same remote server. So I=0Ajust use localhost as the host.= =0A>>> > Not the IP, not the domain name. Anyways, even if i try these=0Ait= does not work. The URI is not mapped.=0A>>> > =0A>>> > The URLs that i am = trying to hit is :=0A>>> > http://<IP>:80/voltage-gestion=0A>>> > http://<h= ostname>:80/voltage-gestion=0A>>> > =0A>>> > =0A>>> > None works, I get the= same error : missing uri map for=0Adefault:/voltage-gestion=0A>>> > =0A>>>= > Any idea ? Thanks=0A>>> > =0A>>> > =0A>>> > =0A>>> > =0A>>> > __________= ______________________=0A>>> > From: Benoit Pelletier <benoit.pelletier@bul= l.net>=0A>>> > To: [email protected]=0A>>> > Sent: Monday, October 3, 2011 9:39= AM=0A>>> > Subject: [jonas] Re: Re: Re: Re: Re: Re: Jonas 5.2.1 and=0AApac= he mod_jk=0A>>> > =0A>>> > =0A>>> > Hi All,=0A>>> > =0A>>> > Hi Celinio=0A>= >> >>=0A>>> >>Hmm... Where did you read that?=0A>>> >>=0A>>> >>Anyhow, base= d on your description of the situation I guess=0Ayour=0A>>> > workers.prope= rties file is not good. I think:=0A>>> >>=0A>>> >>=0A>>> >>JkMount /toto*/*= worker1=0A>>> >>>=0A>>> >>Has to be corrected with:=0A>>> >>=0A>>> >>=0A>>= > >>JkMount /toto* worker1=0A>>> >>>=0A>>> > You should add both=0A>>> > = =0A>>> > JkMount /toto worker1=0A>>> >>JkMount /toto/* worker1=0A>>> >>JkMo= untCopy Allou can=0A>>> >>=0A>>> >>=0A>>> > BTW, did you take a look to the= mod_jk's logs ? See=0A>>> > /etc/httpd/logs/mod_jk.log. If needed, you may= enable the=0Adebug level.=0A>>> > =0A>>> > Regards=0A>>> > =0A>>> > =0A>>>= > =0A>>> >>or=0A>>> >>=0A>>> >>=0A>>> >>JkMount /toto/* worker1=0A>>> >>>= =0A>>> >>Also, try visiting http://blabla.com:80/toto/=0A>>> > (with the fi= nal slash)=0A>>> >>=0A>>> >>Thank you=0A>>> >>=0A>>> >>=0A>>> >>S. Ali Tokm= en=0A>>> > http://ali.tokmen.com/ GSM (ch): +41 79 207 29 22 [Swisscom]=0A>= >> > GSM (fr): +33 66 43 00 555 [Orange]=0A>>> > GSM (tr): +90 555 266 52 7= 3 [Avea] My AIM, ICQ, MSN Messenger=0Aand Yahoo IM=0A>>> > contact details = are on http://contact.ali.tokmen.com=0A>>> >>On 2011/10/02 15:16, Celinio F= ernandes wrote: =0A>>> >>Really ? I read that when it comes to load balanci= ng and=0A>>> > failure detection, mod_jk is better than mod_proxy. =0A>>> >= >>=0A>>> >>>Anyways, back to my problem :=0A>>> >>>If i hit the URL http://= blabla.com:80/toto=0A>>> > (port 80) it does not work. I get a "Not found" = error: "The=0Arequested=0A>>> > URL /toto/ was not found on this server."= =0A>>> >>>=0A>>> >>>The URL http://blabla.com:80/works.=A0=A0=0A>>> > Same = thing whether i use the IP or the hostname in worker's=0Ahost=0A>>> > defin= ition:=0A>>> >>>worker.worker1.host=0A>>> >>>=0A>>> >>>I made another chang= e in both tomcat6-server.xml and=0A>>> > tomcat7-server.xml, I added the jv= mRoute to the worker :=0A>>> >>>=A0<Engine name=3D"JOnAS" defaultHost=3D"lo= calhost"=0AjvmRoute=3D"worker1">=0A>>> >>>=A0=0A>>> >>>=A0=0A>>> >>>So, am = i missing something ? =0A>>> >>>I do not want to do any load-balancing at t= he moment=0A(i only have one=0A>>> > instance of Jonas anyways), I just wan= t=0A>>> >>>Apache to redirect the request so that Jonas handles=0Ait.=0A>>>= >>>Thanks for helping.=0A>>> >>>=0A>>> >>>=0A>>> >>>=0A>>> >>>____________= ____________________=0A>>> >>>From: S. Ali Tokmen <[email protected]>= =0A>>> >>>To: [email protected]=0A>>> >>>Sent: Sunday,=0A>>> > October 2, 2011 = 1:02 AM=0A>>> >>>Subject: [jonas] Re:=0A>>> > Re: Re: Jonas 5.2.1 and Apach= e mod_jk=0A>>> >>>=0A>>> >>>=0A>>> >>>Hi Celinio=0A>>> >>>=0A>>> >>>OK, wel= l my personal recommendation is mod_proxy_ajp.=0AIt is officially=0A>>> > m= aintained by the httpd project and has a great number of=0Astability and=0A= >>> > performance improvements.=0A>>> >>>=0A>>> >>>If you want to hit the A= JP port, you should connect to=0Athe Apache httpd=0A>>> > server; i.e. not = visit on the 9000 port but the 80 (or=0Awhatever other=0A>>> > Apache httpd= ) port.=0A>>> >>>=0A>>> >>>Cheers=0A>>> >>>=0A>>> >>>=0A>>> >>>S. Ali Tokme= n http://ali.tokmen.com/ GSM (ch): +41 79 207 29 22 [Swisscom]=0A>>> > GSM = (fr): +33 66 43 00 555 [Orange]=0A>>> > GSM (tr): +90 555 266 52 73 [Avea] = My AIM, ICQ, MSN Messenger=0Aand Yahoo IM=0A>>> > contact details are on ht= tp://contact.ali.tokmen.com=0A>>> >>>On 2011/10/01 19:26, Celinio Fernandes= wrote: =0A>>> >>>Hi Ali,=0A>>> >>>>there is no specific reason.=0A>>> >>>>= =0A>>> >>>>=0A>>> >>>>Anyways, how can i make sure my webapp is using the= =0A>>> > mod_jk connector ?=0A>>> >>>>I have installed and configured it in= Apache and I=0A>>> > have also configured it in Jonas.=0A>>> >>>>I can als= o see the AJP/JK connector configured=0A>>> > on port 8009 in the Jonas con= sole admin.=0A>>> >>>>=0A>>> >>>>=0A>>> >>>>Now how do i make sure my reque= st hits Apache=0Afirst and that=0A>>> > Apache redirects it to Jonas then ?= =0A>>> >>>>=0A>>> >>>>=0A>>> >>>>=0A>>> >>>>=0A>>> >>>>____________________= ____________=0A>>> >>>>From: S. Ali Tokmen <[email protected]>=0A>>> = >>>>To: [email protected]=0A>>> >>>>Sent: Saturday,=0A>>> > October 1, 2011 5:4= 9 PM=0A>>> >>>>Subject: [jonas]=0A>>> > Re: Jonas 5.2.1 and Apache mod_jk= =0A>>> >>>>=0A>>> >>>>=0A>>> >>>>Hi Celinio=0A>>> >>>>=0A>>> >>>>Is there a= spacific reason why you're using mod_jk=0Aunder Apache httpd=0A>>> > 2.2 a= s opposed to the already embedded mod_proxy_ajp?=0A>>> >>>>=0A>>> >>>>Thank= you=0A>>> >>>>=0A>>> >>>>=0A>>> >>>>S. Ali Tokmen http://ali.tokmen.com/ G= SM (ch): +41 79 207 29 22 [Swisscom]=0A>>> > GSM (fr): +33 66 43 00 555 [Or= ange]=0A>>> > GSM (tr): +90 555 266 52 73 [Avea] My AIM, ICQ, MSN Messenger= =0Aand Yahoo IM=0A>>> > contact details are on http://contact.ali.tokmen.co= m=0A>>> >>>>On 2011/10/01 18:37, Celinio Fernandes wrote: =0A>>> >>>>Hi,=0A= >>> >>>>>I am trying to interface my instance of Jonas=0A5.2.1 with=0A>>> >= 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/conf/httpd.conf=0Aas the=0A>>> = > following :=0A>>> >>>>>=0A>>> >>>>>=0A>>> >>>>>LoadModule jk_module modul= es/mod_jk.so =0A>>> >>>>>=0A>>> >>>>><IfModule jk_module>=0A>>> >>>>># Ou t= rouver workers.properties ?=0A>>> >>>>>JkWorkersFile=0A/etc/httpd/conf/work= ers.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 ni= veau des logs jk=0A[debug/error/info]=0A>>> >>>>>JkLogLevel info=0A>>> >>>>= ># Selectionner lef ormat des logs pour le=0Atimestamp=0A>>> >>>>>JkLogStam= pFormat "[%a %b %d %H:%M:%S %Y] "=0A>>> >>>>>#Format des logs=0A>>> >>>>>Jk= RequestLogFormat "%w %m %V %T"=0A>>> >>>>># Envoyer les contextes dont le n= om commence=0Apar test : /toto* vers le=0A>>> > worker nomm=E9 worker1=0A>>= > >>>>>JkMount /toto*/* worker1=0A>>> >>>>># On peut placer ici plusieurs J= kMount si on a=0Aplusieurs contextes=0A>>> > traites=0A>>> >>>>># par des w= orkers differents=0A>>> >>>>></IfModule>=0A>>> >>>>>=0A>>> >>>>>=0A>>> >>>>= >I have added the following worker in=0A>>> > /etc/httpd/conf/worker.proper= ties :=0A>>> >>>>>=0A>>> >>>>>=0A>>> >>>>>=A0#Define 1 worker=0A>>> >>>>>= =A0worker.list=3Dworker1=0A>>> >>>>>=A0=0A>>> >>>>>=A0#Set properties for w= orker1 (ajp13)=0A>>> >>>>>=A0worker.worker1.type=3Dajp13=0A>>> >>>>>=A0work= er.worker1.host=3Dblabla.com=0A>>> >>>>>=A0worker.worker1.port=3D8009=0A>>>= >>>>>=0A>>> >>>>>=0A>>> >>>>>=0A>>> >>>>>Under /home/test/jonas-full-5.2.1= /conf/=A0 I=0Ahave configured=0A>>> > both tomcat6-server.xml and tomcat7-s= erver.xml (since I do=0Anot know=0A>>> > which one is used). I have uncomme= nted the following line=0A(changed port=0A>>> > 9009 to 8009)=0A>>> >>>>>= =0A>>> >>>>>=0A>>> >>>>>=0A>>> >>>>>=A0 <Connector port=3D"8009" protocol= =3D"AJP/1.3"=0A>>> > redirectPort=3D"9043" />=0A>>> >>>>>=0A>>> >>>>>=0A>>>= >>>>>My web app HTTP port in Jonas is configured to=0A9000.=0A>>> >>>>>Whe= n I hit the URL http://blabla.com:9000/toto=0A>>> > I can see in the Jonas = logs that Jonas is listening to that=0Aconnector=0A>>> > but I have no idea= whether Apache has handled the request or=0Anot.=0A>>> >>>>>=0A>>> >>>>>= =0A>>> >>>>>What can i do ? Am i missing something ?=0A>>> >>>>>Thanks for = helping.=0A>>> >>>>=0A>>> >>>>=0A>>> >>>=0A>>> >>>=0A>>> > =0A>>> > =0A>>> = > --=0A----------------------------------------------------------------=0A>= >> > Benoit Pelletier=0A>>> > http://jonas.ow2.org=0A>>> > Bull, Architect = of an Open World TM=0A>>> > http://www.bull.com =0A>>=0A>>=0A>>=0A>=0A>=0A>= -- ----------------------------------------------------------------=0ABeno= it Pelletier http://jonas.ow2.org Bull, Architect of an Open World TM http:= //www.bull.com =0A>=0A>=0A=0A=0A-- ---------------------------------------= -------------------------=0ABenoit Pelletier http://jonas.ow2.org Bull, Arc= hitect of an Open World TM http://www.bull.com ---2037237518-2058888765-1318171273=:78594 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,</span>= </div><div><span>regarding the tomcat configuration file to modify, in the = Jonas instance, which one do we need to modify ?</span></div><div><span>Sin= ce there are two :</span></div><div><span>tomcat6-server.xml</span></div><d= iv><span>tomcat7-server.xml</span></div><div><br><span></span></div><div><s= pan>I have been systematically modifying both of them but i suppose modifyi= ng one only should be enough.</span></div><div><span>Which one should i mod= ify ? where do i configure which version of tomcat i want to use in Jonas ?= </span></div><div><br><span></span></div><div><span>Thanks.<br></span></div= ><div><br></div><div style=3D"font-family: times new roman, new york, times= , serif; font-size: 12pt;"><div style=3D"font-family: times new roman, new = york, times, serif; font-size: 12pt;"><font size=3D"2" face=3D"Arial"><hr size=3D"1"><b><span style=3D"font-weight:bold;">From:</span></b> Benoit Pe= lletier <[email protected]><br><b><span style=3D"font-weight:= bold;">To:</span></b> [email protected]<br><b><span style=3D"font-weight: bold= ;">Sent:</span></b> Wednesday, October 5, 2011 8:47 AM<br><b><span style=3D= "font-weight: bold;">Subject:</span></b> [jonas] Re: Re: Re: Re: Re: Re: Re= : Re: Re: Re: Re: Re: Jonas 5.2.1 and Apache mod_jk<br></font><br>=0A<div i= d=3D"yiv662066555">=0A=0A=0A =0A=0A<div>=0ASee the doc <a rel=3D"nofollow"= target=3D"_blank" href=3D"http://tomcat.apache.org/connectors-doc/referenc= e/apache.html">here.</a><br>=0ABriefly, it copies the mount point def= initions in all the virtual=0Ahosts.<br>=0Aregards<br>=0A<blockquote type= =3D"cite">=0A <div style=3D"color:rgb(0, 0, 0);background-color:rgb(255, 2= 55, 255);font-family:times new roman, new york, times, serif;font-size:12pt= ;">=0A <div><span>It finally worked ! :)</span></div>=0A <div><span>With = </span><font color=3D"#330099">JkMountCopy All instead=0Aof </font><font co= lor=3D"#330099">JkMountCopy On.<br>=0A </font></div>=0A <div><br>=0A <sp= an></span></div>=0A <div><span>Thanks Benoit.</span></div>=0A <div><br>= =0A <span></span></div>=0A <div><span>What is the difference between </sp= an><font color=3D"#330099">JkMountCopy All and </font><font color=3D"#cc000= 0">JkMountcopy=0AOn ?<br>=0A </font></div>=0A <div><br>=0A <span></span>= </div>=0A <div><span></span></div>=0A <div><br>=0A </div>=0A <div style= =3D"font-family:times new roman, new york, times, serif;font-size:12pt;">= =0A <div style=3D"font-family:times new roman, new york, times, serif;font= -size:12pt;"><font size=3D"2" face=3D"Arial">=0A <hr size=3D"1"><b><span s= tyle=3D"font-weight:bold;">From:</span></b>=0ABenoit Pelletier <a rel=3D"no= follow" class=3D"yiv662066555moz-txt-link-rfc2396E" ymailto=3D"mailto:benoi= [email protected]" target=3D"_blank" href=3D"mailto:benoit.pelletier@bul= l.net"><[email protected]></a><br>=0A <b><span style=3D"font= -weight:bold;">To:</span></b> <a rel=3D"nofollow" class=3D"yiv662066555moz-= txt-link-abbreviated" ymailto=3D"mailto:[email protected]" target=3D"_blank" hr= ef=3D"mailto:[email protected]">[email protected]</a><br>=0A <b><span style=3D"fon= t-weight:bold;">Sent:</span></b> Tuesday, October=0A4, 2011 10:39 AM<br>=0A= <b><span style=3D"font-weight:bold;">Subject:</span></b> [jonas] Re:=0ARe= : Re: Re: Re: Re: Re: Re: Re: Re: Jonas 5.2.1 and Apache mod_jk<br>=0A </f= ont><br>=0A <div id=3D"yiv662066555">=0A <div>Try with<br>=0A <blockquot= e><font color=3D"#330099">JkMountCopy All</font><br>=0A </blockquote>=0Ara= ther than <br>=0A <br>=0A <font color=3D"#cc0000"> &nbs= p; JkMountcopy On</font><br>=0A <br>=0A <blockquote type=3D"c= ite">=0A <div style=3D"color:rgb(0, 0, 0);background-color:rgb(255, 255,= 255);font-family:times new roman, new york, times, serif;font-size:12pt;">= =0A <div><span>I did that too, I forgot to mention it.</span></div>=0A = <div><span>Any idea what's wrong ?</span></div>=0A <div><span>Thanks.<= br>=0A </span></div>=0A <div><br>=0A </div>=0A <div style=3D"fo= nt-family:times new roman, new york, times, serif;font-size:12pt;">=0A <= div style=3D"font-family:times new roman, new york, times, serif;font-size:= 12pt;"><font size=3D"2" face=3D"Arial">=0A <hr size=3D"1"><b><span style= =3D"font-weight:bold;">From:</span></b>=0ASon=0ATung Nguyen <a rel=3D"nofol= low" class=3D"yiv662066555moz-txt-link-rfc2396E" ymailto=3D"mailto:snguyen@= cergy.itin.fr" target=3D"_blank" href=3D"mailto:[email protected]"><= [email protected]></a><br>=0A <b><span style=3D"font-weight:bold;= ">To:</span></b> <a rel=3D"nofollow" class=3D"yiv662066555moz-txt-link-abbr= eviated" ymailto=3D"mailto:[email protected]" target=3D"_blank" href=3D"mailto:= [email protected]">[email protected]</a><br>=0A <b><span style=3D"font-weight:bo= ld;">Sent:</span></b> Tuesday,=0AOctober=0A4, 2011 9:09 AM<br>=0A <b><sp= an style=3D"font-weight:bold;">Subject:</span></b> [jonas] Re:=0ARe: Re: Re= : Re: Re: Re: Re: Jonas 5.2.1 and Apache mod_jk<br>=0A </font><br>=0A = <div id=3D"yiv662066555">=0A <div>In jonas's tomcat6-server.xml ... </d= iv>=0A <div>Le 4 oct. 2011 08:58, "Son Tung Nguyen" <<a rel=3D"nofoll= ow" ymailto=3D"mailto:[email protected]" target=3D"_blank" href=3D"mail= to:[email protected]">[email protected]</a>> a=0A=E9crit :<= br>=0A><br>=0A> Hi, you must also configure your engine for that. <br= >=0A> In your config of the Engine, you have to precise what's the name= =0Aof your jvmroute. Typically, "worker1" in your case.<br>=0A><br>=0A&g= t; Le 4 oct. 2011 03:26, "Celinio Fernandes" <<a rel=3D"nofollow" ymailt= o=3D"mailto:[email protected]" target=3D"_blank" href=3D"mailto:cel975@yahoo= .com">[email protected]</a>>=0Aa =E9crit :<br>=0A><br>=0A> >= ; Hi all,<br>=0A> > thanks for helping.<br>=0A> > <br>=0A> &= gt; I changed the log level to debug and here it what it says in=0A/etc/htt= pd/logs/mod_jk.log :<br>=0A> > <br>=0A> > [info] init_jk::mod_j= k.c (3198): mod_jk/1.2.31 (1026297)=0Ainitialized<br>=0A> > [debug] w= c_get_worker_for_name::jk_worker.c (116): found a=0Aworker worker1<br>=0A&g= t; > [debug] wc_get_name_for_type::jk_worker.c (293): Found worker=0Atyp= e 'ajp13'<br>=0A> > [debug] uri_worker_map_ext::jk_uri_worker_map.c (= 512):=0AChecking extension for worker 0: worker1 of type ajp13 (2)<br>=0A&g= t; > [debug] wc_get_worker_for_name::jk_worker.c (116): found a=0Aworker= worker1<br>=0A> > [debug] wc_get_name_for_type::jk_worker.c (293): F= ound worker=0Atype 'ajp13'<br>=0A> > [debug] uri_worker_map_ext::jk_u= ri_worker_map.c (512):=0AChecking extension for worker 1: worker1 of type a= jp13 (2)<br>=0A> > [debug] wc_get_worker_for_name::jk_worker.c (116):= found a=0Aworker worker1<br>=0A> > [debug] wc_get_name_for_type::jk_= worker.c (293): Found worker=0Atype 'ajp13'<br>=0A> > [debug] uri_wor= ker_map_ext::jk_uri_worker_map.c (512):=0AChecking extension for worker 2: = worker1 of type ajp13 (2)<br>=0A> > [debug] wc_get_worker_for_name::j= k_worker.c (116): found a=0Aworker worker1<br>=0A> > [debug] wc_get_n= ame_for_type::jk_worker.c (293): Found worker=0Atype 'ajp13'<br>=0A> >= ; [debug] uri_worker_map_ext::jk_uri_worker_map.c (512):=0AChecking extensi= on for worker 3: worker1 of type ajp13 (2)<br>=0A> > [debug] uri_work= er_map_dump::jk_uri_worker_map.c (171): uri=0Amap dump after extension stri= pping: index=3D0 file=3D'(null)'=0Areject_unsafe=3D0 reload=3D60 modified= =3D0 checked=3D0<br>=0A> > [debug] uri_worker_map_dump::jk_uri_worker= _map.c (176):=0Ageneration 0: size=3D0 nosize=3D0 capacity=3D0<br>=0A> &= gt; [debug] uri_worker_map_dump::jk_uri_worker_map.c (176):=0Ageneration 1:= size=3D4 nosize=3D0 capacity=3D4<br>=0A> > [debug] uri_worker_map_du= mp::jk_uri_worker_map.c (186): NEXT=0A(1) map #0: uri=3D/voltage-gestion/* = worker=3Dworker1=0Acontext=3D/voltage-gestion/* source=3DJkMount type=3DWil= dchar len=3D18<br>=0A> > [debug] uri_worker_map_dump::jk_uri_worker_m= ap.c (186): NEXT=0A(1) map #1: uri=3D/voltage-gestion/ worker=3Dworker1=0Ac= ontext=3D/voltage-gestion/ source=3DJkMount type=3DExact len=3D17<br>=0A>= ; > [debug] uri_worker_map_dump::jk_uri_worker_map.c (186): NEXT=0A(1) m= ap #2: uri=3D/voltage-gestion* worker=3Dworker1=0Acontext=3D/voltage-gestio= n* source=3DJkMount type=3DWildchar len=3D17<br>=0A> > [debug] uri_wo= rker_map_dump::jk_uri_worker_map.c (186): NEXT=0A(1) map #3: uri=3D/voltage= -gestion worker=3Dworker1=0Acontext=3D/voltage-gestion source=3DJkMount typ= e=3DExact len=3D16<br>=0A> > etc ...<br>=0A> > [debug] do_shm_o= pen_lock::jk_shm.c (353): Duplicated shared=0Amemory lock /etc/httpd/logs/m= od_jk.shm.27847.lock<br>=0A> > [debug] jk_child_init::mod_jk.c (3082)= : Initialized=0Amod_jk/1.2.31 (1026297)<br>=0A> > [debug] jk_translat= e::mod_jk.c (3434): missing uri map for=0Adefault:/voltage-gestion<br>=0A&g= t; > [debug] jk_map_to_storage::mod_jk.c (3593): missing uri map=0Afor d= efault:/voltage-gestion<br>=0A> > <br>=0A> > Here is my configu= ration again :<br>=0A> > <br>=0A> > I changed my /etc/httpd/con= f/httpd.conf (I added 4 contexts=0Afor voltage-gestion):<br>=0A> >=0A= &nb= sp; = &nb= sp; = &nb= sp; = =0A <br>=0A> > <IfModule=0Ajk_module>  = ; &n= bsp;  = ; &n= bsp;  = ; &n= bsp; =0A <br>= =0A> > JkWorkersFile=0A/etc/httpd/conf/workers.properties = &nb= sp; = &nb= sp; =0A <br>=0A> > JkShmF= ile=0A/etc/httpd/logs/mod_jk.shm &= nbsp; &nbs= p; &= nbsp; &nbs= p; &= nbsp; =0A <br>=0A> > JkLogFile=0A/etc/httpd/logs/mod_jk.log&n= bsp;  = ; &n= bsp;  = ; &n= bsp; =0A <br>=0A> >= JkLogLevel=0Adebug &n= bsp;  = ; &n= bsp;  = ; &n= bsp;  = ; =0A <br>=0A> > JkLogSta= mpFormat "[%a %b %d %H:%M:%S %Y]=0A" &nb= sp; = &nb= sp; = <br>=0A> > JkR= equestLogFormat "%w %m %V=0A%T" &n= bsp;  = ; &n= bsp;  = ; &n= bsp; <br>=0A> > JKMountCopy=0AOn &= nbsp; &nbs= p; &= nbsp; &nbs= p; &= nbsp; &nbs= p; &= nbsp; =0A <br>=0A> > JkMount /voltage-gesti= on/*=0Aworker1 &= nbsp; &nbs= p; &= nbsp; &nbs= p; &= nbsp; <br>=0A> > jkMount /voltage-gestion*=0Aworker1  = ; &n= bsp;  = ; &n= bsp;  = ; <br>=0A> > jk= Mount /voltage-gestion=0Aworker1 &= nbsp; &nbs= p; &= nbsp; &nbs= p; &= nbsp; <br>=0A> > jkMount /voltage-gesti= on/=0Aworker1 &n= bsp;  = ; &n= bsp;  = ; &n= bsp; <br>=0A> > </IfModule> = &nb= sp; <br>=0A> > <br>=0A> > <br>=0A> > I am not running any= Virtual Host. <br>=0A> > <br>=0A> > /etc/httpd/con= f/workers.properties :<br>=0A> > <br>=0A> > worker.list=3Dworke= r1<br>=0A> > # Define worker1<br>=0A> > worker.worker1.port=3D8= 009<br>=0A> > worker.worker1.host=3Dlocalhost<br>=0A> > worker.= worker1.type=3Dajp13<br>=0A> > <br>=0A> > <br>=0A> > And = regarding Jonas,<br>=0A> > this is the line that i uncommented both o= n=0Atomcat6-server.xml and tomcat7-server.xml :<br>=0A> > <br>=0A>= > <!-- Define an AJP 1.3 Connector on port 9009 --><br>=0A> &g= t; <Connector port=3D"8009" protocol=3D"AJP/1.3"=0Are= directPort=3D"9043" /><br>=0A> > <br>=0A> > <br>=0A> >= Apache and Jonas are running on the same remote server. So I=0Ajust use lo= calhost as the host.<br>=0A> > Not the IP, not the domain name. Anywa= ys, even if i try these=0Ait does not work. The URI is not mapped.<br>=0A&g= t; > <br>=0A> > The URLs that i am trying to hit is :<br>=0A> &= gt; <a rel=3D"nofollow" class=3D"yiv662066555moz-txt-link-freetext">http://= </a><IP>:80/voltage-gestion<br>=0A> > <a rel=3D"nofollow" class= =3D"yiv662066555moz-txt-link-freetext">http://</a><hostname>:80/volta= ge-gestion<br>=0A> > <br>=0A> > <br>=0A> > None works, I = get the same error : missing uri map for=0Adefault:/voltage-gestion<br>=0A&= gt; > <br>=0A> > Any idea ? Thanks<br>=0A> > <br>=0A> >= ; <br>=0A> > <br>=0A> > <br>=0A> > ______________________= __________<br>=0A> > From: Benoit Pelletier <<a rel=3D"nofollow" y= mailto=3D"mailto:[email protected]" target=3D"_blank" href=3D"mailt= o:[email protected]">[email protected]</a>><br>=0A> &= gt; To: <a rel=3D"nofollow" ymailto=3D"mailto:[email protected]" target=3D"_bla= nk" href=3D"mailto:[email protected]">[email protected]</a><br>=0A> > Sent: M= onday, October 3, 2011 9:39 AM<br>=0A> > Subject: [jonas] Re: Re: Re:= Re: Re: Re: Jonas 5.2.1 and=0AApache mod_jk<br>=0A> > <br>=0A> &g= t; <br>=0A> > Hi All,<br>=0A> > <br>=0A> > Hi Celinio<br>= =0A> >><br>=0A> >>Hmm... Where did you read that?<br>=0A&= gt; >><br>=0A> >>Anyhow, based on your description of the si= tuation I guess=0Ayour<br>=0A> > workers.properties file is not good.= I think:<br>=0A> >><br>=0A> >><br>=0A> >>JkMoun= t /toto*/* worker1<br>=0A> >>><br>=0A> >>Has to be cor= rected with:<br>=0A> >><br>=0A> >><br>=0A> >>JkM= ount /toto* worker1<br>=0A> >>><br>=0A> > You should add = both<br>=0A> > <br>=0A> > JkMount /toto worker1<br>=0A> >= >JkMount /toto/* worker1<br>=0A> >>JkMountCopy Allou can<br>=0A= > >><br>=0A> >><br>=0A> > BTW, did you take a look = to the mod_jk's logs ? See<br>=0A> > /etc/httpd/logs/mod_jk.log. If n= eeded, you may enable the=0Adebug level.<br>=0A> > <br>=0A> > R= egards<br>=0A> > <br>=0A> > <br>=0A> > <br>=0A> >&g= t;or<br>=0A> >><br>=0A> >><br>=0A> >>JkMount /to= to/* worker1<br>=0A> >>><br>=0A> >>Also, try visiting = http://blabla.com:80/toto/<br>=0A> > (with the final slash)<br>=0A>= ; >><br>=0A> >>Thank you<br>=0A> >><br>=0A> >= ><br>=0A> >>S. Ali Tokmen<br>=0A> > http://ali.tokmen.com= / GSM (ch): +41 79 207 29 22 [Swisscom]<br>=0A> > GSM (fr): +33 66 43= 00 555 [Orange]<br>=0A> > GSM (tr): +90 555 266 52 73 [Avea] My AIM,= ICQ, MSN Messenger=0Aand Yahoo IM<br>=0A> > contact details are on h= ttp://contact.ali.tokmen.com<br>=0A> >>On 2011/10/02 15:16, Celini= o Fernandes wrote: <br>=0A> >>Really ? I read that when it comes t= o load balancing and<br>=0A> > failure detection, mod_jk is better th= an mod_proxy. <br>=0A> >>><br>=0A> >>>Anyways, back= to my problem :<br>=0A> >>>If i hit the URL http://blabla.com:= 80/toto<br>=0A> > (port 80) it does not work. I get a "Not found" err= or: "The=0Arequested<br>=0A> > URL /toto/ was not found on this serve= r."<br>=0A> >>><br>=0A> >>>The URL http://blabla.co= m:80/works. <br>=0A> > Same thing whether i use the IP or = the hostname in worker's=0Ahost<br>=0A> > definition:<br>=0A> >= >>worker.worker1.host<br>=0A> >>><br>=0A> >>>= I made another change in both tomcat6-server.xml and<br>=0A> > tomcat= 7-server.xml, I added the jvmRoute to the worker :<br>=0A> >>>&= nbsp;<Engine name=3D"JOnAS" defaultHost=3D"localhost"=0AjvmRoute=3D"work= er1"><br>=0A> >>> <br>=0A> >>> <br>=0A= > >>>So, am i missing something ? <br>=0A> >>>I do = not want to do any load-balancing at the moment=0A(i only have one<br>=0A&g= t; > instance of Jonas anyways), I just want<br>=0A> >>>Apac= he to redirect the request so that Jonas handles=0Ait.<br>=0A> >>&= gt;Thanks for helping.<br>=0A> >>><br>=0A> >>><br>= =0A> >>><br>=0A> >>>_______________________________= _<br>=0A> >>>From: S. Ali Tokmen <<a rel=3D"nofollow" ymailt= o=3D"mailto:[email protected]" target=3D"_blank" href=3D"mailto:nospa= [email protected]">[email protected]</a>><br>=0A> >>>= To: <a rel=3D"nofollow" ymailto=3D"mailto:[email protected]" target=3D"_blank" = href=3D"mailto:[email protected]">[email protected]</a><br>=0A> >>>Sent= : Sunday,<br>=0A> > October 2, 2011 1:02 AM<br>=0A> >>>Su= bject: [jonas] Re:<br>=0A> > Re: Re: Jonas 5.2.1 and Apache mod_jk<br= >=0A> >>><br>=0A> >>><br>=0A> >>>Hi Cel= inio<br>=0A> >>><br>=0A> >>>OK, well my personal re= commendation is mod_proxy_ajp.=0AIt is officially<br>=0A> > maintaine= d by the httpd project and has a great number of=0Astability and<br>=0A>= > performance improvements.<br>=0A> >>><br>=0A> >>= >If you want to hit the AJP port, you should connect to=0Athe Apache htt= pd<br>=0A> > server; i.e. not visit on the 9000 port but the 80 (or= =0Awhatever other<br>=0A> > Apache httpd) port.<br>=0A> >>&g= t;<br>=0A> >>>Cheers<br>=0A> >>><br>=0A> >>= ;><br>=0A> >>>S. Ali Tokmen <a rel=3D"nofollow" target=3D"_b= lank" href=3D"http://ali.tokmen.com/">http://ali.tokmen.com/</a>=0AGSM (ch)= : +41 79 207 29 22 [Swisscom]<br>=0A> > GSM (fr): +33 66 43 00 555 [O= range]<br>=0A> > GSM (tr): +90 555 266 52 73 [Avea] My AIM, ICQ, MSN = Messenger=0Aand Yahoo IM<br>=0A> > contact details are on <a rel=3D"n= ofollow" target=3D"_blank" href=3D"http://contact.ali.tokmen.com">http://co= ntact.ali.tokmen.com</a><br>=0A> >>>On 2011/10/01 19:26, Celini= o Fernandes wrote: <br>=0A> >>>Hi Ali,<br>=0A> >>>&= gt;there is no specific reason.<br>=0A> >>>><br>=0A> >= >>><br>=0A> >>>>Anyways, how can i make sure my web= app is using the<br>=0A> > mod_jk connector ?<br>=0A> >>>= >I have installed and configured it in Apache and I<br>=0A> > have= also configured it in Jonas.<br>=0A> >>>>I can also see the= AJP/JK connector configured<br>=0A> > on port 8009 in the Jonas cons= ole admin.<br>=0A> >>>><br>=0A> >>>><br>=0A&g= t; >>>>Now how do i make sure my request hits Apache=0Afirst an= d that<br>=0A> > Apache redirects it to Jonas then ?<br>=0A> >&= gt;>><br>=0A> >>>><br>=0A> >>>><br>=0A&= gt; >>>><br>=0A> >>>>___________________________= _____<br>=0A> >>>>From: S. Ali Tokmen <<a rel=3D"nofollow= " ymailto=3D"mailto:[email protected]" target=3D"_blank" href=3D"mail= to:[email protected]">[email protected]</a>><br>=0A> >= >>>To: <a rel=3D"nofollow" ymailto=3D"mailto:[email protected]" target= =3D"_blank" href=3D"mailto:[email protected]">[email protected]</a><br>=0A> >= >>>Sent: Saturday,<br>=0A> > October 1, 2011 5:49 PM<br>=0A&= gt; >>>>Subject: [jonas]<br>=0A> > Re: Jonas 5.2.1 and Ap= ache mod_jk<br>=0A> >>>><br>=0A> >>>><br>=0A&= gt; >>>>Hi Celinio<br>=0A> >>>><br>=0A> >&= gt;>>Is there a spacific reason why you're using mod_jk=0Aunder Apach= e httpd<br>=0A> > 2.2 as opposed to the already embedded mod_proxy_aj= p?<br>=0A> >>>><br>=0A> >>>>Thank you<br>=0A&= gt; >>>><br>=0A> >>>><br>=0A> >>>>= ;S. Ali Tokmen <a rel=3D"nofollow" target=3D"_blank" href=3D"http://ali.tok= men.com/">http://ali.tokmen.com/</a>=0AGSM (ch): +41 79 207 29 22 [Swisscom= ]<br>=0A> > GSM (fr): +33 66 43 00 555 [Orange]<br>=0A> > GSM (= tr): +90 555 266 52 73 [Avea] My AIM, ICQ, MSN Messenger=0Aand Yahoo IM<br>= =0A> > contact details are on <a rel=3D"nofollow" target=3D"_blank" h= ref=3D"http://contact.ali.tokmen.com">http://contact.ali.tokmen.com</a><br>= =0A> >>>>On 2011/10/01 18:37, Celinio Fernandes wrote: <br>= =0A> >>>>Hi,<br>=0A> >>>>>I am trying to i= nterface my instance of Jonas=0A5.2.1 with<br>=0A> > the connector mo= d_jk, in a Linux environment (CentOS).<br>=0A> >>>>><br>= =0A> >>>>>I have added the module <a rel=3D"nofollow" tar= get=3D"_blank" href=3D"http://mod_jk.so">mod_jk.so</a>=0Ato /usr/lib64/http= d/modules.<br>=0A> >>>>><br>=0A> >>>>><= br>=0A> >>>>>My version of Apache is 2.2<br>=0A> >&= gt;>>><br>=0A> >>>>><br>=0A> >>>>= >I have configured /etc/httpd/conf/httpd.conf=0Aas the<br>=0A> > f= ollowing :<br>=0A> >>>>><br>=0A> >>>>><= br>=0A> >>>>>LoadModule jk_module modules/mod_jk.so <br>= =0A> >>>>><br>=0A> >>>>><IfModule jk= _module><br>=0A> >>>>># Ou trouver workers.properties = ?<br>=0A> >>>>>JkWorkersFile=0A/etc/httpd/conf/workers.pr= operties<br>=0A> >>>>># Ou mettre la memoire partagee de = jk<br>=0A> >>>>>JkShmFile /etc/httpd/logs/mod_jk.shm<br>= =0A> >>>>># Ou mettre les logs jk<br>=0A> >>>= >>JkLogFile /etc/httpd/logs/mod_jk.log<br>=0A> >>>>>= ;# Positionner le niveau des logs jk=0A[debug/error/info]<br>=0A> >&g= t;>>>JkLogLevel info<br>=0A> >>>>># Selectionner= lef ormat des logs pour le=0Atimestamp<br>=0A> >>>>>JkLo= gStampFormat "[%a %b %d %H:%M:%S %Y] "<br>=0A> >>>>>#Form= at des logs<br>=0A> >>>>>JkRequestLogFormat "%w %m %V %T"= <br>=0A> >>>>># Envoyer les contextes dont le nom commenc= e=0Apar test : /toto* vers le<br>=0A> > worker nomm=E9 worker1<br>=0A= > >>>>>JkMount /toto*/* worker1<br>=0A> >>>&g= t;># On peut placer ici plusieurs JkMount si on a=0Aplusieurs contextes<= br>=0A> > traites<br>=0A> >>>>># par des workers di= fferents<br>=0A> >>>>></IfModule><br>=0A> >&g= t;>>><br>=0A> >>>>><br>=0A> >>>>&= gt;I have added the following worker in<br>=0A> > /etc/httpd/conf/wor= ker.properties :<br>=0A> >>>>><br>=0A> >>>>= ;><br>=0A> >>>>> #Define 1 worker<br>=0A> >= >>>> worker.list=3Dworker1<br>=0A> >>>>>= <br>=0A> >>>>> #Set properties for worker1 (aj= p13)<br>=0A> >>>>> worker.worker1.type=3Dajp13<br>= =0A> >>>>> worker.worker1.host=3D<a rel=3D"nofollow"= target=3D"_blank" href=3D"http://blabla.com">blabla.com</a><br>=0A> >= ;>>>> worker.worker1.port=3D8009<br>=0A> >>>&g= t;><br>=0A> >>>>><br>=0A> >>>>><br>= =0A> >>>>>Under /home/test/jonas-full-5.2.1/conf/ I= =0Ahave configured<br>=0A> > both tomcat6-server.xml and tomcat7-serv= er.xml (since I do=0Anot know<br>=0A> > which one is used). I have un= commented the following line=0A(changed port<br>=0A> > 9009 to 8009)<= br>=0A> >>>>><br>=0A> >>>>><br>=0A> = >>>>><br>=0A> >>>>> <Connector po= rt=3D"8009" protocol=3D"AJP/1.3"<br>=0A> > redirectPort=3D"9043" />= ;<br>=0A> >>>>><br>=0A> >>>>><br>=0A>= ; >>>>>My web app HTTP port in Jonas is configured to=0A9000= .<br>=0A> >>>>>When I hit the URL http://blabla.com:9000/= toto<br>=0A> > I can see in the Jonas logs that Jonas is listening to= that=0Aconnector<br>=0A> > but I have no idea whether Apache has han= dled the request or=0Anot.<br>=0A> >>>>><br>=0A> >&= gt;>>><br>=0A> >>>>>What can i do ? Am i missing= something ?<br>=0A> >>>>>Thanks for helping.<br>=0A> = >>>><br>=0A> >>>><br>=0A> >>><br>=0A= > >>><br>=0A> > <br>=0A> > <br>=0A> > --=0A--= --------------------------------------------------------------<br>=0A> &= gt; Benoit Pelletier<br>=0A> > http://jonas.ow2.org<br>=0A> > B= ull, Architect of an Open World TM<br>=0A> > http://www.bull.com <br>= =0A </div>=0A </div>=0A <br>=0A <br>=0A </div>=0A </div>= =0A </div>=0A </blockquote>=0A <br>=0A <br>=0A <pre class=3D"yiv6620= 66555moz-signature">-- =0A=0A----------------------------------------------= ------------------=0ABenoit Pelletier=0A<a rel=3D"nofollow" class=3D"yiv662= 066555moz-txt-link-freetext" target=3D"_blank" href=3D"http://jonas.ow2.org= ">http://jonas.ow2.org</a>=0ABull, Architect of an Open World TM=0A<a rel= =3D"nofollow" class=3D"yiv662066555moz-txt-link-freetext" target=3D"_blank"= href=3D"http://www.bull.com">http://www.bull.com</a> =0A </pre>=0A </div= >=0A </div>=0A <br>=0A <br>=0A </div>=0A </div>=0A </div>=0A</blockqu= ote>=0A<br>=0A<br>=0A<pre class=3D"yiv662066555moz-signature">-- =0A=0A----= ------------------------------------------------------------=0ABenoit Pelle= tier=0A<a rel=3D"nofollow" class=3D"yiv662066555moz-txt-link-freetext" targ= et=3D"_blank" href=3D"http://jonas.ow2.org">http://jonas.ow2.org</a>=0ABull= , Architect of an Open World TM=0A<a rel=3D"nofollow" class=3D"yiv662066555= moz-txt-link-freetext" target=3D"_blank" href=3D"http://www.bull.com">http:= //www.bull.com</a> =0A</pre>=0A</div>=0A=0A</div><br><br></div></div></div>= </body></html> ---2037237518-2058888765-1318171273=:78594--