RE: can't find mod_jk.conf
On Thu, 2002-08-15 at 18:55, Turner, John wrote: The only thing you need in your httpd.conf, if you are using Tomcat's autogen function for mod_jk.conf, is this line: Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf Isn't that the whole point of the original message? I also find that mod_jk.conf is not being generated. I'm using the rpms on RedHat 7.2. Is this a known problem? -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: can't find mod_jk.conf
My reply was simply to point out that in an ideal situation, there is no need to put any mod_jk-specific directives into httpd.conf. I don't use RPMs, as a personal preference. I can't tell you for sure one way or the other why your setup doesn't work. I can only tell you that I built apache 1.3.26 (source) + tomcat 4.0.4 (binary, not RPM) + mod_jk (source) following the docs and it works like a charm. A properly configured server.xml will generate everything you need for mod_jk without requiring any change to httpd.conf other than the Include directive. I posted a How-To at http://www.johnturner.com/howto/apache-tomcat-howto.html that details, step by step, exactly how I built my system. I've received comments via email from several people that say it worked for them...any comments or suggestions for updating it are welcome and will be added to the document as time permits. If mod_jk.conf is not being created, there is a problem with either the RPM for tomcat, or the RPM is correct and the Listener directives in server.xml are not correct. The Listener directives cause the output of mod_jk.conf. My How-To explains the two initial Listener directives I installed in my server.xml. There are also docs on the tomcat website that detail the Listener directives. John Turner [EMAIL PROTECTED] -Original Message- From: Murray Cumming [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 10:03 AM To: Tomcat Users List Subject: RE: can't find mod_jk.conf On Thu, 2002-08-15 at 18:55, Turner, John wrote: The only thing you need in your httpd.conf, if you are using Tomcat's autogen function for mod_jk.conf, is this line: Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf Isn't that the whole point of the original message? I also find that mod_jk.conf is not being generated. I'm using the rpms on RedHat 7.2. Is this a known problem? -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: can't find mod_jk.conf
On Fri, 2002-08-16 at 15:11, Turner, John wrote: I posted a How-To at http://www.johnturner.com/howto/apache-tomcat-howto.html that details, step by step, exactly how I built my system. I've received comments via email from several people that say it worked for them...any comments or suggestions for updating it are welcome and will be added to the document as time permits. If mod_jk.conf is not being created, there is a problem with either the RPM for tomcat, or the RPM is correct and the Listener directives in server.xml are not correct. The Listener directives cause the output of mod_jk.conf. My How-To explains the two initial Listener directives I installed in my server.xml. There are also docs on the tomcat website that detail the Listener directives. Thanks. That's helpful, and the auto/mod_jk.conf is generated now. Previously I was using this: http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml which is very similar. For the record, even with the rpms, the auto/mod_jk.conf on Redhat 7.2 is wrong because it expects mod_jk.so to be in /etc/httpd/libexec rather than /etc/httpd/modules. I added a symlink to fix that. I probably just made an error in the configuration file the first time around. Thanks. It still isn't working, but that will be some other problem. -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: can't find mod_jk.conf
Ok, here is what I have done : - compiled apache_1.3.19 with DSO support (./configure --prefix=/usr/local/apache2 --enable-module=rewrite --enable-sh ared=rewrite ) - added the following to httpd.conf: # # Load mod_jk # LoadModule jk_module libexec/mod_jk-3.3-ap13-noeapi.so #AddModule mod_jk.c # Configure mod_jk # JkWorkersFile /usr/local/jakarta-tomcat-4.0.4/conf/workers.properties JkLogFile /usr/local/apache2/logs/mod_jk.log JkLogLevel info Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf - copied mod_jk-3.3-ap13-noeapi.so to /usr/local/apache2/libexec - added the following to server.xml : Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache/libexec/mod_jk-3.3-ap13-noeapi.so / - created conf/workers.properties: workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4 workers.java_home=/usr/java/jdk1.3 ps=/ worker.list=ajp12, ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 mod_jk.conf is getting created, can someone verify this is correct ? IfModule !mod_jk.c LoadModule jk_module /usr/local/apache/libexec/mod_jk-3.3-ap13-noeapi.so /IfModule apache/logs/error_log contains the following : [Fri Aug 16 02:37:52 2002] [error] [client 192.168.0.7] File does not exist: /usr/local/apache2/htdocs/examples/ which indicates that it doesn't have a clue about tomcat. Can anyone help with this, I have tried the supposed documentation suggested and found it quite confusing and contridictory. - Original Message - From: sibusiso xolo [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, August 14, 2002 10:04 AM Subject: Re: can't find mod_jk.conf the best place to find out what to do is here:- ~/jakarta-tomcat-4.0.4/webapps/tomcat-docs/config/ajp.html about halfway down the page under Using ApacheConfig good luck On Sunday 11 August 2002 15:35, Scott Adamson wrote: I have been trying to get Tomcat 4.04 to work with Apache (compiled statically with mod_jk). According to the HOWTO on the Apache site mod_jk.conf should be auto-generated with startup, it isnt. My guess would be that there is some other configuration I need, but the HOWTO only seems to mentions a 'workers.properties' file, which I created as instructed. Can anyone help me with Tomcat 4 + Apache + mod_jk ? I would prefer to stick with mod_jk (it already works with tomcat3.2.1) but I would consider using other connectors. Any help that anyone can offer would be much appreciated. regards, Scott Adamson Systems Administrator Syware Technology [EMAIL PROTECTED] http://upe.com.au -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: can't find mod_jk.conf
The only thing you need in your httpd.conf, if you are using Tomcat's autogen function for mod_jk.conf, is this line: Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf I'm not sure what platform you are using, but I posted a howto for apache 1.3.26 + tomcat 4.0.4 + mod_jk here: http://www.johnturner.com/howto/apache-tomcat-howto.html In particular, step #10 of my How-to deals with the Listener directives, which are responsible for generating the mod_jk.conf file (as far as I know). The system as built via the How-to is working for me, and the httpd.conf has two differences from the original that was installed with apache: the ServerName has been changed, and the Include directive has been added. John Turner [EMAIL PROTECTED] -Original Message- From: Scott Adamson [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 12:09 PM To: Tomcat Users List Subject: Re: can't find mod_jk.conf Ok, here is what I have done : - compiled apache_1.3.19 with DSO support (./configure --prefix=/usr/local/apache2 --enable-module=rewrite --enable-sh ared=rewrite ) - added the following to httpd.conf: # # Load mod_jk # LoadModule jk_module libexec/mod_jk-3.3-ap13-noeapi.so #AddModule mod_jk.c # Configure mod_jk # JkWorkersFile /usr/local/jakarta-tomcat-4.0.4/conf/workers.properties JkLogFile /usr/local/apache2/logs/mod_jk.log JkLogLevel info Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf - copied mod_jk-3.3-ap13-noeapi.so to /usr/local/apache2/libexec - added the following to server.xml : Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache/libexec/mod_jk-3.3-ap13-noeapi.so / - created conf/workers.properties: workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4 workers.java_home=/usr/java/jdk1.3 ps=/ worker.list=ajp12, ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 mod_jk.conf is getting created, can someone verify this is correct ? IfModule !mod_jk.c LoadModule jk_module /usr/local/apache/libexec/mod_jk-3.3-ap13-noeapi.so /IfModule apache/logs/error_log contains the following : [Fri Aug 16 02:37:52 2002] [error] [client 192.168.0.7] File does not exist: /usr/local/apache2/htdocs/examples/ which indicates that it doesn't have a clue about tomcat. Can anyone help with this, I have tried the supposed documentation suggested and found it quite confusing and contridictory. - Original Message - From: sibusiso xolo [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, August 14, 2002 10:04 AM Subject: Re: can't find mod_jk.conf the best place to find out what to do is here:- ~/jakarta-tomcat-4.0.4/webapps/tomcat-docs/config/ajp.html about halfway down the page under Using ApacheConfig good luck On Sunday 11 August 2002 15:35, Scott Adamson wrote: I have been trying to get Tomcat 4.04 to work with Apache (compiled statically with mod_jk). According to the HOWTO on the Apache site mod_jk.conf should be auto-generated with startup, it isnt. My guess would be that there is some other configuration I need, but the HOWTO only seems to mentions a 'workers.properties' file, which I created as instructed. Can anyone help me with Tomcat 4 + Apache + mod_jk ? I would prefer to stick with mod_jk (it already works with tomcat3.2.1) but I would consider using other connectors. Any help that anyone can offer would be much appreciated. regards, Scott Adamson Systems Administrator Syware Technology [EMAIL PROTECTED] http://upe.com.au -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: can't find mod_jk.conf
the best place to find out what to do is here:- ~/jakarta-tomcat-4.0.4/webapps/tomcat-docs/config/ajp.html about halfway down the page under Using ApacheConfig good luck On Sunday 11 August 2002 15:35, Scott Adamson wrote: I have been trying to get Tomcat 4.04 to work with Apache (compiled statically with mod_jk). According to the HOWTO on the Apache site mod_jk.conf should be auto-generated with startup, it isnt. My guess would be that there is some other configuration I need, but the HOWTO only seems to mentions a 'workers.properties' file, which I created as instructed. Can anyone help me with Tomcat 4 + Apache + mod_jk ? I would prefer to stick with mod_jk (it already works with tomcat3.2.1) but I would consider using other connectors. Any help that anyone can offer would be much appreciated. regards, Scott Adamson Systems Administrator Syware Technology [EMAIL PROTECTED] http://upe.com.au -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: can't find mod_jk.conf
To get mod_jk.conf auto-generated, you need to add Listener directives into server.xml. You'll need one at the Server level, and one (or more) at the Host level for each different Host. See my HOWTO at http://www.johnturner.com/howto/apache-tomcat-howto.html , step #10. The HOWTO is for RedHat, but the server.xml is the same regardless of platform, as far as I know. John Turner [EMAIL PROTECTED] -Original Message- From: Scott Adamson [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 11, 2002 11:35 AM To: Tomcat Users List Subject: can't find mod_jk.conf I have been trying to get Tomcat 4.04 to work with Apache (compiled statically with mod_jk). According to the HOWTO on the Apache site mod_jk.conf should be auto-generated with startup, it isnt. My guess would be that there is some other configuration I need, but the HOWTO only seems to mentions a 'workers.properties' file, which I created as instructed. Can anyone help me with Tomcat 4 + Apache + mod_jk ? I would prefer to stick with mod_jk (it already works with tomcat3.2.1) but I would consider using other connectors. Any help that anyone can offer would be much appreciated. regards, Scott Adamson Systems Administrator Syware Technology [EMAIL PROTECTED] http://upe.com.au -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]