Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 29756 invoked from network); 28 Jan 2003 20:10:11 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 28 Jan 2003 20:10:11 -0000 Received: (qmail 14 invoked by uid 97); 28 Jan 2003 20:11:06 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.apache.org Received: (qmail 29971 invoked by uid 97); 28 Jan 2003 20:11:06 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 29955 invoked by uid 98); 28 Jan 2003 20:11:05 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <20030128200924.10902.qmail@web10804.mail.yahoo.com> Date: Tue, 28 Jan 2003 12:09:24 -0800 (PST) From: vivek karkun Subject: RE: RE: mod_jk config problems To: Tomcat Users List In-Reply-To: <83F0258A9996D311B14200A0C98F173602F22D52@aas-internet.aas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N thanks, the localhost entry in the worker.properties file solved it. thanks --- "Turner, John" wrote: > > JkMount typically goes in an Apache VirtualHost > container. Does your global > Apache ServerName match www.mytest.com? > > Can that machine (Apache, etc.) resolve > www.mytest.com? If Apache and > Tomcat are on the same machine, you can change > "host" in workers.properties > to "localhost". > > John > > > > -----Original Message----- > > From: vivek karkun [mailto:vivi74@rocketmail.com] > > Sent: Tuesday, January 28, 2003 12:59 PM > > To: Tomcat Users List; chrisf@oramap.com > > Subject: Re: RE: mod_jk config problems > > > > > > on the same note i have some issues with mod_jk, i > did > > post a message on my problem but didnt show up, > hope > > someone can help me out, thanks in advance. I am > > having a problem with stronghold(apache 1.3) and > > tomcat 4.1.18 using the mod_jk module on solaris > 8. > > Here are the modification i did to folowing > > configuration files. Any help would be > appreciated. > > > > httpd.conf: > > > > LoadModule jk_module > > modules/libexec/mod_jk-1.3-eapi.so > > AddModule mod_jk.c > > > > > > JkWorkersFile > > /opt/jakarta-tomcat-4.1.18/conf/workers.properties > > JkLogFile > /main/webRoot/stronghold/logs/mod_jk.log > > JkLogLevel info > > JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " > > JkMount /*.jsp ajp13 > > JkMount /*/servlet/ ajp13 > > > > > > > > workers.properties: > > > > workers.tomcat_home=/opt/jakarta-tomcat-4.1.18 > > workers.java_home=/opt/j2sdk1.4.1_01 > > ps=/ > > worker.list=ajp13 > > > > worker.ajp13.port=8009 > > worker.ajp13.host=www.mytest.com > > worker.ajp13.type=ajp13 > > > > Here are the following log files > > > > mod_jk.log: > > > > [Mon Jan 27 16:57:51 2003] [jk_ajp_common.c > (874)]: > > Error connecting to the Tomcat process. > > [Mon Jan 27 16:57:51 2003] [jk_ajp_common.c > (1190)]: > > sending request to tomcat failed in send loop. > err=2 > > [Mon Jan 27 16:57:51 2003] [jk_ajp_common.c > (1198)]: > > Error connecting to tomcat. Tomcat is probably not > > started > > or is listenning on the wrong port. Failed errno = > 145 > > > > server.xml: > > > > i enabled the the ajp1.3 protocol for mod_jk > module, > > and i changed all localhost settings to > www.mytest.com > > > > > > Also when i see the ports, 8009 is running, i dont > > know why apache wouldnt talk to tomcat. The > amazing > > part is everything works if i access the site > thorugh > > tomcat > alone(http://www.mytest.com:8080/index.jsp), > > but nothing shows up using > > (http://www.mytest.com/index.jsp) > > > > Am i missing anything here. Thanks in advance for > any > > help > > > > vic > > > > > > --- Chris Faulkner > > > wrote: > > > > > > > >Check the logs...it is looking for "locahost", > not > > > "localhost". Note the > > > >missing "l". > > > > > > > > > > Ouch. I had just spotted it after sending the > email > > > - I altered it to use my hostname instead and > > > realised that worked. > > > > > > In my defence, the mistake is on the online > > > documentation, although I should have read it > > > properly ! I copied/pasted from > > > > > > > > > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/workers > > howto.html#A > > > sample worker.properties > > > > > > I suppose that should be fixed. > > > > > > Chris > > > > > > > > > > >Check the logs...it is looking for "locahost", > not > > > "localhost". Note the > > > >missing "l". > > > > > > > >Here's the minimum required workers.properties > > > file: > > > > > > > ># BEGIN workers.properties > > > ># Definition for Ajp13 worker > > > >worker.list=ajp13 > > > >worker.ajp13.port=8009 > > > >worker.ajp13.host=localhost > > > >worker.ajp13.type=ajp13 > > > ># END workers.properties > > > > > > > >John > > > > > > > >> -----Original Message----- > > > >> From: Chris Faulkner > > > [mailto:christopher.faulkner@ntlworld.com] > > > >> Sent: Tuesday, January 28, 2003 11:21 AM > > > >> To: Tomcat Users List > > > >> Subject: mod_jk config problems > > > >> > > > >> > > > >> Hello > > > >> > > > >> I am trying to configure mod_jk to link > Apache to > > > Tomcat > > > >> which I have done before with TC 3 and 4.0. I > am > > > trying to do > > > >> it with 4.1.18/Apache 1.3. There is no sample > > > > >> workers.properties file with 4.1.18 - is this > > > > >> deliberate ? Anyway, I made my own but I > can't > > > get my > > > >> requests through ! > > > >> > > > >> The mod_jk log is saying this: > > > >> > > > >> [Tue Jan 28 16:15:31 2003] [jk_ajp_common.c > > > (1245)]: ERROR: > > > >> can't resolve tomcat address locahost > > > >> [Tue Jan 28 16:15:31 2003] [jk_ajp_common.c > > > (1247)]: ERROR: > > > >> invalid host and port locahost 8009 > > > >> [Tue Jan 28 16:15:31 2003] [jk_worker.c > (174)]: > > > >> wc_create_worker validate failed for worker1 > > > >> [Tue Jan 28 16:15:31 2003] [jk_worker.c > (244)]: > > > >> build_worker_map failed to create > workerworker1 > > > >> > > > >> So something is happening with the workers - > > > looks like a > > > >> failure to resolve to localhost on port 8009. > > > Can't think why > > > >> that wouldn't work. Any ideas out there ? > > > >> > > > >> We are on Apache 1.3 so I am not keen on > using > === message truncated === __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: