tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vivek karkun <viv...@rocketmail.com>
Subject Re: RE: mod_jk config problems
Date Tue, 28 Jan 2003 17:59:06 GMT
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

<IfModule 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
</IfModule>


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 <christopher.faulkner@ntlworld.com>
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/workershowto.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
> jk2 - this 
> >> seems to demand recompilation of Apache 1.3. Is
> that correct ?
> >> 
> >> Apache also complained about "JkLogStampFormat"
> in the 
> >> mod_jk.conf file. This directive is given on one
> of the 
> >> sample pages. Anyone know why ?
> >> 
> >> I downloaded and installed mod_jk-1.3.... and
> jk_jnicb.so to 
> >> my shared library directory.
> >> 
> >> from 
>
>http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.2
> >/bin/linux/i386/
> >
> >
> >Thanks
> >
> >Chris
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
> ><mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> >For additional commands, e-mail:
> ><mailto:tomcat-user-help@jakarta.apache.org>
> >
> >--
> >To unsubscribe, e-mail:  
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> >For additional commands, e-mail:
> <mailto:tomcat-user-help@jakarta.apache.org>
> >
> >
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:tomcat-user-help@jakarta.apache.org>
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message