tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Eggers <its_toas...@yahoo.com>
Subject Re: Mod_jk error
Date Fri, 10 Jan 2014 23:03:53 GMT
On 1/10/2014 2:53 PM, Alex Lucard wrote:
> .
> On Jan 10, 2014 5:00 PM, "Alex Lucard" <priest.lucard@gmail.com> wrote:
>
>> I am running CentOS 6.5 and tomcat 7
>> I cannot get the mod_jk to work
>> I have a JSP page on this server and if you go to localhost:8080/Hello it
>> will work but if I just go to localhost/Hello The requested URL /Hello was
>> not found on this server.
>>
>> I have apache2 and tomcat 7 install both work.
>> Here is the part I added to the httpd.conf file
>>
>> # Load the mod_jk module.
>> LoadModule jk_module /usr/lib64/httpd/modules/mod_jk.so
>> JkWorkersFile /etc/httpd/conf/workers.properties
>> jkLogFile /var/log/mod_jk.log
>> JkLogLevel    level
>> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
>>
>> My workers.properties file at /etc/httpd/conf/workers.properties
>> worker.list=worker1
>> worker.worker1.type=ajp13
>> worker.worker1.port=8009
>> worker.worker1.host=localhost
>> #worker.worker1.lbfactor=1
>>
>>
>> My error log file /var/log/mod_jk.log
>> [Fri Jan 10 15:19:22 2014] [1854:140509786134496] [info] init_jk::mod_jk.c
>> (3365): mod_jk/1.2.37 initialized
>> [Fri Jan 10 15:19:23 2014] [1855:140509786134496] [error]
>> ajp_validate::jk_ajp_common.c (2696): worker worker1 can't resolve tomcat
>> address localhost
>> [Fri Jan 10 15:19:23 2014] [1855:140509786134496] [info] init_jk::mod_jk.c
>> (3365): mod_jk/1.2.37 initialized
>>
>

What happens when you type the following from the command line:

dig localhost

As a workaround, replace localhost with 127.0.0.1.

. . . . just my two cents
/mde/

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


Mime
View raw message