Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Jonas 5.2.1 and Apache mod_jk
Celinio Fernandes <[email protected]> Tue, 4 Oct 2011 11:59:02 -0700 (PDT)
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Message-ID | <[email protected]> |
---321410911-386627573-1317754742=:58907 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable It finally worked ! :)=0AWith JkMountCopy All instead of JkMountCopy On.=0A= =0A=0AThanks Benoit.=0A=0AWhat is the difference between JkMountCopy All an= d JkMountcopy On ?=0A=0A=0A=0A=0A=0A________________________________=0AFrom= : Benoit Pelletier <[email protected]>=0ATo: [email protected]=0ASent: = Tuesday, October 4, 2011 10:39 AM=0ASubject: [jonas] Re: Re: Re: Re: Re: Re= : Re: Re: Re: Re: Jonas 5.2.1 and Apache mod_jk=0A=0A=0ATry with=0A=0AJkMou= ntCopy All=0A>=0Arather than =0A=0A=A0=A0=A0 =A0=A0=A0 JkMountcopy On=0A=0A= =0AI did that too, I forgot to mention it.=0A>Any idea what's wrong ?=0A>Th= anks.=0A>=0A>=0A>=0A>=0A>________________________________=0A>From: Son=0ATu= ng Nguyen <[email protected]>=0A>To: [email protected]=0A>Sent: Tuesday, Oc= tober=0A4, 2011 9:09 AM=0A>Subject: [jonas] Re:=0ARe: Re: Re: Re: Re: Re: R= e: Jonas 5.2.1 and Apache mod_jk=0A>=0A>=0A>In jonas's tomcat6-server.xml .= .. =0A>Le 4 oct. 2011 08:58, "Son Tung Nguyen" <[email protected]> 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 what's the name=0Aof y= our jvmroute. Typically, "worker1" in your case.=0A>>=0A>> Le 4 oct. 2011 0= 3:26, "Celinio Fernandes" <[email protected]>=0Aa =E9crit=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_worker.c (116): found a=0Aworker= worker1=0A>> > [debug] wc_get_name_for_type::jk_worker.c (293): Found work= er=0Atype 'ajp13'=0A>> > [debug] uri_worker_map_ext::jk_uri_worker_map.c (5= 12):=0AChecking extension for worker 0: worker1 of type ajp13 (2)=0A>> > [d= ebug] 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=0Atyp= e 'ajp13'=0A>> > [debug] uri_worker_map_ext::jk_uri_worker_map.c (512):=0AC= hecking extension for worker 1: worker1 of type ajp13 (2)=0A>> > [debug] wc= _get_worker_for_name::jk_worker.c (116): found a=0Aworker worker1=0A>> > [d= ebug] 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 e= xtension for worker 2: worker1 of type ajp13 (2)=0A>> > [debug] wc_get_work= er_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>> > [d= ebug] uri_worker_map_ext::jk_uri_worker_map.c (512):=0AChecking extension f= or worker 3: worker1 of type ajp13 (2)=0A>> > [debug] uri_worker_map_dump::= jk_uri_worker_map.c (171): uri=0Amap dump after extension stripping: index= =3D0 file=3D'(null)'=0Areject_unsafe=3D0 reload=3D60 modified=3D0 checked= =3D0=0A>> > [debug] uri_worker_map_dump::jk_uri_worker_map.c (176):=0Agener= ation 0: size=3D0 nosize=3D0 capacity=3D0=0A>> > [debug] uri_worker_map_dum= p::jk_uri_worker_map.c (176):=0Ageneration 1: size=3D4 nosize=3D0 capacity= =3D4=0A>> > [debug] uri_worker_map_dump::jk_uri_worker_map.c (186): NEXT=0A= (1) map #0: uri=3D/voltage-gestion/* worker=3Dworker1=0Acontext=3D/voltage-= gestion/* source=3DJkMount type=3DWildchar len=3D18=0A>> > [debug] uri_work= er_map_dump::jk_uri_worker_map.c (186): NEXT=0A(1) map #1: uri=3D/voltage-g= estion/ worker=3Dworker1=0Acontext=3D/voltage-gestion/ source=3DJkMount typ= e=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=0Acontex= t=3D/voltage-gestion* source=3DJkMount type=3DWildchar len=3D17=0A>> > [deb= ug] uri_worker_map_dump::jk_uri_worker_map.c (186): NEXT=0A(1) map #3: uri= =3D/voltage-gestion worker=3Dworker1=0Acontext=3D/voltage-gestion source=3D= JkMount type=3DExact len=3D16=0A>> > etc ...=0A>> > [debug] do_shm_open_loc= k::jk_shm.c (353): Duplicated shared=0Amemory lock /etc/httpd/logs/mod_jk.s= hm.27847.lock=0A>> > [debug] jk_child_init::mod_jk.c (3082): Initialized=0A= mod_jk/1.2.31 (1026297)=0A>> > [debug] jk_translate::mod_jk.c (3434): missi= ng uri map for=0Adefault:/voltage-gestion=0A>> > [debug] jk_map_to_storage:= :mod_jk.c (3593): missing uri map=0Afor default:/voltage-gestion=0A>> > =0A= >> > Here is my configuration again :=0A>> > =0A>> > I changed my /etc/http= d/conf/httpd.conf (I added 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/con= f/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>> > JkLogStampForma= t "[%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/=0Awo= rker1=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=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.pr= operties :=0A>> > =0A>> > worker.list=3Dworker1=0A>> > # Define worker1=0A>= > > worker.worker1.port=3D8009=0A>> > worker.worker1.host=3Dlocalhost=0A>> = > worker.worker1.type=3Dajp13=0A>> > =0A>> > =0A>> > And regarding Jonas,= =0A>> > this is the line that i uncommented both on=0Atomcat6-server.xml an= d 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 run= ning 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 t= o hit is :=0A>> > http://<IP>:80/voltage-gestion=0A>> > http://<hostname>:8= 0/voltage-gestion=0A>> > =0A>> > =0A>> > None works, I get the same error := missing uri map for=0Adefault:/voltage-gestion=0A>> > =0A>> > Any idea ? T= hanks=0A>> > =0A>> > =0A>> > =0A>> > =0A>> > ______________________________= __=0A>> > From: Benoit Pelletier <[email protected]>=0A>> > To: jon= [email protected]=0A>> > Sent: Monday, October 3, 2011 9:39 AM=0A>> > Subject: [jo= nas] Re: Re: Re: Re: Re: Re: Jonas 5.2.1 and=0AApache mod_jk=0A>> > =0A>> >= =0A>> > Hi All,=0A>> > =0A>> > Hi Celinio=0A>> >>=0A>> >>Hmm... Where did = you read that?=0A>> >>=0A>> >>Anyhow, based on your description of the situ= ation I guess=0Ayour=0A>> > workers.properties 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>> >>JkMountCopy Allou can=0A>> >>=0A>> >>=0A>> > BTW, di= d 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/* work= er1=0A>> >>>=0A>> >>Also, try visiting http://blabla.com:80/toto/=0A>> > (w= ith the final slash)=0A>> >>=0A>> >>Thank you=0A>> >>=0A>> >>=0A>> >>S. Ali= Tokmen=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= 73 [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 balancin= g 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://blab= la.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 wheth= er i use the IP or the hostname in worker's=0Ahost=0A>> > definition:=0A>> = >>>worker.worker1.host=0A>> >>>=0A>> >>>I made another change in both tomca= t6-server.xml and=0A>> > tomcat7-server.xml, I added the jvmRoute to the wo= rker :=0A>> >>>=A0<Engine name=3D"JOnAS" defaultHost=3D"localhost"=0AjvmRou= te=3D"worker1">=0A>> >>>=A0=0A>> >>>=A0=0A>> >>>So, am i missing something = ? =0A>> >>>I do not want to do any load-balancing at the moment=0A(i only h= ave one=0A>> > instance of Jonas anyways), I just want=0A>> >>>Apache to re= direct 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: [jon= as] Re:=0A>> > Re: Re: Jonas 5.2.1 and Apache mod_jk=0A>> >>>=0A>> >>>=0A>>= >>>Hi Celinio=0A>> >>>=0A>> >>>OK, well my personal recommendation is mod_= proxy_ajp.=0AIt is officially=0A>> > maintained by the httpd project and ha= s a great number of=0Astability and=0A>> > performance improvements.=0A>> >= >>=0A>> >>>If you want to hit the AJP port, you should connect to=0Athe Apa= che httpd=0A>> > server; i.e. not visit on the 9000 port but the 80 (or=0Aw= hatever other=0A>> > Apache httpd) port.=0A>> >>>=0A>> >>>Cheers=0A>> >>>= =0A>> >>>=0A>> >>>S. Ali Tokmen 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 http://contact.ali.tokmen.com=0A>> >>>On 2011/10/0= 1 19:26, Celinio Fernandes wrote: =0A>> >>>Hi Ali,=0A>> >>>>there is no spe= cific 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 also see the AJP/JK connector configured=0A>> > on port 8009 in= the Jonas console admin.=0A>> >>>>=0A>> >>>>=0A>> >>>>Now how do i make su= re my request hits Apache=0Afirst and that=0A>> > Apache redirects it to Jo= nas 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:= 49 PM=0A>> >>>>Subject: [jonas]=0A>> > Re: Jonas 5.2.1 and Apache mod_jk=0A= >> >>>>=0A>> >>>>=0A>> >>>>Hi Celinio=0A>> >>>>=0A>> >>>>Is there a spacifi= c reason why you're using mod_jk=0Aunder Apache httpd=0A>> > 2.2 as opposed= to the already embedded mod_proxy_ajp?=0A>> >>>>=0A>> >>>>Thank you=0A>> >= >>>=0A>> >>>>=0A>> >>>>S. Ali Tokmen http://ali.tokmen.com/ GSM (ch): +41 7= 9 207 29 22 [Swisscom]=0A>> > GSM (fr): +33 66 43 00 555 [Orange]=0A>> > GS= M (tr): +90 555 266 52 73 [Avea] My AIM, ICQ, MSN Messenger=0Aand Yahoo IM= =0A>> > contact details are on http://contact.ali.tokmen.com=0A>> >>>>On 20= 11/10/01 18:37, Celinio Fernandes wrote: =0A>> >>>>Hi,=0A>> >>>>>I am tryin= g to interface my instance of Jonas=0A5.2.1 with=0A>> > the connector mod_j= k, in a Linux environment (CentOS).=0A>> >>>>>=0A>> >>>>>I have added the m= odule mod_jk.so to /usr/lib64/httpd/modules.=0A>> >>>>>=0A>> >>>>>=0A>> >>>= >>My version of Apache is 2.2=0A>> >>>>>=0A>> >>>>>=0A>> >>>>>I have config= ured /etc/httpd/conf/httpd.conf=0Aas the=0A>> > following :=0A>> >>>>>=0A>>= >>>>>=0A>> >>>>>LoadModule jk_module modules/mod_jk.so =0A>> >>>>>=0A>> >>= >>><IfModule jk_module>=0A>> >>>>># Ou trouver workers.properties ?=0A>> >>= >>>JkWorkersFile=0A/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=0A[debug/error/info]= =0A>> >>>>>JkLogLevel info=0A>> >>>>># Selectionner lef ormat des logs pour= le=0Atimestamp=0A>> >>>>>JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "=0A>> >= >>>>#Format des logs=0A>> >>>>>JkRequestLogFormat "%w %m %V %T"=0A>> >>>>>#= Envoyer les contextes dont le nom commence=0Apar test : /toto* vers le=0A>= > > worker nomm=E9 worker1=0A>> >>>>>JkMount /toto*/* worker1=0A>> >>>>># O= n peut placer ici plusieurs JkMount si on a=0Aplusieurs contextes=0A>> > tr= aites=0A>> >>>>># par des workers differents=0A>> >>>>></IfModule>=0A>> >>>= >>=0A>> >>>>>=0A>> >>>>>I have added the following worker in=0A>> > /etc/ht= tpd/conf/worker.properties :=0A>> >>>>>=0A>> >>>>>=0A>> >>>>>=A0#Define 1 w= orker=0A>> >>>>>=A0worker.list=3Dworker1=0A>> >>>>>=A0=0A>> >>>>>=A0#Set pr= operties for worker1 (ajp13)=0A>> >>>>>=A0worker.worker1.type=3Dajp13=0A>> = >>>>>=A0worker.worker1.host=3Dblabla.com=0A>> >>>>>=A0worker.worker1.port= =3D8009=0A>> >>>>>=0A>> >>>>>=0A>> >>>>>=0A>> >>>>>Under /home/test/jonas-f= ull-5.2.1/conf/=A0 I=0Ahave configured=0A>> > both tomcat6-server.xml and t= omcat7-server.xml (since I do=0Anot know=0A>> > which one is used). I have = uncommented 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>> >>>>>When I h= it the URL http://blabla.com:9000/toto=0A>> > I can see in the Jonas logs t= hat Jonas is listening to that=0Aconnector=0A>> > but I have no idea whethe= r 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-- --------------------------= --------------------------------------=0ABenoit Pelletier http://jonas.ow2.= org Bull, Architect of an Open World TM http://www.bull.com ---321410911-386627573-1317754742=:58907 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>It finally= worked ! :)</span></div><div><span>With </span><font color=3D"#330099">JkM= ountCopy All instead of </font><font color=3D"#330099">JkMountCopy On.<br><= /font></div><div><br><span></span></div><div><span>Thanks Benoit.</span></d= iv><div><br><span></span></div><div><span>What is the difference between </= span><font color=3D"#330099">JkMountCopy All and </font><font color=3D"#cc0= 000">JkMountcopy On ?<br></font></div><div><br><span></span></div><div><spa= n></span></div><div><br></div><div style=3D"font-family: times new roman, n= ew york, times, serif; font-size: 12pt;"><div style=3D"font-family: times n= ew roman, new york, times, serif; font-size: 12pt;"><font face=3D"Arial" si= ze=3D"2"><hr size=3D"1"><b><span style=3D"font-weight:bold;">From:</span></= b> Benoit Pelletier <[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> Tuesday, October 4, 2011 10:39 AM<br><b><span style=3D"= font-weight: bold;">Subject:</span></b> [jonas] Re: Re: Re: Re: Re: Re: Re:= Re: Re: Re: Jonas 5.2.1 and Apache mod_jk<br></font><br>=0A<div id=3D"yiv9= 69961730">=0A=0A=0A =0A=0A<div>=0ATry with<br>=0A<blockquote><font color= =3D"#330099">JkMountCopy All</font><br>=0A</blockquote>=0Arather than <br>= =0A<br>=0A<font color=3D"#cc0000"> JkM= ountcopy On</font><br>=0A<br>=0A<blockquote type=3D"cite">=0A <div style= =3D"color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);font-family:time= s 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 <d= iv><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 rom= an, new york, times, serif;font-size:12pt;"><font face=3D"Arial" size=3D"2"= >=0A <hr size=3D"1"><b><span style=3D"font-weight:bold;">From:</span></b> = Son=0ATung Nguyen <a rel=3D"nofollow" class=3D"yiv969961730moz-txt-link-rfc= 2396E" ymailto=3D"mailto:[email protected]" target=3D"_blank" href=3D"m= ailto:[email protected]"><[email protected]></a><br>=0A <b><= span style=3D"font-weight:bold;">To:</span></b> <a rel=3D"nofollow" class= =3D"yiv969961730moz-txt-link-abbreviated" ymailto=3D"mailto:[email protected]" = target=3D"_blank" href=3D"mailto:[email protected]">[email protected]</a><br>=0A <= b><span style=3D"font-weight:bold;">Sent:</span></b> Tuesday, October=0A4, = 2011 9:09 AM<br>=0A <b><span 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"yiv969961730">=0A <div>In jonas's tomca= t6-server.xml ... </div>=0A <div>Le 4 oct. 2011 08:58, "Son Tung Nguyen" &= lt;<a rel=3D"nofollow" ymailto=3D"mailto:[email protected]" target=3D"_= blank" href=3D"mailto:[email protected]">[email protected]</a>> = a=0A=E9crit :<br>=0A><br>=0A> Hi, you must also configure your e= ngine for that. <br>=0A> In your config of the Engine, you have to preci= se what's the name=0Aof your jvmroute. Typically, "worker1" in your case.<b= r>=0A><br>=0A> Le 4 oct. 2011 03:26, "Celinio Fernandes" <<a rel= =3D"nofollow" ymailto=3D"mailto:[email protected]" target=3D"_blank" href=3D= "mailto:[email protected]">[email protected]</a>>=0Aa =E9crit :<br>= =0A><br>=0A> > Hi all,<br>=0A> > thanks for helping.<br>=0A&= gt; > <br>=0A> > I changed the log level to debug and here it what= it says in=0A/etc/httpd/logs/mod_jk.log :<br>=0A> > <br>=0A> >= [info] init_jk::mod_jk.c (3198): mod_jk/1.2.31 (1026297)=0Ainitialized<br>= =0A> > [debug] wc_get_worker_for_name::jk_worker.c (116): found a=0Aw= orker worker1<br>=0A> > [debug] wc_get_name_for_type::jk_worker.c (29= 3): Found worker=0Atype 'ajp13'<br>=0A> > [debug] uri_worker_map_ext:= :jk_uri_worker_map.c (512):=0AChecking extension for worker 0: worker1 of t= ype ajp13 (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] ur= i_worker_map_ext::jk_uri_worker_map.c (512):=0AChecking extension for worke= r 1: worker1 of type ajp13 (2)<br>=0A> > [debug] wc_get_worker_for_na= me::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_worker_map_ext::jk_uri_worker_map.c (512):=0AChecking ex= tension for worker 2: worker1 of type ajp13 (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_worker_map_ext::jk_uri_worker_map.c (51= 2):=0AChecking extension for worker 3: worker1 of type ajp13 (2)<br>=0A>= > [debug] uri_worker_map_dump::jk_uri_worker_map.c (171): uri=0Amap dum= p after extension stripping: 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 capac= ity=3D0<br>=0A> > [debug] uri_worker_map_dump::jk_uri_worker_map.c (1= 76):=0Ageneration 1: size=3D4 nosize=3D0 capacity=3D4<br>=0A> > [debu= g] uri_worker_map_dump::jk_uri_worker_map.c (186): NEXT=0A(1) map #0: uri= =3D/voltage-gestion/* worker=3Dworker1=0Acontext=3D/voltage-gestion/* sourc= e=3DJkMount type=3DWildchar len=3D18<br>=0A> > [debug] uri_worker_map= _dump::jk_uri_worker_map.c (186): NEXT=0A(1) map #1: uri=3D/voltage-gestion= / worker=3Dworker1=0Acontext=3D/voltage-gestion/ source=3DJkMount type=3DEx= act len=3D17<br>=0A> > [debug] uri_worker_map_dump::jk_uri_worker_map= .c (186): NEXT=0A(1) map #2: uri=3D/voltage-gestion* worker=3Dworker1=0Acon= text=3D/voltage-gestion* source=3DJkMount type=3DWildchar len=3D17<br>=0A&g= t; > [debug] uri_worker_map_dump::jk_uri_worker_map.c (186): NEXT=0A(1) = map #3: uri=3D/voltage-gestion worker=3Dworker1=0Acontext=3D/voltage-gestio= n source=3DJkMount type=3DExact len=3D16<br>=0A> > etc ...<br>=0A>= > [debug] do_shm_open_lock::jk_shm.c (353): Duplicated shared=0Amemory = lock /etc/httpd/logs/mod_jk.shm.27847.lock<br>=0A> > [debug] jk_child= _init::mod_jk.c (3082): Initialized=0Amod_jk/1.2.31 (1026297)<br>=0A> &g= t; [debug] jk_translate::mod_jk.c (3434): missing uri map for=0Adefault:/vo= ltage-gestion<br>=0A> > [debug] jk_map_to_storage::mod_jk.c (3593): m= issing uri map=0Afor default:/voltage-gestion<br>=0A> > <br>=0A> &= gt; Here is my configuration again :<br>=0A> > <br>=0A> > I cha= nged my /etc/httpd/conf/httpd.conf (I added 4 contexts=0Afor voltage-gestio= n):<br>=0A> >=0A  = ; &n= bsp;  = ; &n= bsp;  = ; &n= bsp; =0A <br>=0A> > <IfModule=0Ajk_m= odule> = &nb= sp; = &nb= sp; = &nb= sp; =0A <br>=0A> > JkWorkersFile=0A/etc/httpd/conf/workers.prop= erties &nb= sp; = &nb= sp; =0A <br>=0A= > > JkShmFile=0A/etc/httpd/logs/mod_jk.shm &nb= sp; = &nb= sp; = &nb= sp; =0A <br>=0A> > JkLogFile=0A/etc/httpd/log= s/mod_jk.log &nb= sp; = &nb= sp; = =0A <br>= =0A> > JkLogLevel=0Adebug &n= bsp;  = ; &n= bsp;  = ; &n= bsp;  = ; =0A <br>=0A> >= ; JkLogStampFormat "[%a %b %d %H:%M:%S %Y]=0A"  = ; &n= bsp;  = ; &n= bsp; <br>=0A>= ; > JkRequestLogFormat "%w %m %V=0A%T" &nbs= p; &= nbsp; &nbs= p; &= nbsp; &nbs= p; <br>=0A> > JKMountCopy= =0AOn &nbs= p; &= nbsp; &nbs= p; &= nbsp; &nbs= p; &= nbsp; =0A <br>=0A> > JkMount /vol= tage-gestion/*=0Aworker1 &nb= sp; = &nb= sp; = &nb= sp; <br>=0A> > jkMount /voltage-gestion*=0Aworker1 &= nbsp; &nbs= p; &= nbsp; &nbs= p; &= nbsp; <br>=0A&g= t; > jkMount /voltage-gestion=0Aworker1 &nb= sp; = &nb= sp; = &nb= sp; <br>=0A> > jkMount /vol= tage-gestion/=0Aworker1 &nbs= p; &= nbsp; &nbs= p; &= nbsp; &nbs= p; <br>=0A> > </IfModule> &n= bsp;  = ; <br>=0A> > <br>=0A> > <br>=0A> > I am not r= unning any Virtual Host. <br>=0A> > <br>=0A> > /etc= /httpd/conf/workers.properties :<br>=0A> > <br>=0A> > worker.li= st=3Dworker1<br>=0A> > # Define worker1<br>=0A> > worker.worker= 1.port=3D8009<br>=0A> > worker.worker1.host=3Dlocalhost<br>=0A> &g= t; worker.worker1.type=3Dajp13<br>=0A> > <br>=0A> > <br>=0A>= > And regarding Jonas,<br>=0A> > this is the line that i uncommen= ted both on=0Atomcat6-server.xml and tomcat7-server.xml :<br>=0A> > <= br>=0A> > <!-- Define an AJP 1.3 Connector on port 9009 --><br>= =0A> > <Connector port=3D"8009" protocol=3D"AJP= /1.3"=0AredirectPort=3D"9043" /><br>=0A> > <br>=0A> > <br>= =0A> > Apache and Jonas are running on the same remote server. So I= =0Ajust use localhost as the host.<br>=0A> > Not the IP, not the doma= in name. Anyways, even if i try these=0Ait does not work. The URI is not ma= pped.<br>=0A> > <br>=0A> > The URLs that i am trying to hit is = :<br>=0A> > <a rel=3D"nofollow" class=3D"yiv969961730moz-txt-link-fre= etext">http://</a><IP>:80/voltage-gestion<br>=0A> > <a rel=3D"n= ofollow" class=3D"yiv969961730moz-txt-link-freetext">http://</a><hostnam= e>:80/voltage-gestion<br>=0A> > <br>=0A> > <br>=0A> > = None works, I get the same error : missing uri map for=0Adefault:/voltage-g= estion<br>=0A> > <br>=0A> > Any idea ? Thanks<br>=0A> > <= br>=0A> > <br>=0A> > <br>=0A> > <br>=0A> > ________= ________________________<br>=0A> > From: Benoit Pelletier <<a rel= =3D"nofollow" ymailto=3D"mailto:[email protected]" target=3D"_blank= " href=3D"mailto:[email protected]">[email protected]</a>&g= t;<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&g= t; > Sent: Monday, October 3, 2011 9:39 AM<br>=0A> > Subject: [jon= as] Re: Re: Re: Re: Re: Re: Jonas 5.2.1 and=0AApache mod_jk<br>=0A> >= <br>=0A> > <br>=0A> > Hi All,<br>=0A> > <br>=0A> >= Hi Celinio<br>=0A> >><br>=0A> >>Hmm... Where did you rea= d that?<br>=0A> >><br>=0A> >>Anyhow, based on your descri= ption of the situation I guess=0Ayour<br>=0A> > workers.properties fi= le is not good. I think:<br>=0A> >><br>=0A> >><br>=0A>= >>JkMount /toto*/* worker1<br>=0A> >>><br>=0A> >&g= t;Has to be corrected with:<br>=0A> >><br>=0A> >><br>=0A&= gt; >>JkMount /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 A= llou can<br>=0A> >><br>=0A> >><br>=0A> > BTW, did y= ou take a look to the mod_jk's logs ? See<br>=0A> > /etc/httpd/logs/m= od_jk.log. If needed, you may enable the=0Adebug level.<br>=0A> > <br= >=0A> > Regards<br>=0A> > <br>=0A> > <br>=0A> > <br= >=0A> >>or<br>=0A> >><br>=0A> >><br>=0A> >= >JkMount /toto/* worker1<br>=0A> >>><br>=0A> >>Also= , try visiting http://blabla.com:80/toto/<br>=0A> > (with the final s= lash)<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 d= etails are on http://contact.ali.tokmen.com<br>=0A> >>On 2011/10/0= 2 15:16, Celinio Fernandes wrote: <br>=0A> >>Really ? I read that = when it comes to load balancing and<br>=0A> > failure detection, mod_= jk is better than mod_proxy. <br>=0A> >>><br>=0A> >>&g= t;Anyways, back to my problem :<br>=0A> >>>If i hit the URL htt= p://blabla.com:80/toto<br>=0A> > (port 80) it does not work. I get a = "Not found" error: "The=0Arequested<br>=0A> > URL /toto/ was not foun= d on this server."<br>=0A> >>><br>=0A> >>>The URL h= ttp://blabla.com: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&g= t; >>>I made another change in both tomcat6-server.xml and<br>=0A&= gt; > tomcat7-server.xml, I added the jvmRoute to the worker :<br>=0A>= ; >>> <Engine name=3D"JOnAS" defaultHost=3D"localhost"=0Aj= vmRoute=3D"worker1"><br>=0A> >>> <br>=0A> >>&g= t; <br>=0A> >>>So, am i missing something ? <br>=0A> &g= t;>>I do not want to do any load-balancing at the moment=0A(i only ha= ve one<br>=0A> > instance of Jonas anyways), I just want<br>=0A> &= gt;>>Apache to redirect the request so that Jonas handles=0Ait.<br>= =0A> >>>Thanks for helping.<br>=0A> >>><br>=0A> = >>><br>=0A> >>><br>=0A> >>>_______________= _________________<br>=0A> >>>From: S. Ali Tokmen <<a rel=3D"= nofollow" ymailto=3D"mailto:[email protected]" target=3D"_blank" href= =3D"mailto:[email protected]">[email protected]</a>><br>=0A&= gt; >>>To: <a rel=3D"nofollow" ymailto=3D"mailto:[email protected]" ta= rget=3D"_blank" href=3D"mailto:[email protected]">[email protected]</a><br>=0A> = >>>Sent: Sunday,<br>=0A> > October 2, 2011 1:02 AM<br>=0A>= ; >>>Subject: [jonas] Re:<br>=0A> > Re: Re: Jonas 5.2.1 and = Apache mod_jk<br>=0A> >>><br>=0A> >>><br>=0A> &g= t;>>Hi Celinio<br>=0A> >>><br>=0A> >>>OK, wel= l my personal recommendation is mod_proxy_ajp.=0AIt is officially<br>=0A>= ; > maintained by the httpd project and has a great number of=0Astabilit= y and<br>=0A> > performance improvements.<br>=0A> >>><br>= =0A> >>>If you want to hit the AJP port, you should connect to= =0Athe Apache httpd<br>=0A> > server; i.e. not visit on the 9000 port= but the 80 (or=0Awhatever other<br>=0A> > Apache httpd) port.<br>=0A= > >>><br>=0A> >>>Cheers<br>=0A> >>><br>= =0A> >>><br>=0A> >>>S. Ali Tokmen <a rel=3D"nofollo= w" target=3D"_blank" 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 [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" href=3D"http://contact.ali.tokmen= .com">http://contact.ali.tokmen.com</a><br>=0A> >>>On 2011/10/0= 1 19:26, Celinio Fernandes wrote: <br>=0A> >>>Hi Ali,<br>=0A>= ; >>>>there is no specific reason.<br>=0A> >>>><= br>=0A> >>>><br>=0A> >>>>Anyways, how can i m= ake sure my webapp is using the<br>=0A> > mod_jk connector ?<br>=0A&g= t; >>>>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 console admin.<br>=0A> >>>><br>=0A> >>= >><br>=0A> >>>>Now how do i make sure my request hits = Apache=0Afirst and that<br>=0A> > Apache redirects it to Jonas then ?= <br>=0A> >>>><br>=0A> >>>><br>=0A> >>= ;>><br>=0A> >>>><br>=0A> >>>>__________= ______________________<br>=0A> >>>>From: S. Ali Tokmen <<= a rel=3D"nofollow" ymailto=3D"mailto:[email protected]" target=3D"_bl= ank" href=3D"mailto:[email protected]">[email protected]</a>>= ;<br>=0A> >>>>To: <a rel=3D"nofollow" ymailto=3D"mailto:jona= [email protected]" target=3D"_blank" href=3D"mailto:[email protected]">[email protected]</a= ><br>=0A> >>>>Sent: Saturday,<br>=0A> > October 1, 201= 1 5:49 PM<br>=0A> >>>>Subject: [jonas]<br>=0A> > Re: J= onas 5.2.1 and Apache mod_jk<br>=0A> >>>><br>=0A> >>= ;>><br>=0A> >>>>Hi Celinio<br>=0A> >>>>= <br>=0A> >>>>Is there a spacific reason why you're using mod= _jk=0Aunder Apache httpd<br>=0A> > 2.2 as opposed to the already embe= dded mod_proxy_ajp?<br>=0A> >>>><br>=0A> >>>>= Thank you<br>=0A> >>>><br>=0A> >>>><br>=0A>= ; >>>>S. Ali Tokmen <a rel=3D"nofollow" target=3D"_blank" href= =3D"http://ali.tokmen.com/">http://ali.tokmen.com/</a>=0AGSM (ch): +41 79 2= 07 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" href=3D"http://contact.ali.tokmen.com">http://contact.ali= .tokmen.com</a><br>=0A> >>>>On 2011/10/01 18:37, Celinio Fer= nandes wrote: <br>=0A> >>>>Hi,<br>=0A> >>>>&g= t;I am trying to interface my instance of Jonas=0A5.2.1 with<br>=0A> >= ; the connector mod_jk, in a Linux environment (CentOS).<br>=0A> >>= ;>>><br>=0A> >>>>>I have added the module <a rel= =3D"nofollow" target=3D"_blank" href=3D"http://mod_jk.so">mod_jk.so</a>=0At= o /usr/lib64/httpd/modules.<br>=0A> >>>>><br>=0A> >= >>>><br>=0A> >>>>>My version of Apache is 2.2= <br>=0A> >>>>><br>=0A> >>>>><br>=0A>= >>>>>I have configured /etc/httpd/conf/httpd.conf=0Aas the<= br>=0A> > following :<br>=0A> >>>>><br>=0A> >= >>>><br>=0A> >>>>>LoadModule jk_module module= s/mod_jk.so <br>=0A> >>>>><br>=0A> >>>>>= ;<IfModule jk_module><br>=0A> >>>>># Ou trouver wor= kers.properties ?<br>=0A> >>>>>JkWorkersFile=0A/etc/httpd= /conf/workers.properties<br>=0A> >>>>># Ou mettre la memo= ire partagee de jk<br>=0A> >>>>>JkShmFile /etc/httpd/logs= /mod_jk.shm<br>=0A> >>>>># Ou mettre les logs jk<br>=0A&g= t; >>>>>JkLogFile /etc/httpd/logs/mod_jk.log<br>=0A> >= >>>># Positionner le niveau des logs jk=0A[debug/error/info]<br= >=0A> >>>>>JkLogLevel info<br>=0A> >>>>>= ;# Selectionner lef ormat des logs pour le=0Atimestamp<br>=0A> >>&= gt;>>JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "<br>=0A> >>&g= t;>>#Format des logs<br>=0A> >>>>>JkRequestLogForma= t "%w %m %V %T"<br>=0A> >>>>># Envoyer les contextes dont= le nom commence=0Apar test : /toto* vers le<br>=0A> > worker nomm=E9= worker1<br>=0A> >>>>>JkMount /toto*/* worker1<br>=0A>= >>>>># On peut placer ici plusieurs JkMount si on a=0Aplusi= eurs contextes<br>=0A> > traites<br>=0A> >>>>># par= des workers differents<br>=0A> >>>>></IfModule><br= >=0A> >>>>><br>=0A> >>>>><br>=0A> &g= t;>>>>I have added the following worker in<br>=0A> > /etc= /httpd/conf/worker.properties :<br>=0A> >>>>><br>=0A> = >>>>><br>=0A> >>>>> #Define 1 worker<= br>=0A> >>>>> worker.list=3Dworker1<br>=0A> >&= gt;>>> <br>=0A> >>>>> #Set properties = for worker1 (ajp13)<br>=0A> >>>>> worker.worker1.typ= e=3Dajp13<br>=0A> >>>>> worker.worker1.host=3D<a rel= =3D"nofollow" target=3D"_blank" href=3D"http://blabla.com">blabla.com</a><b= r>=0A> >>>>> worker.worker1.port=3D8009<br>=0A> &= gt;>>>><br>=0A> >>>>><br>=0A> >>>= >><br>=0A> >>>>>Under /home/test/jonas-full-5.2.1/c= onf/ I=0Ahave configured<br>=0A> > both tomcat6-server.xml and = tomcat7-server.xml (since I do=0Anot know<br>=0A> > which one is used= ). I have uncommented the following line=0A(changed port<br>=0A> > 90= 09 to 8009)<br>=0A> >>>>><br>=0A> >>>>>= <br>=0A> >>>>><br>=0A> >>>>> <= Connector port=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 config= ured to=0A9000.<br>=0A> >>>>>When I hit the URL http://bl= abla.com:9000/toto<br>=0A> > I can see in the Jonas logs that Jonas i= s listening to that=0Aconnector<br>=0A> > but I have no idea whether = Apache has handled the request or=0Anot.<br>=0A> >>>>><br= >=0A> >>>>><br>=0A> >>>>>What can i do = ? Am i missing something ?<br>=0A> >>>>>Thanks for helpin= g.<br>=0A> >>>><br>=0A> >>>><br>=0A> >&= gt;><br>=0A> >>><br>=0A> > <br>=0A> > <br>=0A>= ; > --=0A---------------------------------------------------------------= -<br>=0A> > Benoit Pelletier<br>=0A> > http://jonas.ow2.org<br>= =0A> > Bull, 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"yiv969961730moz-= signature">-- =0A=0A-------------------------------------------------------= ---------=0ABenoit Pelletier=0A<a rel=3D"nofollow" class=3D"yiv969961730moz= -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"nofollo= w" class=3D"yiv969961730moz-txt-link-freetext" target=3D"_blank" href=3D"ht= tp://www.bull.com">http://www.bull.com</a> =0A</pre>=0A</div>=0A=0A</div><b= r><br></div></div></div></body></html> ---321410911-386627573-1317754742=:58907--