Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Jonas 5.2.1 and Apache mod_jk

Benoit Pelletier <[email protected]> Tue, 04 Oct 2011 10:39:04 +0200
Newsgroups gmane.comp.java.objectweb.jonas
Organization BULL SAS
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------080300000007080209040409
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

Try with

    JkMountCopy All

rather than

        JkMountcopy On

> I did that too, I forgot to mention it.
> Any idea what's wrong ?
> Thanks.
>
> -----------------------------------------------------------------------=
-
> *From:* Son Tung Nguyen <[email protected]>
> *To:* [email protected]
> *Sent:* Tuesday, October 4, 2011 9:09 AM
> *Subject:* [jonas] Re: Re: Re: Re: Re: Re: Re: Re: Jonas 5.2.1 and=20
> Apache mod_jk
>
> In jonas's tomcat6-server.xml ...
> Le 4 oct. 2011 08:58, "Son Tung Nguyen" <[email protected]=20
> <mailto:[email protected]>> a =E9crit :
> >
> > Hi, you must also configure your engine for that.
> > In your config of the Engine, you have to precise what's the name of=20
> your jvmroute. Typically, "worker1" in your case.
> >
> > Le 4 oct. 2011 03:26, "Celinio Fernandes" <[email protected]=20
> <mailto:[email protected]>> a =E9crit :
> >
> > > Hi all,
> > > thanks for helping.
> > >
> > > I changed the log level to debug and here it what it says in=20
> /etc/httpd/logs/mod_jk.log :
> > >
> > > [info] init_jk::mod_jk.c (3198): mod_jk/1.2.31 (1026297) initialize=
d
> > > [debug] wc_get_worker_for_name::jk_worker.c (116): found a worker=20
> worker1
> > > [debug] wc_get_name_for_type::jk_worker.c (293): Found worker type=20
> 'ajp13'
> > > [debug] uri_worker_map_ext::jk_uri_worker_map.c (512): Checking=20
> extension for worker 0: worker1 of type ajp13 (2)
> > > [debug] wc_get_worker_for_name::jk_worker.c (116): found a worker=20
> worker1
> > > [debug] wc_get_name_for_type::jk_worker.c (293): Found worker type=20
> 'ajp13'
> > > [debug] uri_worker_map_ext::jk_uri_worker_map.c (512): Checking=20
> extension for worker 1: worker1 of type ajp13 (2)
> > > [debug] wc_get_worker_for_name::jk_worker.c (116): found a worker=20
> worker1
> > > [debug] wc_get_name_for_type::jk_worker.c (293): Found worker type=20
> 'ajp13'
> > > [debug] uri_worker_map_ext::jk_uri_worker_map.c (512): Checking=20
> extension for worker 2: worker1 of type ajp13 (2)
> > > [debug] wc_get_worker_for_name::jk_worker.c (116): found a worker=20
> worker1
> > > [debug] wc_get_name_for_type::jk_worker.c (293): Found worker type=20
> 'ajp13'
> > > [debug] uri_worker_map_ext::jk_uri_worker_map.c (512): Checking=20
> extension for worker 3: worker1 of type ajp13 (2)
> > > [debug] uri_worker_map_dump::jk_uri_worker_map.c (171): uri map=20
> dump after extension stripping: index=3D0 file=3D'(null)' reject_unsafe=
=3D0=20
> reload=3D60 modified=3D0 checked=3D0
> > > [debug] uri_worker_map_dump::jk_uri_worker_map.c (176): generation=20
> 0: size=3D0 nosize=3D0 capacity=3D0
> > > [debug] uri_worker_map_dump::jk_uri_worker_map.c (176): generation=20
> 1: size=3D4 nosize=3D0 capacity=3D4
> > > [debug] uri_worker_map_dump::jk_uri_worker_map.c (186): NEXT (1)=20
> map #0: uri=3D/voltage-gestion/* worker=3Dworker1=20
> context=3D/voltage-gestion/* source=3DJkMount type=3DWildchar len=3D18
> > > [debug] uri_worker_map_dump::jk_uri_worker_map.c (186): NEXT (1)=20
> map #1: uri=3D/voltage-gestion/ worker=3Dworker1 context=3D/voltage-ges=
tion/=20
> source=3DJkMount type=3DExact len=3D17
> > > [debug] uri_worker_map_dump::jk_uri_worker_map.c (186): NEXT (1)=20
> map #2: uri=3D/voltage-gestion* worker=3Dworker1 context=3D/voltage-ges=
tion*=20
> source=3DJkMount type=3DWildchar len=3D17
> > > [debug] uri_worker_map_dump::jk_uri_worker_map.c (186): NEXT (1)=20
> map #3: uri=3D/voltage-gestion worker=3Dworker1 context=3D/voltage-gest=
ion=20
> source=3DJkMount type=3DExact len=3D16
> > > etc ...
> > > [debug] do_shm_open_lock::jk_shm.c (353): Duplicated shared memory=20
> lock /etc/httpd/logs/mod_jk.shm.27847.lock
> > > [debug] jk_child_init::mod_jk.c (3082): Initialized mod_jk/1.2.31=20
> (1026297)
> > > [debug] jk_translate::mod_jk.c (3434): missing uri map for=20
> default:/voltage-gestion
> > > [debug] jk_map_to_storage::mod_jk.c (3593): missing uri map for=20
> default:/voltage-gestion
> > >
> > > Here is my configuration again :
> > >
> > > I changed my /etc/httpd/conf/httpd.conf (I added 4 contexts for=20
> voltage-gestion):
> > >=20
>                                                                        =
      =20
>
> > > <IfModule=20
> jk_module>                                                             =
              =20
>
> > > JkWorkersFile=20
> /etc/httpd/conf/workers.properties                                     =
          =20
>
> > > JkShmFile=20
> /etc/httpd/logs/mod_jk.shm                                             =
              =20
>
> > > JkLogFile=20
> /etc/httpd/logs/mod_jk.log                                             =
              =20
>
> > > JkLogLevel=20
> debug                                                                  =
             =20
>
> > > JkLogStampFormat "[%a %b %d %H:%M:%S %Y]=20
> "                                                    =20
> > > JkRequestLogFormat "%w %m %V=20
> %T"                                                              =20
> > > JKMountCopy=20
> On                                                                     =
            =20
>
> > > JkMount /voltage-gestion/*=20
> worker1                                                            =20
> > > jkMount /voltage-gestion*=20
> worker1                                                             =20
> > > jkMount /voltage-gestion=20
> worker1                                                              =20
> > > jkMount /voltage-gestion/=20
> worker1                                                             =20
> > > </IfModule>                 =20
> > >
> > >
> > > I am not running any Virtual Host. =20
> > >
> > > /etc/httpd/conf/workers.properties :
> > >
> > > worker.list=3Dworker1
> > > # Define worker1
> > > worker.worker1.port=3D8009
> > > worker.worker1.host=3Dlocalhost
> > > worker.worker1.type=3Dajp13
> > >
> > >
> > > And regarding Jonas,
> > > this is the line that i uncommented both on tomcat6-server.xml and=20
> tomcat7-server.xml :
> > >
> > > <!-- Define an AJP 1.3 Connector on port 9009 -->
> > >     <Connector port=3D"8009" protocol=3D"AJP/1.3" redirectPort=3D"9=
043" />
> > >
> > >
> > > Apache and Jonas are running on the same remote server. So I just=20
> use localhost as the host.
> > > Not the IP, not the domain name. Anyways, even if i try these it=20
> does not work. The URI is not mapped.
> > >
> > > The URLs that i am trying to hit is :
> > > http://<IP>:80/voltage-gestion
> > > http://<hostname>:80/voltage-gestion
> > >
> > >
> > > None works, I get the same error : missing uri map for=20
> default:/voltage-gestion
> > >
> > > Any idea ? Thanks
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: Benoit Pelletier <[email protected]=20
> <mailto:[email protected]>>
> > > To: [email protected] <mailto:[email protected]>
> > > Sent: Monday, October 3, 2011 9:39 AM
> > > Subject: [jonas] Re: Re: Re: Re: Re: Re: Jonas 5.2.1 and Apache mod=
_jk
> > >
> > >
> > > Hi All,
> > >
> > > Hi Celinio
> > >>
> > >>Hmm... Where did you read that?
> > >>
> > >>Anyhow, based on your description of the situation I guess your
> > > workers.properties file is not good. I think:
> > >>
> > >>
> > >>JkMount /toto*/* worker1
> > >>>
> > >>Has to be corrected with:
> > >>
> > >>
> > >>JkMount /toto* worker1
> > >>>
> > > You should add both
> > >
> > > JkMount /toto worker1
> > >>JkMount /toto/* worker1
> > >>JkMountCopy Allou can
> > >>
> > >>
> > > BTW, did you take a look to the mod_jk's logs ? See
> > > /etc/httpd/logs/mod_jk.log. If needed, you may enable the debug lev=
el.
> > >
> > > Regards
> > >
> > >
> > >
> > >>or
> > >>
> > >>
> > >>JkMount /toto/* worker1
> > >>>
> > >>Also, try visiting http://blabla.com:80/toto/
> > > (with the final slash)
> > >>
> > >>Thank you
> > >>
> > >>
> > >>S. Ali Tokmen
> > > http://ali.tokmen.com/ GSM (ch): +41 79 207 29 22 [Swisscom]
> > > GSM (fr): +33 66 43 00 555 [Orange]
> > > GSM (tr): +90 555 266 52 73 [Avea] My AIM, ICQ, MSN Messenger and=20
> Yahoo IM
> > > contact details are on http://contact.ali.tokmen.com
> > >>On 2011/10/02 15:16, Celinio Fernandes wrote:
> > >>Really ? I read that when it comes to load balancing and
> > > failure detection, mod_jk is better than mod_proxy.
> > >>>
> > >>>Anyways, back to my problem :
> > >>>If i hit the URL http://blabla.com:80/toto
> > > (port 80) it does not work. I get a "Not found" error: "The request=
ed
> > > URL /toto/ was not found on this server."
> > >>>
> > >>>The URL http://blabla.com:80/works. =20
> > > Same thing whether i use the IP or the hostname in worker's host
> > > definition:
> > >>>worker.worker1.host
> > >>>
> > >>>I made another change in both tomcat6-server.xml and
> > > tomcat7-server.xml, I added the jvmRoute to the worker :
> > >>> <Engine name=3D"JOnAS" defaultHost=3D"localhost" jvmRoute=3D"work=
er1">
> > >>>=20
> > >>>=20
> > >>>So, am i missing something ?
> > >>>I do not want to do any load-balancing at the moment (i only have =
one
> > > instance of Jonas anyways), I just want
> > >>>Apache to redirect the request so that Jonas handles it.
> > >>>Thanks for helping.
> > >>>
> > >>>
> > >>>
> > >>>________________________________
> > >>>From: S. Ali Tokmen <[email protected]=20
> <mailto:[email protected]>>
> > >>>To: [email protected] <mailto:[email protected]>
> > >>>Sent: Sunday,
> > > October 2, 2011 1:02 AM
> > >>>Subject: [jonas] Re:
> > > Re: Re: Jonas 5.2.1 and Apache mod_jk
> > >>>
> > >>>
> > >>>Hi Celinio
> > >>>
> > >>>OK, well my personal recommendation is mod_proxy_ajp. It is=20
> officially
> > > maintained by the httpd project and has a great number of=20
> stability and
> > > performance improvements.
> > >>>
> > >>>If you want to hit the AJP port, you should connect to the Apache=20
> httpd
> > > server; i.e. not visit on the 9000 port but the 80 (or whatever oth=
er
> > > Apache httpd) port.
> > >>>
> > >>>Cheers
> > >>>
> > >>>
> > >>>S. Ali Tokmen http://ali.tokmen.com/ GSM (ch): +41 79 207 29 22=20
> [Swisscom]
> > > GSM (fr): +33 66 43 00 555 [Orange]
> > > GSM (tr): +90 555 266 52 73 [Avea] My AIM, ICQ, MSN Messenger and=20
> Yahoo IM
> > > contact details are on http://contact.ali.tokmen.com
> > >>>On 2011/10/01 19:26, Celinio Fernandes wrote:
> > >>>Hi Ali,
> > >>>>there is no specific reason.
> > >>>>
> > >>>>
> > >>>>Anyways, how can i make sure my webapp is using the
> > > mod_jk connector ?
> > >>>>I have installed and configured it in Apache and I
> > > have also configured it in Jonas.
> > >>>>I can also see the AJP/JK connector configured
> > > on port 8009 in the Jonas console admin.
> > >>>>
> > >>>>
> > >>>>Now how do i make sure my request hits Apache first and that
> > > Apache redirects it to Jonas then ?
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>>________________________________
> > >>>>From: S. Ali Tokmen <[email protected]=20
> <mailto:[email protected]>>
> > >>>>To: [email protected] <mailto:[email protected]>
> > >>>>Sent: Saturday,
> > > October 1, 2011 5:49 PM
> > >>>>Subject: [jonas]
> > > Re: Jonas 5.2.1 and Apache mod_jk
> > >>>>
> > >>>>
> > >>>>Hi Celinio
> > >>>>
> > >>>>Is there a spacific reason why you're using mod_jk under Apache=20
> httpd
> > > 2.2 as opposed to the already embedded mod_proxy_ajp?
> > >>>>
> > >>>>Thank you
> > >>>>
> > >>>>
> > >>>>S. Ali Tokmen http://ali.tokmen.com/ GSM (ch): +41 79 207 29 22=20
> [Swisscom]
> > > GSM (fr): +33 66 43 00 555 [Orange]
> > > GSM (tr): +90 555 266 52 73 [Avea] My AIM, ICQ, MSN Messenger and=20
> Yahoo IM
> > > contact details are on http://contact.ali.tokmen.com
> > >>>>On 2011/10/01 18:37, Celinio Fernandes wrote:
> > >>>>Hi,
> > >>>>>I am trying to interface my instance of Jonas 5.2.1 with
> > > the connector mod_jk, in a Linux environment (CentOS).
> > >>>>>
> > >>>>>I have added the module mod_jk.so <http://mod_jk.so> to=20
> /usr/lib64/httpd/modules.
> > >>>>>
> > >>>>>
> > >>>>>My version of Apache is 2.2
> > >>>>>
> > >>>>>
> > >>>>>I have configured /etc/httpd/conf/httpd.conf as the
> > > following :
> > >>>>>
> > >>>>>
> > >>>>>LoadModule jk_module modules/mod_jk.so
> > >>>>>
> > >>>>><IfModule jk_module>
> > >>>>># Ou trouver workers.properties ?
> > >>>>>JkWorkersFile /etc/httpd/conf/workers.properties
> > >>>>># Ou mettre la memoire partagee de jk
> > >>>>>JkShmFile /etc/httpd/logs/mod_jk.shm
> > >>>>># Ou mettre les logs jk
> > >>>>>JkLogFile /etc/httpd/logs/mod_jk.log
> > >>>>># Positionner le niveau des logs jk [debug/error/info]
> > >>>>>JkLogLevel info
> > >>>>># Selectionner lef ormat des logs pour le timestamp
> > >>>>>JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
> > >>>>>#Format des logs
> > >>>>>JkRequestLogFormat "%w %m %V %T"
> > >>>>># Envoyer les contextes dont le nom commence par test : /toto*=20
> vers le
> > > worker nomm=E9 worker1
> > >>>>>JkMount /toto*/* worker1
> > >>>>># On peut placer ici plusieurs JkMount si on a plusieurs context=
es
> > > traites
> > >>>>># par des workers differents
> > >>>>></IfModule>
> > >>>>>
> > >>>>>
> > >>>>>I have added the following worker in
> > > /etc/httpd/conf/worker.properties :
> > >>>>>
> > >>>>>
> > >>>>> #Define 1 worker
> > >>>>> worker.list=3Dworker1
> > >>>>>=20
> > >>>>> #Set properties for worker1 (ajp13)
> > >>>>> worker.worker1.type=3Dajp13
> > >>>>> worker.worker1.host=3Dblabla.com <http://blabla.com>
> > >>>>> worker.worker1.port=3D8009
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>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 following line (changed=20
> port
> > > 9009 to 8009)
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>  <Connector port=3D"8009" protocol=3D"AJP/1.3"
> > > redirectPort=3D"9043" />
> > >>>>>
> > >>>>>
> > >>>>>My web app HTTP port in Jonas is configured to 9000.
> > >>>>>When I hit the URL http://blabla.com:9000/toto
> > > I can see in the Jonas logs that Jonas is listening to that connect=
or
> > > but I have no idea whether Apache has handled the request or not.
> > >>>>>
> > >>>>>
> > >>>>>What can i do ? Am i missing something ?
> > >>>>>Thanks for helping.
> > >>>>
> > >>>>
> > >>>
> > >>>
> > >
> > >
> > > -- ----------------------------------------------------------------
> > > Benoit Pelletier
> > > http://jonas.ow2.org
> > > Bull, Architect of an Open World TM
> > > http://www.bull.com
>
>


--=20

----------------------------------------------------------------
Benoit Pelletier
http://jonas.ow2.org
Bull, Architect of an Open World TM
http://www.bull.com=20


--------------080300000007080209040409
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Try with<br>
<blockquote><font color="#330099">JkMountCopy All</font><br>
</blockquote>
rather than <br>
<br>
<font color="#cc0000">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; JkMountcopy On</font><br>
<br>
<blockquote
 cite="mid:[email protected]"
 type="cite">
  <div
 style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: times new roman,new york,times,serif; font-size: 12pt;">
  <div><span>I did that too, I forgot to mention it.</span></div>
  <div><span>Any idea what's wrong ?</span></div>
  <div><span>Thanks.<br>
  </span></div>
  <div><br>
  </div>
  <div
 style="font-family: times new roman,new york,times,serif; font-size: 12pt;">
  <div
 style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font
 face="Arial" size="2">
  <hr size="1"><b><span style="font-weight: bold;">From:</span></b> Son
Tung Nguyen <a class="moz-txt-link-rfc2396E" href="mailto:[email protected]">&lt;[email protected]&gt;</a><br>
  <b><span style="font-weight: bold;">To:</span></b> <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a><br>
  <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, October
4, 2011 9:09 AM<br>
  <b><span style="font-weight: bold;">Subject:</span></b> [jonas] Re:
Re: Re: Re: Re: Re: Re: Re: Jonas 5.2.1 and Apache mod_jk<br>
  </font><br>
  <div id="yiv141484985">
  <div>In jonas's tomcat6-server.xml ... </div>
  <div>Le 4 oct. 2011 08:58, "Son Tung Nguyen" &lt;<a
 moz-do-not-send="true" rel="nofollow"
 ymailto="mailto:[email protected]" target="_blank"
 href="mailto:[email protected]">[email protected]</a>&gt; a
&eacute;crit&nbsp;:<br>
&gt;<br>
&gt; Hi, you must also configure your engine for that. <br>
&gt; In your config of the Engine, you have to precise what's the name
of your jvmroute. Typically, "worker1" in your case.<br>
&gt;<br>
&gt; Le 4 oct. 2011 03:26, "Celinio Fernandes" &lt;<a
 moz-do-not-send="true" rel="nofollow" ymailto="mailto:[email protected]"
 target="_blank" href="mailto:[email protected]">[email protected]</a>&gt;
a &eacute;crit&nbsp;:<br>
&gt;<br>
&gt; &gt; Hi all,<br>
&gt; &gt; thanks for helping.<br>
&gt; &gt; <br>
&gt; &gt; I changed the log level to debug and here it what it says in
/etc/httpd/logs/mod_jk.log :<br>
&gt; &gt; <br>
&gt; &gt; [info] init_jk::mod_jk.c (3198): mod_jk/1.2.31 (1026297)
initialized<br>
&gt; &gt; [debug] wc_get_worker_for_name::jk_worker.c (116): found a
worker worker1<br>
&gt; &gt; [debug] wc_get_name_for_type::jk_worker.c (293): Found worker
type 'ajp13'<br>
&gt; &gt; [debug] uri_worker_map_ext::jk_uri_worker_map.c (512):
Checking extension for worker 0: worker1 of type ajp13 (2)<br>
&gt; &gt; [debug] wc_get_worker_for_name::jk_worker.c (116): found a
worker worker1<br>
&gt; &gt; [debug] wc_get_name_for_type::jk_worker.c (293): Found worker
type 'ajp13'<br>
&gt; &gt; [debug] uri_worker_map_ext::jk_uri_worker_map.c (512):
Checking extension for worker 1: worker1 of type ajp13 (2)<br>
&gt; &gt; [debug] wc_get_worker_for_name::jk_worker.c (116): found a
worker worker1<br>
&gt; &gt; [debug] wc_get_name_for_type::jk_worker.c (293): Found worker
type 'ajp13'<br>
&gt; &gt; [debug] uri_worker_map_ext::jk_uri_worker_map.c (512):
Checking extension for worker 2: worker1 of type ajp13 (2)<br>
&gt; &gt; [debug] wc_get_worker_for_name::jk_worker.c (116): found a
worker worker1<br>
&gt; &gt; [debug] wc_get_name_for_type::jk_worker.c (293): Found worker
type 'ajp13'<br>
&gt; &gt; [debug] uri_worker_map_ext::jk_uri_worker_map.c (512):
Checking extension for worker 3: worker1 of type ajp13 (2)<br>
&gt; &gt; [debug] uri_worker_map_dump::jk_uri_worker_map.c (171): uri
map dump after extension stripping: index=0 file='(null)'
reject_unsafe=0 reload=60 modified=0 checked=0<br>
&gt; &gt; [debug] uri_worker_map_dump::jk_uri_worker_map.c (176):
generation 0: size=0 nosize=0 capacity=0<br>
&gt; &gt; [debug] uri_worker_map_dump::jk_uri_worker_map.c (176):
generation 1: size=4 nosize=0 capacity=4<br>
&gt; &gt; [debug] uri_worker_map_dump::jk_uri_worker_map.c (186): NEXT
(1) map #0: uri=/voltage-gestion/* worker=worker1
context=/voltage-gestion/* source=JkMount type=Wildchar len=18<br>
&gt; &gt; [debug] uri_worker_map_dump::jk_uri_worker_map.c (186): NEXT
(1) map #1: uri=/voltage-gestion/ worker=worker1
context=/voltage-gestion/ source=JkMount type=Exact len=17<br>
&gt; &gt; [debug] uri_worker_map_dump::jk_uri_worker_map.c (186): NEXT
(1) map #2: uri=/voltage-gestion* worker=worker1
context=/voltage-gestion* source=JkMount type=Wildchar len=17<br>
&gt; &gt; [debug] uri_worker_map_dump::jk_uri_worker_map.c (186): NEXT
(1) map #3: uri=/voltage-gestion worker=worker1
context=/voltage-gestion source=JkMount type=Exact len=16<br>
&gt; &gt; etc ...<br>
&gt; &gt; [debug] do_shm_open_lock::jk_shm.c (353): Duplicated shared
memory lock /etc/httpd/logs/mod_jk.shm.27847.lock<br>
&gt; &gt; [debug] jk_child_init::mod_jk.c (3082): Initialized
mod_jk/1.2.31 (1026297)<br>
&gt; &gt; [debug] jk_translate::mod_jk.c (3434): missing uri map for
default:/voltage-gestion<br>
&gt; &gt; [debug] jk_map_to_storage::mod_jk.c (3593): missing uri map
for default:/voltage-gestion<br>
&gt; &gt; <br>
&gt; &gt; Here is my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
&gt; &gt; jkMount /voltage-gestion/
worker1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&gt; &gt; &lt;/IfModule&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; I am not running any Virtual Host.&nbsp;&nbsp; <br>
&gt; &gt; <br>
&gt; &gt; /etc/httpd/conf/workers.properties :<br>
&gt; &gt; <br>
&gt; &gt; worker.list=worker1<br>
&gt; &gt; # Define worker1<br>
&gt; &gt; worker.worker1.port=8009<br>
&gt; &gt; worker.worker1.host=localhost<br>
&gt; &gt; worker.worker1.type=ajp13<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; And regarding Jonas,<br>
&gt; &gt; this is the line that i uncommented both on
tomcat6-server.xml and tomcat7-server.xml :<br>
&gt; &gt; <br>
&gt; &gt; &lt;!-- Define an AJP 1.3 Connector on port 9009 --&gt;<br>
&gt; &gt; &nbsp;&nbsp;&nbsp; &lt;Connector port="8009" protocol="AJP/1.3"
redirectPort="9043" /&gt;<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; Apache and Jonas are running on the same remote server. So I
just use localhost as the host.<br>
&gt; &gt; Not the IP, not the domain name. Anyways, even if i try these
it does not work. The URI is not mapped.<br>
&gt; &gt; <br>
&gt; &gt; The URLs that i am trying to hit is :<br>
&gt; &gt; <a class="moz-txt-link-freetext" href="http://">http://</a>&lt;IP&gt;:80/voltage-gestion<br>
&gt; &gt; <a class="moz-txt-link-freetext" href="http://">http://</a>&lt;hostname&gt;:80/voltage-gestion<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; None works, I get the same error : missing uri map for
default:/voltage-gestion<br>
&gt; &gt; <br>
&gt; &gt; Any idea ? Thanks<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; ________________________________<br>
&gt; &gt; From: Benoit Pelletier &lt;<a moz-do-not-send="true"
 rel="nofollow" ymailto="mailto:[email protected]"
 target="_blank" href="mailto:[email protected]">[email protected]</a>&gt;<br>
&gt; &gt; To: <a moz-do-not-send="true" rel="nofollow"
 ymailto="mailto:[email protected]" target="_blank"
 href="mailto:[email protected]">[email protected]</a><br>
&gt; &gt; Sent: Monday, October 3, 2011 9:39 AM<br>
&gt; &gt; Subject: [jonas] Re: Re: Re: Re: Re: Re: Jonas 5.2.1 and
Apache mod_jk<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; Hi All,<br>
&gt; &gt; <br>
&gt; &gt; Hi Celinio<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;Hmm... Where did you read that?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;Anyhow, based on your description of the situation I guess
your<br>
&gt; &gt; workers.properties file is not good. I think:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;JkMount /toto*/* worker1<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;Has to be corrected with:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;JkMount /toto* worker1<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt; You should add both<br>
&gt; &gt; <br>
&gt; &gt; JkMount /toto worker1<br>
&gt; &gt;&gt;JkMount /toto/* worker1<br>
&gt; &gt;&gt;JkMountCopy Allou can<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt; BTW, did you take a look to the mod_jk's logs ? See<br>
&gt; &gt; /etc/httpd/logs/mod_jk.log. If needed, you may enable the
debug level.<br>
&gt; &gt; <br>
&gt; &gt; Regards<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt;&gt;or<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;JkMount /toto/* worker1<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;Also, try visiting <a class="moz-txt-link-freetext" href="http://blabla.com:80/toto/">http://blabla.com:80/toto/</a><br>
&gt; &gt; (with the final slash)<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;Thank you<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;S. Ali Tokmen<br>
&gt; &gt; <a class="moz-txt-link-freetext" href="http://ali.tokmen.com/">http://ali.tokmen.com/</a> GSM (ch): +41 79 207 29 22 [Swisscom]<br>
&gt; &gt; GSM (fr): +33 66 43 00 555 [Orange]<br>
&gt; &gt; GSM (tr): +90 555 266 52 73 [Avea] My AIM, ICQ, MSN Messenger
and Yahoo IM<br>
&gt; &gt; contact details are on <a class="moz-txt-link-freetext" href="http://contact.ali.tokmen.com">http://contact.ali.tokmen.com</a><br>
&gt; &gt;&gt;On 2011/10/02 15:16, Celinio Fernandes wrote: <br>
&gt; &gt;&gt;Really ? I read that when it comes to load balancing and<br>
&gt; &gt; failure detection, mod_jk is better than mod_proxy. <br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;Anyways, back to my problem :<br>
&gt; &gt;&gt;&gt;If i hit the URL <a class="moz-txt-link-freetext" href="http://blabla.com:80/toto">http://blabla.com:80/toto</a><br>
&gt; &gt; (port 80) it does not work. I get a "Not found" error: "The
requested<br>
&gt; &gt; URL /toto/ was not found on this server."<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;The URL <a moz-do-not-send="true" rel="nofollow"
 target="_blank" href="http://blabla.com:80/works">http://blabla.com:80/works</a>.&nbsp;&nbsp;<br>
&gt; &gt; Same thing whether i use the IP or the hostname in worker's
host<br>
&gt; &gt; definition:<br>
&gt; &gt;&gt;&gt;worker.worker1.host<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;I made another change in both tomcat6-server.xml and<br>
&gt; &gt; tomcat7-server.xml, I added the jvmRoute to the worker :<br>
&gt; &gt;&gt;&gt;&nbsp;&lt;Engine name="JOnAS" defaultHost="localhost"
jvmRoute="worker1"&gt;<br>
&gt; &gt;&gt;&gt;&nbsp;<br>
&gt; &gt;&gt;&gt;&nbsp;<br>
&gt; &gt;&gt;&gt;So, am i missing something ? <br>
&gt; &gt;&gt;&gt;I do not want to do any load-balancing at the moment
(i only have one<br>
&gt; &gt; instance of Jonas anyways), I just want<br>
&gt; &gt;&gt;&gt;Apache to redirect the request so that Jonas handles
it.<br>
&gt; &gt;&gt;&gt;Thanks for helping.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;________________________________<br>
&gt; &gt;&gt;&gt;From: S. Ali Tokmen &lt;<a moz-do-not-send="true"
 rel="nofollow" ymailto="mailto:[email protected]" target="_blank"
 href="mailto:[email protected]">[email protected]</a>&gt;<br>
&gt; &gt;&gt;&gt;To: <a moz-do-not-send="true" rel="nofollow"
 ymailto="mailto:[email protected]" target="_blank"
 href="mailto:[email protected]">[email protected]</a><br>
&gt; &gt;&gt;&gt;Sent: Sunday,<br>
&gt; &gt; October 2, 2011 1:02 AM<br>
&gt; &gt;&gt;&gt;Subject: [jonas] Re:<br>
&gt; &gt; Re: Re: Jonas 5.2.1 and Apache mod_jk<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;Hi Celinio<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;OK, well my personal recommendation is mod_proxy_ajp.
It is officially<br>
&gt; &gt; maintained by the httpd project and has a great number of
stability and<br>
&gt; &gt; performance improvements.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;If you want to hit the AJP port, you should connect to
the Apache httpd<br>
&gt; &gt; server; i.e. not visit on the 9000 port but the 80 (or
whatever other<br>
&gt; &gt; Apache httpd) port.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;Cheers<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;S. Ali Tokmen <a moz-do-not-send="true" rel="nofollow"
 target="_blank" href="http://ali.tokmen.com/">http://ali.tokmen.com/</a>
GSM (ch): +41 79 207 29 22 [Swisscom]<br>
&gt; &gt; GSM (fr): +33 66 43 00 555 [Orange]<br>
&gt; &gt; GSM (tr): +90 555 266 52 73 [Avea] My AIM, ICQ, MSN Messenger
and Yahoo IM<br>
&gt; &gt; contact details are on <a moz-do-not-send="true"
 rel="nofollow" target="_blank" href="http://contact.ali.tokmen.com">http://contact.ali.tokmen.com</a><br>
&gt; &gt;&gt;&gt;On 2011/10/01 19:26, Celinio Fernandes wrote: <br>
&gt; &gt;&gt;&gt;Hi Ali,<br>
&gt; &gt;&gt;&gt;&gt;there is no specific reason.<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;Anyways, how can i make sure my webapp is using the<br>
&gt; &gt; mod_jk connector ?<br>
&gt; &gt;&gt;&gt;&gt;I have installed and configured it in Apache and I<br>
&gt; &gt; have also configured it in Jonas.<br>
&gt; &gt;&gt;&gt;&gt;I can also see the AJP/JK connector configured<br>
&gt; &gt; on port 8009 in the Jonas console admin.<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;Now how do i make sure my request hits Apache
first and that<br>
&gt; &gt; Apache redirects it to Jonas then ?<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;________________________________<br>
&gt; &gt;&gt;&gt;&gt;From: S. Ali Tokmen &lt;<a moz-do-not-send="true"
 rel="nofollow" ymailto="mailto:[email protected]" target="_blank"
 href="mailto:[email protected]">[email protected]</a>&gt;<br>
&gt; &gt;&gt;&gt;&gt;To: <a moz-do-not-send="true" rel="nofollow"
 ymailto="mailto:[email protected]" target="_blank"
 href="mailto:[email protected]">[email protected]</a><br>
&gt; &gt;&gt;&gt;&gt;Sent: Saturday,<br>
&gt; &gt; October 1, 2011 5:49 PM<br>
&gt; &gt;&gt;&gt;&gt;Subject: [jonas]<br>
&gt; &gt; Re: Jonas 5.2.1 and Apache mod_jk<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;Hi Celinio<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;Is there a spacific reason why you're using mod_jk
under Apache httpd<br>
&gt; &gt; 2.2 as opposed to the already embedded mod_proxy_ajp?<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;Thank you<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;S. Ali Tokmen <a moz-do-not-send="true"
 rel="nofollow" target="_blank" href="http://ali.tokmen.com/">http://ali.tokmen.com/</a>
GSM (ch): +41 79 207 29 22 [Swisscom]<br>
&gt; &gt; GSM (fr): +33 66 43 00 555 [Orange]<br>
&gt; &gt; GSM (tr): +90 555 266 52 73 [Avea] My AIM, ICQ, MSN Messenger
and Yahoo IM<br>
&gt; &gt; contact details are on <a moz-do-not-send="true"
 rel="nofollow" target="_blank" href="http://contact.ali.tokmen.com">http://contact.ali.tokmen.com</a><br>
&gt; &gt;&gt;&gt;&gt;On 2011/10/01 18:37, Celinio Fernandes wrote: <br>
&gt; &gt;&gt;&gt;&gt;Hi,<br>
&gt; &gt;&gt;&gt;&gt;&gt;I am trying to interface my instance of Jonas
5.2.1 with<br>
&gt; &gt; the connector mod_jk, in a Linux environment (CentOS).<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;I have added the module <a
 moz-do-not-send="true" target="_blank" href="http://mod_jk.so">mod_jk.so</a>
to /usr/lib64/httpd/modules.<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;My version of Apache is 2.2<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;I have configured /etc/httpd/conf/httpd.conf
as the<br>
&gt; &gt; following :<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;LoadModule jk_module modules/mod_jk.so <br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;&lt;IfModule jk_module&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;# Ou trouver workers.properties ?<br>
&gt; &gt;&gt;&gt;&gt;&gt;JkWorkersFile
/etc/httpd/conf/workers.properties<br>
&gt; &gt;&gt;&gt;&gt;&gt;# Ou mettre la memoire partagee de jk<br>
&gt; &gt;&gt;&gt;&gt;&gt;JkShmFile /etc/httpd/logs/mod_jk.shm<br>
&gt; &gt;&gt;&gt;&gt;&gt;# Ou mettre les logs jk<br>
&gt; &gt;&gt;&gt;&gt;&gt;JkLogFile /etc/httpd/logs/mod_jk.log<br>
&gt; &gt;&gt;&gt;&gt;&gt;# Positionner le niveau des logs jk
[debug/error/info]<br>
&gt; &gt;&gt;&gt;&gt;&gt;JkLogLevel info<br>
&gt; &gt;&gt;&gt;&gt;&gt;# Selectionner lef ormat des logs pour le
timestamp<br>
&gt; &gt;&gt;&gt;&gt;&gt;JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "<br>
&gt; &gt;&gt;&gt;&gt;&gt;#Format des logs<br>
&gt; &gt;&gt;&gt;&gt;&gt;JkRequestLogFormat "%w %m %V %T"<br>
&gt; &gt;&gt;&gt;&gt;&gt;# Envoyer les contextes dont le nom commence
par test : /toto* vers le<br>
&gt; &gt; worker nomm&eacute; worker1<br>
&gt; &gt;&gt;&gt;&gt;&gt;JkMount /toto*/* worker1<br>
&gt; &gt;&gt;&gt;&gt;&gt;# On peut placer ici plusieurs JkMount si on a
plusieurs contextes<br>
&gt; &gt; traites<br>
&gt; &gt;&gt;&gt;&gt;&gt;# par des workers differents<br>
&gt; &gt;&gt;&gt;&gt;&gt;&lt;/IfModule&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;I have added the following worker in<br>
&gt; &gt; /etc/httpd/conf/worker.properties :<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;&nbsp;#Define 1 worker<br>
&gt; &gt;&gt;&gt;&gt;&gt;&nbsp;worker.list=worker1<br>
&gt; &gt;&gt;&gt;&gt;&gt;&nbsp;<br>
&gt; &gt;&gt;&gt;&gt;&gt;&nbsp;#Set properties for worker1 (ajp13)<br>
&gt; &gt;&gt;&gt;&gt;&gt;&nbsp;worker.worker1.type=ajp13<br>
&gt; &gt;&gt;&gt;&gt;&gt;&nbsp;worker.worker1.host=<a moz-do-not-send="true"
 rel="nofollow" target="_blank" href="http://blabla.com">blabla.com</a><br>
&gt; &gt;&gt;&gt;&gt;&gt;&nbsp;worker.worker1.port=8009<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;Under /home/test/jonas-full-5.2.1/conf/&nbsp; I
have configured<br>
&gt; &gt; both tomcat6-server.xml and tomcat7-server.xml (since I do
not know<br>
&gt; &gt; which one is used). I have uncommented the following line
(changed port<br>
&gt; &gt; 9009 to 8009)<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;&nbsp; &lt;Connector port="8009" protocol="AJP/1.3"<br>
&gt; &gt; redirectPort="9043" /&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;My web app HTTP port in Jonas is configured to
9000.<br>
&gt; &gt;&gt;&gt;&gt;&gt;When I hit the URL <a class="moz-txt-link-freetext" href="http://blabla.com:9000/toto">http://blabla.com:9000/toto</a><br>
&gt; &gt; I can see in the Jonas logs that Jonas is listening to that
connector<br>
&gt; &gt; but I have no idea whether Apache has handled the request or
not.<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;What can i do ? Am i missing something ?<br>
&gt; &gt;&gt;&gt;&gt;&gt;Thanks for helping.<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; --
----------------------------------------------------------------<br>
&gt; &gt; Benoit Pelletier<br>
&gt; &gt; <a class="moz-txt-link-freetext" href="http://jonas.ow2.org">http://jonas.ow2.org</a><br>
&gt; &gt; Bull, Architect of an Open World TM<br>
&gt; &gt; <a class="moz-txt-link-freetext" href="http://www.bull.com">http://www.bull.com</a> <br>
  </div>
  </div>
  <br>
  <br>
  </div>
  </div>
  </div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 

----------------------------------------------------------------
Benoit Pelletier
<a class="moz-txt-link-freetext" href="http://jonas.ow2.org">http://jonas.ow2.org</a>
Bull, Architect of an Open World TM
<a class="moz-txt-link-freetext" href="http://www.bull.com">http://www.bull.com</a> 
</pre>
</body>
</html>

--------------080300000007080209040409--