You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by mailing <ma...@desktop.carfield.com.hk> on 2001/05/15 10:22:10 UTC
Problem of setting up apache with tomcat using mod_jk in Linux
I have install tomcat and mod_jk as
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html
tell, but the jsp and servlet example are don't work.
If I select jsp file at example, it display raw jsp code but don't pass
to tomcat to process.
If I select servlet examples, it dispaly file not find error.
I have include the files under apache config file as state in the
document:
LoadModule jk_module libexec/mod_jk.so
AddModule mod_jk.c
JkWorkersFile /var/tomcat/conf/workers.properties
JkLogFile /var/tomcat/logs/mod_jk.log
JkLogLevel warn
Include /var/tomcat/conf/mod_jk.conf-auto
And from the mod_jk log, I find the following entry:
[jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter
[jk_uri_worker_map.c (184)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters
How can I solve?
Re: Problem of setting up apache with tomcat using mod_jk in Linux
Posted by mailing <ma...@desktop.carfield.com.hk>.
> did you add the following lines into httpd.conf?
>
> # Load mod_jk
> #
> LoadModule jk_module libexec/mod_jk.so
> AddModule mod_jk.c
>
> #Configure mod_jk
> #
> JkWorkersFile /usr/local/jakarta-tomcat-3.2.1/conf/workers.properties
> JkLogFile /usr/local/apache/logs/mod_jk.log
> JkLogLevel error
>
> Paths can be different according your system.
>
Yes, done.
> Add the following lines just before the Section 3, Vritual Host
>
> #JkMount configuration
> #
> JkMount /*.jsp ajp13
> JkMount /servlet/* ajp13
>
I have these line at mod_jk.conf, but there is no Virtual Host setting, do I need to add??
Besides, I have try both rpm and binary installation. Both don't work.
Re: Problem of setting up apache with tomcat using mod_jk in Linux
Posted by DENIZ DEMIR <de...@yfas.com.tr>.
hi,
did you add the following lines into httpd.conf?
# Load mod_jk
#
LoadModule jk_module libexec/mod_jk.so
AddModule mod_jk.c
#Configure mod_jk
#
JkWorkersFile /usr/local/jakarta-tomcat-3.2.1/conf/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevel error
Paths can be different according your system.
Add the following lines just before the Section 3, Vritual Host
#JkMount configuration
#
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
And also check the <Context ...> tags in the server.xml file that shows the
right path for documents.
Regards,
Deniz...
----- Original Message -----
From: "mailing" <ma...@desktop.carfield.com.hk>
To: <to...@jakarta.apache.org>
Sent: Tuesday, May 15, 2001 11:22 AM
Subject: Problem of setting up apache with tomcat using mod_jk in Linux
>
> I have install tomcat and mod_jk as
> http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html
> tell, but the jsp and servlet example are don't work.
> If I select jsp file at example, it display raw jsp code but don't pass
> to tomcat to process.
> If I select servlet examples, it dispaly file not find error.
>
> I have include the files under apache config file as state in the
> document:
> LoadModule jk_module libexec/mod_jk.so
> AddModule mod_jk.c
> JkWorkersFile /var/tomcat/conf/workers.properties
> JkLogFile /var/tomcat/logs/mod_jk.log
> JkLogLevel warn
> Include /var/tomcat/conf/mod_jk.conf-auto
>
> And from the mod_jk log, I find the following entry:
>
> [jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close,
NULL parameter
> [jk_uri_worker_map.c (184)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL parameters
>
> How can I solve?