Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 17434 invoked from network); 6 Jun 2008 15:38:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2008 15:38:48 -0000 Received: (qmail 96464 invoked by uid 500); 6 Jun 2008 15:38:38 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 96431 invoked by uid 500); 6 Jun 2008 15:38:38 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 96419 invoked by uid 99); 6 Jun 2008 15:38:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jun 2008 08:38:38 -0700 X-ASF-Spam-Status: No, hits=4.7 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WHOIS_CONTACTPRIV X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ramyalekhaa1@gmail.com designates 216.239.58.185 as permitted sender) Received: from [216.239.58.185] (HELO gv-out-0910.google.com) (216.239.58.185) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jun 2008 15:37:48 +0000 Received: by gv-out-0910.google.com with SMTP id n8so362754gve.39 for ; Fri, 06 Jun 2008 08:38:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=UiTnx4BACwvNQ2XURjwyjDTOqThSyAFBWwHS0o1piFQ=; b=iSxcjgHQOWSMS2KjNrOxuLjYcbgx2rSKx4jgcsU1pN4Z8Sy3uIiot5xB6fPKiK6l7D uV+0Oev36YO4+rB02HbhXUo1r7CsHqJ9u8DOoTZxEU0Ird6GeI58QMtaa5KPKCiwaQ87 qZrfNRKtPuMNxsth17m5cev5RFKOMTXLdanYo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=adkJsiSBLks9liXoA78nT4SucNUcWtUSYVH7MAAhR3JQDeV8iKyf3UapQYeXABidZQ /YEmL0Gbo/14RSUdRXDEkL6mpcLKaWmElICH8ebfSISJrqpqizqOjik3IzXCXBaD7SLN uzBlddIz7SH15JDsRsltgR3MAxKVsO1Kk/Vpo= Received: by 10.78.97.7 with SMTP id u7mr133586hub.28.1212766682700; Fri, 06 Jun 2008 08:38:02 -0700 (PDT) Received: by 10.78.180.15 with HTTP; Fri, 6 Jun 2008 08:38:02 -0700 (PDT) Message-ID: Date: Fri, 6 Jun 2008 11:38:02 -0400 From: "ramya lekha" To: "Tomcat Users List" Subject: Re: Problem regarding the connector.. In-Reply-To: <48486001.4060402@ice-sa.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_8753_20593265.1212766682688" References: <48482844.1020208@apache.org> <484836B8.1040801@ice-sa.com> <48486001.4060402@ice-sa.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_8753_20593265.1212766682688 Content-Type: multipart/alternative; boundary="----=_Part_8754_23938180.1212766682688" ------=_Part_8754_23938180.1212766682688 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, whenever I am trying to add the protocol attribute in the connector tag in the server.xml file and start the tomcat server.. its not listening at the specified port.... And when i make this change JkMount /testapp ajp13 JkMount /testapp/* ajp13 or SetHandler Jakarta-servlet .. in the httpd.conf file...but i m still not able to connect to the tomcat server I am attaching the mod_jk.log file along with this mail so that you can kno= w the errors what I get..... Do let me know as to what has to be done.... Thanks Ramya On Thu, Jun 5, 2008 at 5:52 PM, Andr=E9 Warnier wrote: > > > ramya lekha wrote: > >> Hi >> >> I had attached the httpd.conf file along with this mail... >> The Directory root is set to usr/abcd-web and our application "testapp" = is >> under usr/apache/tomcat/webapp.... So when ever the url >> spixxl.xxx.com/testapp is called it is searching under usr/abcd-web >> instead >> of usr/apache/tomcat/webapp.... The error in the mod_jk.log file is >> displayed below: >> >> [Wed Jun 04 20:51:44 2008] [943571:3223019520] [debug] jk_shm.c (471): >> Reseting the shared memory for child 6 >> [Wed Jun 04 20:51:44 2008] [943571:3223019520] [debug] jk_shm.c (262): >> Duplicated shared memory lock /usr/apache/logs/mod_jk.shm.942337.lock >> [Wed Jun 04 20:51:44 2008] [943571:3223019520] [debug] mod_jk.c (2730): >> Attached shm:/usr/apache/logs/mod_jk.shm.942337 (28672 bytes) >> [Wed Jun 04 20:51:44 2008] [943571:3223019520] [debug] mod_jk.c (2740): >> Initialized mod_jk/1.2.26 >> [Wed Jun 04 21:04:16 2008] [943458:3223019520] [debug] mod_jk.c (3033): >> missing uri map for spixxl.xxx.com:/testapp/test.jsp >> >> And the workers.properties I wrote is : >> >> # Define some properties >> workers.tomcat_home=3D/usr/apache/tomcat >> workers.java_home=3D/usr/opt/java141 >> ps=3D/ >> worker.list=3Dworker1 >> # Set properties for worker1(ajp13) >> worker.worker1.type=3Dajp13 >> worker.worker1.host=3Dspixxl.xxx.com >> worker.worker1.port=3D2004 >> worker.worker1.connection_pool_timeout=3D600 >> worker.worker1.socket_keepalive=3D1 >> worker.worker1.socket_timeout=3D60 >> >> Do let me know if anything more is needed.. >> >> > Well, yes probably. > > 1) You should have, in your Apache configuration, some instructions telli= ng > Apache which URI's should be handled by mod_jk. > Something like > > JkMount /testapp ajp13 > JkMount /testapp/* ajp13 > > or > > SetHandler Jakarta-servlet > .. > > > > 2) in your spixxl.xxx.com Tomcat server.xml configuration, you should hav= e > a element referencing port 2004 > Something like > > protocol=3D"AJP/1.3" /> > > From the error message you show, it looks like it's the first item above > that may be incorrect. > > > [Wed Jun 04 21:04:16 2008] [943458:3223019520] [debug] mod_jk.c (3033): > > missing uri map for spixxl.xxx.com:/testapp/test.jsp > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > ------=_Part_8754_23938180.1212766682688 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi,

<!-- Define an AJP 1.3 Connector on port 2004 -->
<Connector port=3D"2004" enableLookups=3D"false" red= irectPort=3D"xxxx" protocol=3D"AJP/1.3" />

whenever I am trying to add the protocol attribute in the connector tag=   in the server.xml file and start the tomcat server.. its not listeni= ng at the specified port....

 And when i make this change
JkMount /testapp  ajp13
JkMount /testapp/* ajp13

or
<Location /testapp>
 SetHandler Jakarta-servlet
 ..
</Location>

in the httpd.conf file...but i m still not able to= connect to the tomcat server
I am attaching the mod_jk.log file along w= ith this mail so that you can know the errors what I get..... Do let me kno= w as to what has to be done....

Thanks
Ramya


On Thu, Jun 5, 20= 08 at 5:52 PM, Andr=E9 Warnier <aw@ice-= sa.com> wrote:


ramya lekha wrote:
Hi

I had attached the httpd.conf file along with this mail...
The Directory root is set to usr/abcd-web and our application "testapp= " is
under usr/apache/tomcat/webapp.... So when ever the url
spixxl.xxx.com/= testapp is called it is searching under usr/abcd-web instead
of usr/apache/tomcat/webapp.... The error in the mod_jk.log file is
displayed below:

[Wed Jun 04 20:51:44 2008] [943571:3223019520] [debug] jk_shm.c (471):
Reseting the shared memory for child 6
[Wed Jun 04 20:51:44 2008] [943571:3223019520] [debug] jk_shm.c (262):
Duplicated shared memory lock /usr/apache/logs/mod_jk.shm.942337.lock
[Wed Jun 04 20:51:44 2008] [943571:3223019520] [debug] mod_jk.c (2730):
Attached shm:/usr/apache/logs/mod_jk.shm.942337 (28672 bytes)
[Wed Jun 04 20:51:44 2008] [943571:3223019520] [debug] mod_jk.c (2740):
Initialized mod_jk/1.2.26
[Wed Jun 04 21:04:16 2008] [943458:3223019520] [debug] mod_jk.c (3033):
missing uri map for spixxl.xxx.com:/testapp/test.jsp

And the workers.properties I wrote is :

# Define some properties
workers.tomcat_home=3D/usr/apache/tomcat
workers.java_home=3D/usr/opt/java141
ps=3D/
worker.list=3Dworker1
# Set properties for worker1(ajp13)
worker.worker1.type=3Dajp13
worker.worker1.host=3Ds= pixxl.xxx.com
worker.worker1.port=3D2004
worker.worker1.connection_pool_timeout=3D600
worker.worker1.socket_keepalive=3D1
worker.worker1.socket_timeout=3D60

Do let me know if anything more is needed..


Well, yes probably.

1) You should have, in your Apache configuration, some instructions telling= Apache which URI's should be handled by mod_jk.
Something like

JkMount /testapp  ajp13
JkMount /testapp/* ajp13

or
<Location /testapp>
 SetHandler Jakarta-servlet
 ..
</Location>


2) in your spixxl.xxx.c= om Tomcat server.xml configuration, you should have a <Connector>= element referencing port 2004
Something like
<!-- Define an AJP 1.3 Connector on port 2004 -->
<Connector port=3D"2004" enableLookups=3D"false" red= irectPort=3D"xxxx" protocol=3D"AJP/1.3" />

>From the error message you show, it looks like it's the first item abov= e that may be incorrect.


> [Wed Jun 04 21:04:16 2008] [943458:3223019520] [debug] mod_jk.c (3033)= :
> missing uri map for spixxl.xxx.com:/testapp/test.jsp


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


------=_Part_8754_23938180.1212766682688-- ------=_Part_8753_20593265.1212766682688 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org ------=_Part_8753_20593265.1212766682688--