You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Alex Lucard <pr...@gmail.com> on 2014/01/10 23:53:39 UTC
Mod_jk error
.
On Jan 10, 2014 5:00 PM, "Alex Lucard" <pr...@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
>
Re: Mod_jk error
Posted by Alex Lucard <pr...@gmail.com>.
Thank you so much i have it working now i had to change the httpd.com from
JkMount /Hello/* loadbalancer1
To
JkMount /Hello* workspace1
On Jan 12, 2014 9:31 PM, "侯树成" <ch...@gmail.com> wrote:
> Hi, Alex
> What is your mod_jk.conf file that used for mod_jk configuration.
>
> You can config it as blow:
> LoadModule jk_module modules/mod_jk.so
> JkWorkersFile "conf/workers.properties"
> JkLogFile "logs/mod_jk.log"
> JkLogLevel error
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
> JkMount /test_status mystatus
> JkMount /hello* loadbalancer1
>
> or Just as your configuration now, but add the JkMount to http.conf. The
> JkMount /hello* loadbalancer1 will send all request start with hello to
> loadbalancer1
>
> Hope to help you.
>
>
> 2014/1/11 Mark Eggers <it...@yahoo.com>
>
> > On 1/10/2014 2:53 PM, Alex Lucard wrote:
> >
> >> .
> >> On Jan 10, 2014 5:00 PM, "Alex Lucard" <pr...@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
> >
> >
>
Re: Mod_jk error
Posted by 侯树成 <ch...@gmail.com>.
Hi, Alex
What is your mod_jk.conf file that used for mod_jk configuration.
You can config it as blow:
LoadModule jk_module modules/mod_jk.so
JkWorkersFile "conf/workers.properties"
JkLogFile "logs/mod_jk.log"
JkLogLevel error
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkMount /test_status mystatus
JkMount /hello* loadbalancer1
or Just as your configuration now, but add the JkMount to http.conf. The
JkMount /hello* loadbalancer1 will send all request start with hello to
loadbalancer1
Hope to help you.
2014/1/11 Mark Eggers <it...@yahoo.com>
> On 1/10/2014 2:53 PM, Alex Lucard wrote:
>
>> .
>> On Jan 10, 2014 5:00 PM, "Alex Lucard" <pr...@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
>
>
Re: Mod_jk error
Posted by Mark Eggers <it...@yahoo.com>.
On 1/10/2014 2:53 PM, Alex Lucard wrote:
> .
> On Jan 10, 2014 5:00 PM, "Alex Lucard" <pr...@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