Re: Help with simple mod_jk conf
Thank you John you are right my localhost was wrong but now I have no errors inside my mod_jk.log but I still n have Internal Server Error for any jsp request without :8080 prefix. in response to: The simplest mod_jk configuration is to just stick Listener elements into server.xml that call the ApacheConfig class. How can I make it? I have only JMX Listener. No entries for ApacheConfig class I found the Include /var/tomcat3/conf/jk/mod_jk.conf-auto directives in the doc ...This will tell Apache to use directives in the mod_jk.conf-auto file in the Apache configuration. This file is created by enabling the Apache auto-configuration as described in the Tomcat documentation. ^ where? How can I enable it and how it works? Anyway I prefer to tweak it by hand to understand the whole process. I plan in the future to enable more workers for different situations... Any advice is appreciated Eli On Sun, 10 Nov 2002 20:25:44 -0500 Turner, John [EMAIL PROTECTED] wrote: Judging from the logfile, your machine cannot resolve the name localhost. Make sure there is an entry in your hosts file for localhost pointing to 127.0.0.1. To answer your question, yes, an AddModule line typically says something like module-name.c. Modules are written in C...your .so file started out as a .c file. John -Original Message- From: Jdev To: [EMAIL PROTECTED] Sent: 11/10/02 7:56 PM Subject: Help with simple mod_jk conf Hello to all. I need urgent help configuring Tomcat 4.1.x with apache 1.3 using mod_jk. I read all the doc and I have very simple config. Attached there are my mod_jk.conf included in the http.conf and my workers.properties. The problem is Internal Server Error when I try to get a jsp page without the :8080 I don't undertand the problem. I have included also the relevant part of my mod_jk.log: Another thing not clear for me is the Addmodule mod_jk.c directives: I don't have a file named mod_jk.c I have only mod_jk-1.3-eapi.so? Is this normal? All the path in my conf should be right I hope someone have the time to check with me! Please :-) ty very much Eli [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1232)]: In jk_worker_t::validate, resolve failed [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1234)]: In jk_worker_t::validate, Error locahost 8009 [Sat Nov 09 15:15:09 2002] [jk_worker.c (174)]: wc_create_worker validate faile d for worker1 [Sat Nov 09 15:15:09 2002] [jk_worker.c (244)]: build_worker_map failed to crea te workerworker1 [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1232)]: In jk_worker_t::validate, resolve failed [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1234)]: In jk_worker_t::validate, Error locahost 8009 [Sat Nov 09 15:15:09 2002] [jk_worker.c (174)]: wc_create_worker validate faile d for worker1 [Sat Nov 09 15:15:09 2002] [jk_worker.c (244)]: build_worker_map failed to crea te workerworker1 mod_jk.log mod_jk.conf workers.properties ATT71766.txt -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Help with simple mod_jk conf
Hello to all. I need urgent help configuring Tomcat 4.1.x with apache 1.3 using mod_jk. I read all the doc and I have very simple config. Attached there are my mod_jk.conf included in the http.conf and my workers.properties. The problem is Internal Server Error when I try to get a jsp page without the :8080 I don't undertand the problem. I have included also the relevant part of my mod_jk.log: Another thing not clear for me is the Addmodule mod_jk.c directives: I don't have a file named mod_jk.c I have only mod_jk-1.3-eapi.so? Is this normal? All the path in my conf should be right I hope someone have the time to check with me! Please :-) ty very much Eli [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1232)]: In jk_worker_t::validate, resolve failed [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1234)]: In jk_worker_t::validate, Error locahost 8009 [Sat Nov 09 15:15:09 2002] [jk_worker.c (174)]: wc_create_worker validate faile d for worker1 [Sat Nov 09 15:15:09 2002] [jk_worker.c (244)]: build_worker_map failed to crea te workerworker1 [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1232)]: In jk_worker_t::validate, resolve failed [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1234)]: In jk_worker_t::validate, Error locahost 8009 [Sat Nov 09 15:15:09 2002] [jk_worker.c (174)]: wc_create_worker validate faile d for worker1 [Sat Nov 09 15:15:09 2002] [jk_worker.c (244)]: build_worker_map failed to crea te workerworker1 [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1232)]: In jk_worker_t::validate, resolve failed [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1234)]: In jk_worker_t::validate, Error locahost 8009 [Sat Nov 09 15:15:09 2002] [jk_worker.c (174)]: wc_create_worker validate faile d for worker1 [Sat Nov 09 15:15:09 2002] [jk_worker.c (244)]: build_worker_map failed to crea te workerworker1 [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1232)]: In jk_worker_t::validate, resolve failed [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1234)]: In jk_worker_t::validate, Error locahost 8009 [Sat Nov 09 15:15:09 2002] [jk_worker.c (174)]: wc_create_worker validate faile d for worker1 [Sat Nov 09 15:15:09 2002] [jk_worker.c (244)]: build_worker_map failed to crea te workerworker1 # Load mod_jk module LoadModule jk_module /usr/lib/apache/mod_jk-1.3-eapi.so # Declare the module for IfModule directive AddModule mod_jk.c # Where to find workers.properties JkWorkersFile /usr/java/jakarta/jakarta-tomcat-4.1.12/conf/jk/workers.properties # Where to put jk logs JkLogFile /var/log/httpd/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevel info # Select the log format JkLogStampFormat [%a %b %d %H:%M:%S %Y] # JkOptions indicate to send SSL KEY SIZE, JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories # JkRequestLogFormat set the request format JkRequestLogFormat %w %V %T # send all requests ending /servlet to worker1 JkMount /*/servlet/ worker1 # send all requests ending in .jsp to worker1 JkMount /*.jsp worker1 # Send servlet for context /examples to worker named worker1 # JkMount /examples/servlet/* worker2 # Send JSPs for context /examples to worker named worker1 # JkMount /examples/*.jsp worker2 workers.apache_log=/var/log/httpd/ workers.tomcat_home=/usr/java/jakarta/jakarta-tomcat-4.1.12 workers.java_home=/usr/java/jdk1.3.1_04 ps=/ worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=locahost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.socket_timeout=300 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Help with simple mod_jk conf
The simplest mod_jk configuration is to just stick Listener elements into server.xml that call the ApacheConfig class. Your mod_jk.conf is created automatically then, with appropriate entries. The only file you have to worry about at that point is workers.properties. John -Original Message- From: Jdev To: [EMAIL PROTECTED] Sent: 11/10/02 7:56 PM Subject: Help with simple mod_jk conf Hello to all. I need urgent help configuring Tomcat 4.1.x with apache 1.3 using mod_jk. I read all the doc and I have very simple config. Attached there are my mod_jk.conf included in the http.conf and my workers.properties. The problem is Internal Server Error when I try to get a jsp page without the :8080 I don't undertand the problem. I have included also the relevant part of my mod_jk.log: Another thing not clear for me is the Addmodule mod_jk.c directives: I don't have a file named mod_jk.c I have only mod_jk-1.3-eapi.so? Is this normal? All the path in my conf should be right I hope someone have the time to check with me! Please :-) ty very much Eli [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1232)]: In jk_worker_t::validate, resolve failed [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1234)]: In jk_worker_t::validate, Error locahost 8009 [Sat Nov 09 15:15:09 2002] [jk_worker.c (174)]: wc_create_worker validate faile d for worker1 [Sat Nov 09 15:15:09 2002] [jk_worker.c (244)]: build_worker_map failed to crea te workerworker1 [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1232)]: In jk_worker_t::validate, resolve failed [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1234)]: In jk_worker_t::validate, Error locahost 8009 [Sat Nov 09 15:15:09 2002] [jk_worker.c (174)]: wc_create_worker validate faile d for worker1 [Sat Nov 09 15:15:09 2002] [jk_worker.c (244)]: build_worker_map failed to crea te workerworker1 mod_jk.log mod_jk.conf workers.properties ATT71766.txt -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Help with simple mod_jk conf
Judging from the logfile, your machine cannot resolve the name localhost. Make sure there is an entry in your hosts file for localhost pointing to 127.0.0.1. To answer your question, yes, an AddModule line typically says something like module-name.c. Modules are written in C...your .so file started out as a .c file. John -Original Message- From: Jdev To: [EMAIL PROTECTED] Sent: 11/10/02 7:56 PM Subject: Help with simple mod_jk conf Hello to all. I need urgent help configuring Tomcat 4.1.x with apache 1.3 using mod_jk. I read all the doc and I have very simple config. Attached there are my mod_jk.conf included in the http.conf and my workers.properties. The problem is Internal Server Error when I try to get a jsp page without the :8080 I don't undertand the problem. I have included also the relevant part of my mod_jk.log: Another thing not clear for me is the Addmodule mod_jk.c directives: I don't have a file named mod_jk.c I have only mod_jk-1.3-eapi.so? Is this normal? All the path in my conf should be right I hope someone have the time to check with me! Please :-) ty very much Eli [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1232)]: In jk_worker_t::validate, resolve failed [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1234)]: In jk_worker_t::validate, Error locahost 8009 [Sat Nov 09 15:15:09 2002] [jk_worker.c (174)]: wc_create_worker validate faile d for worker1 [Sat Nov 09 15:15:09 2002] [jk_worker.c (244)]: build_worker_map failed to crea te workerworker1 [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1232)]: In jk_worker_t::validate, resolve failed [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1234)]: In jk_worker_t::validate, Error locahost 8009 [Sat Nov 09 15:15:09 2002] [jk_worker.c (174)]: wc_create_worker validate faile d for worker1 [Sat Nov 09 15:15:09 2002] [jk_worker.c (244)]: build_worker_map failed to crea te workerworker1 mod_jk.log mod_jk.conf workers.properties ATT71766.txt -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org