Re: error starting apache w/ mod_jk2
you can get the connectors at: http://jakarta.apache.org/builds/jakarta-tomcat-connectors you'll choose either jk or jk2. jk2 supercedes jk. here is some documentation: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html http://www.pubbitch.org/jboss/mod_jk2.html cheers, On Giovedì, mag 29, 2003, at 20:54 US/Pacific, deepa_narayanan wrote: Hi, I also need to use apache 2.0.45 and tomcat 4.1.24 , on Unix (solaris) and Win2000. Please can you guide me as to what connector is to be used and where to get the downloadables of alll these Regards, Deepa -Original Message- From: Vincent J. Buonassisi [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 4:42 AM To: Tomcat Users List Subject: Re: error starting apache w/ mod_jk2 hi, i installed apache 2.0.45 as per your suggestion of using a different one than the one that comes w/ redhat. however, i did read an email sent a couple of days ago by pascal chong where he writes that when his apache2 successfully loaded mod_jk2 he would get the following in the apache error_log file: [Tue May 27 13:45:45 2003] [notice] workerEnv.init() ok /etc/httpd2/conf/workers2.properties [Tue May 27 13:45:45 2003] [notice] mod_jk child init 1 -1 so, it seems to me that apache or mod_jk2 is trying to say that something is wrong when being loaded w/o giving the slightest hint as to what it could be. any suggestions? thanks, vince On Mercoledì, mag 28, 2003, at 17:54 US/Pacific, Chong Yu Meng wrote: Vincent J. Buonassisi wrote: hi, i am using apache 2.0.45 and tomcat 4.1.24 on redhat 8.0. i am able to start tomcat just fine and am able to connect to it thru my web browser. but, when i start up apache i get the following error: [Wed May 28 15:40:32 2003] [notice] Digest: generating secret for digest authentication ... [Wed May 28 15:40:32 2003] [notice] Digest: done [Wed May 28 15:40:33 2003] [error] mod_jk child init 1 0 [Wed May 28 15:40:33 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations Vincent, That does not look like an error. An annoyance maybe. In any case, you should not be using Red Hat's httpd because it appears to be buggy (according to some accounts). Use the rpms from Falsehope (http://ftp.falsehope.com/home/gomez/apache2/). Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error starting apache w/ mod_jk2
Chong Yu Meng wrote: Vincent J. Buonassisi wrote: hi, i am using apache 2.0.45 and tomcat 4.1.24 on redhat 8.0. i am able to start tomcat just fine and am able to connect to it thru my web browser. but, when i start up apache i get the following error: [Wed May 28 15:40:32 2003] [notice] Digest: generating secret for digest authentication ... [Wed May 28 15:40:32 2003] [notice] Digest: done [Wed May 28 15:40:33 2003] [error] mod_jk child init 1 0 [Wed May 28 15:40:33 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations Vincent, That does not look like an error. An annoyance maybe. In any case, you I hate to break in like this, but I get that error as well; I'm curious - it doesn't seem to cause any obvious problems, but it does say [error] - should I be concerned that there's something wrong that I don't see? Thanks! --- Lynn Hollerman. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error starting apache w/ mod_jk2
hi, i installed apache 2.0.45 as per your suggestion of using a different one than the one that comes w/ redhat. however, i did read an email sent a couple of days ago by pascal chong where he writes that when his apache2 successfully loaded mod_jk2 he would get the following in the apache error_log file: [Tue May 27 13:45:45 2003] [notice] workerEnv.init() ok /etc/httpd2/conf/workers2.properties [Tue May 27 13:45:45 2003] [notice] mod_jk child init 1 -1 so, it seems to me that apache or mod_jk2 is trying to say that something is wrong when being loaded w/o giving the slightest hint as to what it could be. any suggestions? thanks, vince On Mercoledì, mag 28, 2003, at 17:54 US/Pacific, Chong Yu Meng wrote: Vincent J. Buonassisi wrote: hi, i am using apache 2.0.45 and tomcat 4.1.24 on redhat 8.0. i am able to start tomcat just fine and am able to connect to it thru my web browser. but, when i start up apache i get the following error: [Wed May 28 15:40:32 2003] [notice] Digest: generating secret for digest authentication ... [Wed May 28 15:40:32 2003] [notice] Digest: done [Wed May 28 15:40:33 2003] [error] mod_jk child init 1 0 [Wed May 28 15:40:33 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations Vincent, That does not look like an error. An annoyance maybe. In any case, you should not be using Red Hat's httpd because it appears to be buggy (according to some accounts). Use the rpms from Falsehope (http://ftp.falsehope.com/home/gomez/apache2/). Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error starting apache w/ mod_jk2
Hello Vincent, Pascal Chong is me. I use the pseudonym for 2 reasons : 1. Most Caucasians have difficulty parsing Chinese names -- they don't know which is my family name and which my given name. This results in some bizarre things like being called Mr Meng, or hey, Yu. Having an English name helps. 2. Pascal is a name I had to adopt when I was studying in the l'Institut Franco-Singaporien (the French-Singapore Institute). Everyone had a French name there because my French lecturers had difficulty pronouncing our Chinese names, which, though sounding far sexier when said with a french accent, were often twisted in ways we could never have imagined. On to your question : If you notice, the entry in the error_log says : [notice] not [error]. I have a theory on this, but I'm not sure if it is correct : Some contribution was probably made to the mod_jk2 code base and/or documentation by a Japanese. The reason for this assumption is the look and feel of the documentation pages for mod_jk2 which differ from the rest of the Tomcat documentation. There are other clues in the error messages. This is significant because I am thinking that the phrase mod_jk child init 1 -1 actually refers to a one-to-one or non-load-balanced configuration. In other words, it should read mod_jk child init 1 - 1. Seen in this light, the error that you saw may seem to indicate that one part of your configuration is not being seen by mod_jk2. This would align with my own impressions of Japanese software (yes, I have some experience, having worked with Japanese wafer probers). But again, this is just conjecture. The developers of mod_jk2 have been silent on this list, so we may never know. Regards, pascal chong Vincent J. Buonassisi wrote: hi, i installed apache 2.0.45 as per your suggestion of using a different one than the one that comes w/ redhat. however, i did read an email sent a couple of days ago by pascal chong where he writes that when his apache2 successfully loaded mod_jk2 he would get the following in the apache error_log file: [Tue May 27 13:45:45 2003] [notice] workerEnv.init() ok /etc/httpd2/conf/workers2.properties [Tue May 27 13:45:45 2003] [notice] mod_jk child init 1 -1 so, it seems to me that apache or mod_jk2 is trying to say that something is wrong when being loaded w/o giving the slightest hint as to what it could be. any suggestions? thanks, vince - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error starting apache w/ mod_jk2
Peter, Like I said, it was just a theory. :) In any case, I consider the line mod_jk child init 1 -1 to be an indicator, if you will, that Apache is ready to accept requests that will be routed to Tomcat. Regards, pascal chong Mayne, Peter wrote: This is significant because I am thinking that the phrase mod_jk child init 1 -1 actually refers to a one-to-one or non-load-balanced configuration. In other words, it should read mod_jk child init 1 - 1. An interesting theory, but the code that seems to print the above is if( workerEnv-childId = 0 ) env-l-jkLog(env, env-l, JK_LOG_ERROR, mod_jk child init %d %d\n, workerEnv-was_initialized, workerEnv-childId ); PJDM -- Peter Mayne Technology Consultant Spherion Technology Solutions Level 1, 243 Northbourne Avenue, Lyneham, ACT, 2602 T: 61 2 62689727 F: 61 2 62689777 The information contained in this email and any attachments to it: (a) may be confidential and if you are not the intended recipient, any interference with, use, disclosure or copying of this material is unauthorised and prohibited; and (b) may contain personal information of the recipient and/or the sender as defined under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to collect, hold and use such information and any personal information contained in a response to this email, for any reasonable purpose in the ordinary course of Spherion's business, including forwarding this email internally or disclosing it to a third party. All personal information collected by Spherion will be handled in accordance with Spherion's Privacy Policy. If you have received this email in error, please notify the sender and delete it. (c) you agree not to employ or arrange employment for any candidate(s) supplied in this email and any attachments without first entering into a contractual agreement with Spherion. You further agree not to divulge any information contained in this document to any person(s) or entities without the express permission of Spherion. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error starting apache w/ mod_jk2
hi, i am using apache 2.0.45 and tomcat 4.1.24 on redhat 8.0. i am able to start tomcat just fine and am able to connect to it thru my web browser. but, when i start up apache i get the following error: [Wed May 28 15:40:32 2003] [notice] Digest: generating secret for digest authentication ... [Wed May 28 15:40:32 2003] [notice] Digest: done [Wed May 28 15:40:33 2003] [error] mod_jk child init 1 0 [Wed May 28 15:40:33 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations i have followed the basic setup steps that i found in a howto guide. i have also made sure the socket file has the correct permissions: [EMAIL PROTECTED] conf]$ ll /var/tomcat4//work/ total 16 drwxrwxrwx4 root tomcat4 4096 May 28 16:24 ./ drwxr-xr-x4 root root 4096 May 22 12:37 ../ my jk2.properties file looks as follows: # Set the desired handler list handler.list=apr,request,channelUnix # channelUnix.file=/var/tomcat4/work/jk2.socket # Just to check if the the config is working shm.file=/var/tomcat4/work/jk2.shm # This will enable the starting of the Tomcat from mod_jk2 apr.jniModeSo=/etc/httpd/modules/mod_jk2.so and, my workers2.properties file looks as follows: # Shared memory handling. Needs to be set. [shm] file=/etc/httpd/logs/shm.file size=1048576 # Example UNIX domain socket [channel.un:/var/tomcat4/work/jk2.socket] tomcatId=localhost:8109 debug=0 # define the worker [ajp13:/var/tomcat4/work/jk2.socket] channel=channel.un:/var/tomcat4/work/jk2.socket # Announce a status worker [status:status] # URI mapping [uri:/examples/*] worker=ajp13:/var/tomcat4/work/jk2.socket [uri:/jkstatus/*] worker=status:status can someone please give some hints at what i should look at to make this configuration work? thanks, vince - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error starting apache w/ mod_jk2
Vincent J. Buonassisi wrote: hi, i am using apache 2.0.45 and tomcat 4.1.24 on redhat 8.0. i am able to start tomcat just fine and am able to connect to it thru my web browser. but, when i start up apache i get the following error: [Wed May 28 15:40:32 2003] [notice] Digest: generating secret for digest authentication ... [Wed May 28 15:40:32 2003] [notice] Digest: done [Wed May 28 15:40:33 2003] [error] mod_jk child init 1 0 [Wed May 28 15:40:33 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations Vincent, That does not look like an error. An annoyance maybe. In any case, you should not be using Red Hat's httpd because it appears to be buggy (according to some accounts). Use the rpms from Falsehope (http://ftp.falsehope.com/home/gomez/apache2/). Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JkMount error starting Apache
I am using Apache 1.3 and Tomcat 4.1, RedHat 7.3. Tomcat runs fine standalone. I am now trying to integrate Tomcat with Apache using mod_jk.so. I compiled mod_jk.so from source and put it in my modules/ directory. The module loads fine, but Apache won't start, because it doesn't recognize the JkMount directive. Here's what I have in httpd.conf: # Load mod_jk LoadModule jk_module /usr/lib/apache/mod_jk.so #Configure mod_jk2 JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /etc/httpd/logs/mod_jk2.log JkLogLevel info JkMount /examples/*.jsp ajp13 The workers.properties file is plain vanilla default. I changed the server.xml file to comment out the Coyote connector and uncomment the AJP 1.3, like so: !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- !-- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyote Handler/ -- !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ I get the typical Apache error for when you enter an unknown directive: Invalid command 'JkMount', perhaps mis-spelled or defined by a module not included in the server configuration So, what gives?!? Does this mod_jk thing really work?? I bought a book (I won't mention the name in case the authors read this list), and boy does it suck bad. I ran into so many problems just getting to this point using the book, and there's hardly any decent documentation for Tomcat. So, does the JkMount directive need to be a child of another directive? I tried it in a VirtualHost tag with the same results. I assume the module is being loaded, because the JWorkersFile directive doesn't throw an error. I would appreciate any ideas anyone has. Thanks. Gregg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JkMount error starting Apache
Does your httpd.conf have AddModule directives? If so, add one for mod_jk.c - that's solved the problem for me before Lajos Barley wrote: I am using Apache 1.3 and Tomcat 4.1, RedHat 7.3. Tomcat runs fine standalone. I am now trying to integrate Tomcat with Apache using mod_jk.so. I compiled mod_jk.so from source and put it in my modules/ directory. The module loads fine, but Apache won't start, because it doesn't recognize the JkMount directive. Here's what I have in httpd.conf: # Load mod_jk LoadModule jk_module /usr/lib/apache/mod_jk.so #Configure mod_jk2 JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /etc/httpd/logs/mod_jk2.log JkLogLevel info JkMount /examples/*.jsp ajp13 The workers.properties file is plain vanilla default. I changed the server.xml file to comment out the Coyote connector and uncomment the AJP 1.3, like so: !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- !-- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyote Handler/ -- !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ I get the typical Apache error for when you enter an unknown directive: Invalid command 'JkMount', perhaps mis-spelled or defined by a module not included in the server configuration So, what gives?!? Does this mod_jk thing really work?? I bought a book (I won't mention the name in case the authors read this list), and boy does it suck bad. I ran into so many problems just getting to this point using the book, and there's hardly any decent documentation for Tomcat. So, does the JkMount directive need to be a child of another directive? I tried it in a VirtualHost tag with the same results. I assume the module is being loaded, because the JWorkersFile directive doesn't throw an error. I would appreciate any ideas anyone has. Thanks. Gregg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JkMount error starting Apache
Try chaning the lines below: The other thing you could do is also trying to include the auto mod_jk file in httpd.conf such as: Include /usr/local/tomcat/conf/auto/mod_jk.conf But I'd try below first. Oscar On Wed, 12 Feb 2003, Barley wrote: I am using Apache 1.3 and Tomcat 4.1, RedHat 7.3. Tomcat runs fine standalone. I am now trying to integrate Tomcat with Apache using mod_jk.so. I compiled mod_jk.so from source and put it in my modules/ directory. The module loads fine, but Apache won't start, because it doesn't recognize the JkMount directive. #Try changing to this # Load mod_jk LoadModule jk_module /usr/lib/apache/mod_jk.so #Configure mod_jk2 JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /etc/httpd/logs/mod_jk2.log Here's what I have in httpd.conf: # Load mod_jk LoadModule jk_module /usr/lib/apache/mod_jk.so #Configure mod_jk2 JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /etc/httpd/logs/mod_jk2.log JkLogLevel info JkMount /examples/*.jsp ajp13 The workers.properties file is plain vanilla default. I changed the server.xml file to comment out the Coyote connector and uncomment the AJP 1.3, like so: !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- !-- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyote Handler/ -- !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ I get the typical Apache error for when you enter an unknown directive: Invalid command 'JkMount', perhaps mis-spelled or defined by a module not included in the server configuration So, what gives?!? Does this mod_jk thing really work?? I bought a book (I won't mention the name in case the authors read this list), and boy does it suck bad. I ran into so many problems just getting to this point using the book, and there's hardly any decent documentation for Tomcat. So, does the JkMount directive need to be a child of another directive? I tried it in a VirtualHost tag with the same results. I assume the module is being loaded, because the JWorkersFile directive doesn't throw an error. I would appreciate any ideas anyone has. Thanks. Gregg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JkMount error starting Apache
Good point, but he says it loads up. But it does seem it's not really loaded. Barley, check your logs on Tomcat and Apache too. Here's my mod_jk dependency line (or whatever you call it): IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.so /IfModule You can check your configuration agains my install HOWTO: http://daydream.stanford.edu/tomcat/install_web_services.html Oscar On Wed, 12 Feb 2003, Lajos wrote: Does your httpd.conf have AddModule directives? If so, add one for mod_jk.c - that's solved the problem for me before Lajos Barley wrote: I am using Apache 1.3 and Tomcat 4.1, RedHat 7.3. Tomcat runs fine standalone. I am now trying to integrate Tomcat with Apache using mod_jk.so. I compiled mod_jk.so from source and put it in my modules/ directory. The module loads fine, but Apache won't start, because it doesn't recognize the JkMount directive. Here's what I have in httpd.conf: # Load mod_jk LoadModule jk_module /usr/lib/apache/mod_jk.so #Configure mod_jk2 JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /etc/httpd/logs/mod_jk2.log JkLogLevel info JkMount /examples/*.jsp ajp13 The workers.properties file is plain vanilla default. I changed the server.xml file to comment out the Coyote connector and uncomment the AJP 1.3, like so: !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- !-- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyote Handler/ -- !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ I get the typical Apache error for when you enter an unknown directive: Invalid command 'JkMount', perhaps mis-spelled or defined by a module not included in the server configuration So, what gives?!? Does this mod_jk thing really work?? I bought a book (I won't mention the name in case the authors read this list), and boy does it suck bad. I ran into so many problems just getting to this point using the book, and there's hardly any decent documentation for Tomcat. So, does the JkMount directive need to be a child of another directive? I tried it in a VirtualHost tag with the same results. I assume the module is being loaded, because the JWorkersFile directive doesn't throw an error. I would appreciate any ideas anyone has. Thanks. Gregg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JkMount error starting Apache
I've tried including the auto-generated file. It didn't make a difference, and I'd rather manually configure in httpd.conf. It shouldn't make any difference, right? And, I'm sorry Oscar, but what should I change? I don't see any difference between your LoadModule line and mine. Thanks for the suggestions :) Gregg Try chaning the lines below: The other thing you could do is also trying to include the auto mod_jk file in httpd.conf such as: Include /usr/local/tomcat/conf/auto/mod_jk.conf But I'd try below first. Oscar #Try changing to this # Load mod_jk LoadModule jk_module /usr/lib/apache/mod_jk.so - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JkMount error starting Apache
I have tried this, but it doesn't change anything. Additionally, Apache gives me this error warning: [warn] module mod_jk.c is already added, skipping Thanks for the idea, though. Gregg Does your httpd.conf have AddModule directives? If so, add one for mod_jk.c - that's solved the problem for me before Lajos Barley wrote: I am using Apache 1.3 and Tomcat 4.1, RedHat 7.3. Tomcat runs fine standalone. I am now trying to integrate Tomcat with Apache using mod_jk.so. I compiled mod_jk.so from source and put it in my modules/ directory. The module loads fine, but Apache won't start, because it doesn't recognize the JkMount directive. Here's what I have in httpd.conf: # Load mod_jk LoadModule jk_module /usr/lib/apache/mod_jk.so #Configure mod_jk2 JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /etc/httpd/logs/mod_jk2.log JkLogLevel info JkMount /examples/*.jsp ajp13 The workers.properties file is plain vanilla default. I changed the server.xml file to comment out the Coyote connector and uncomment the AJP 1.3, like so: !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- !-- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyote Handler/ -- !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ I get the typical Apache error for when you enter an unknown directive: Invalid command 'JkMount', perhaps mis-spelled or defined by a module not included in the server configuration So, what gives?!? Does this mod_jk thing really work?? I bought a book (I won't mention the name in case the authors read this list), and boy does it suck bad. I ran into so many problems just getting to this point using the book, and there's hardly any decent documentation for Tomcat. So, does the JkMount directive need to be a child of another directive? I tried it in a VirtualHost tag with the same results. I assume the module is being loaded, because the JWorkersFile directive doesn't throw an error. I would appreciate any ideas anyone has. Thanks. Gregg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JkMount error starting Apache
The quotes and the lack of a newline. Oscar On Wed, 12 Feb 2003, Barley wrote: I've tried including the auto-generated file. It didn't make a difference, and I'd rather manually configure in httpd.conf. It shouldn't make any difference, right? And, I'm sorry Oscar, but what should I change? I don't see any difference between your LoadModule line and mine. Thanks for the suggestions :) Gregg Try chaning the lines below: The other thing you could do is also trying to include the auto mod_jk file in httpd.conf such as: Include /usr/local/tomcat/conf/auto/mod_jk.conf But I'd try below first. Oscar #Try changing to this # Load mod_jk LoadModule jk_module /usr/lib/apache/mod_jk.so - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JkMount error starting Apache
Sorry if I'm being dense...here's my LoadModule line: # Load mod_jk LoadModule jk_module /usr/lib/apache/mod_jk.so And here's yours: #Try changing to this # Load mod_jk LoadModule jk_module /usr/lib/apache/mod_jk.so So, you think I should add quotes somewhere? Thanks again, and sorry I'm so confused. Is there any way to determine if the module has been loaded? So, if I take out the JkMount line so that Apache will start, is there a way to tell what modules it has loaded? Thanks. Gregg The quotes and the lack of a newline. Oscar On Wed, 12 Feb 2003, Barley wrote: I've tried including the auto-generated file. It didn't make a difference, and I'd rather manually configure in httpd.conf. It shouldn't make any difference, right? And, I'm sorry Oscar, but what should I change? I don't see any difference between your LoadModule line and mine. Thanks for the suggestions :) Gregg Try chaning the lines below: The other thing you could do is also trying to include the auto mod_jk file in httpd.conf such as: Include /usr/local/tomcat/conf/auto/mod_jk.conf But I'd try below first. Oscar #Try changing to this # Load mod_jk LoadModule jk_module /usr/lib/apache/mod_jk.so - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JkMount error starting Apache
OK, So, this *was* the problem. When I had tried it before, I guess I had my AddModule line in the wrong place. I tried it again and added the line at the end of all of the other AddModule lines and it fired up just fine. No warning from Apache about the module being already loaded either. Thanks very much for you lightning fast ideas and help Oscar and Lajos. I guess it was just one of those annoying little mysterious problems. Gregg Does your httpd.conf have AddModule directives? If so, add one for mod_jk.c - that's solved the problem for me before Lajos Barley wrote: I am using Apache 1.3 and Tomcat 4.1, RedHat 7.3. Tomcat runs fine standalone. I am now trying to integrate Tomcat with Apache using mod_jk.so. I compiled mod_jk.so from source and put it in my modules/ directory. The module loads fine, but Apache won't start, because it doesn't recognize the JkMount directive. Here's what I have in httpd.conf: # Load mod_jk LoadModule jk_module /usr/lib/apache/mod_jk.so #Configure mod_jk2 JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /etc/httpd/logs/mod_jk2.log JkLogLevel info JkMount /examples/*.jsp ajp13 The workers.properties file is plain vanilla default. I changed the server.xml file to comment out the Coyote connector and uncomment the AJP 1.3, like so: !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- !-- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyote Handler/ -- !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ I get the typical Apache error for when you enter an unknown directive: Invalid command 'JkMount', perhaps mis-spelled or defined by a module not included in the server configuration So, what gives?!? Does this mod_jk thing really work?? I bought a book (I won't mention the name in case the authors read this list), and boy does it suck bad. I ran into so many problems just getting to this point using the book, and there's hardly any decent documentation for Tomcat. So, does the JkMount directive need to be a child of another directive? I tried it in a VirtualHost tag with the same results. I assume the module is being loaded, because the JWorkersFile directive doesn't throw an error. I would appreciate any ideas anyone has. Thanks. Gregg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JkMount error starting Apache
Glad to hear it. On Wed, 12 Feb 2003, Barley wrote: OK, So, this *was* the problem. When I had tried it before, I guess I had my AddModule line in the wrong place. I tried it again and added the line at the end of all of the other AddModule lines and it fired up just fine. No warning from Apache about the module being already loaded either. Thanks very much for you lightning fast ideas and help Oscar and Lajos. I guess it was just one of those annoying little mysterious problems. Gregg Does your httpd.conf have AddModule directives? If so, add one for mod_jk.c - that's solved the problem for me before Lajos Barley wrote: I am using Apache 1.3 and Tomcat 4.1, RedHat 7.3. Tomcat runs fine standalone. I am now trying to integrate Tomcat with Apache using mod_jk.so. I compiled mod_jk.so from source and put it in my modules/ directory. The module loads fine, but Apache won't start, because it doesn't recognize the JkMount directive. Here's what I have in httpd.conf: # Load mod_jk LoadModule jk_module /usr/lib/apache/mod_jk.so #Configure mod_jk2 JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /etc/httpd/logs/mod_jk2.log JkLogLevel info JkMount /examples/*.jsp ajp13 The workers.properties file is plain vanilla default. I changed the server.xml file to comment out the Coyote connector and uncomment the AJP 1.3, like so: !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- !-- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyote Handler/ -- !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ I get the typical Apache error for when you enter an unknown directive: Invalid command 'JkMount', perhaps mis-spelled or defined by a module not included in the server configuration So, what gives?!? Does this mod_jk thing really work?? I bought a book (I won't mention the name in case the authors read this list), and boy does it suck bad. I ran into so many problems just getting to this point using the book, and there's hardly any decent documentation for Tomcat. So, does the JkMount directive need to be a child of another directive? I tried it in a VirtualHost tag with the same results. I assume the module is being loaded, because the JWorkersFile directive doesn't throw an error. I would appreciate any ideas anyone has. Thanks. Gregg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JkMount error starting Apache
For the record, Apache 1.3 needs AddModule, Apache 2 doesn't. John -Original Message- From: Barley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 12, 2003 7:14 PM To: Tomcat Users List Subject: Re: JkMount error starting Apache OK, So, this *was* the problem. When I had tried it before, I guess I had my AddModule line in the wrong place. I tried it again and added the line at the end of all of the other AddModule lines and it fired up just fine. No warning from Apache about the module being already loaded either. Thanks very much for you lightning fast ideas and help Oscar and Lajos. I guess it was just one of those annoying little mysterious problems. Gregg Does your httpd.conf have AddModule directives? If so, add one for mod_jk.c - that's solved the problem for me before Lajos Barley wrote: I am using Apache 1.3 and Tomcat 4.1, RedHat 7.3. Tomcat runs fine standalone. I am now trying to integrate Tomcat with Apache using mod_jk.so. I compiled mod_jk.so from source and put it in my modules/ directory. The module loads fine, but Apache won't start, because it doesn't recognize the JkMount directive. Here's what I have in httpd.conf: # Load mod_jk LoadModule jk_module /usr/lib/apache/mod_jk.so #Configure mod_jk2 JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /etc/httpd/logs/mod_jk2.log JkLogLevel info JkMount /examples/*.jsp ajp13 The workers.properties file is plain vanilla default. I changed the server.xml file to comment out the Coyote connector and uncomment the AJP 1.3, like so: !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- !-- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyote Handler/ -- !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ I get the typical Apache error for when you enter an unknown directive: Invalid command 'JkMount', perhaps mis-spelled or defined by a module not included in the server configuration So, what gives?!? Does this mod_jk thing really work?? I bought a book (I won't mention the name in case the authors read this list), and boy does it suck bad. I ran into so many problems just getting to this point using the book, and there's hardly any decent documentation for Tomcat. So, does the JkMount directive need to be a child of another directive? I tried it in a VirtualHost tag with the same results. I assume the module is being loaded, because the JWorkersFile directive doesn't throw an error. I would appreciate any ideas anyone has. Thanks. Gregg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003 --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem starting apache server
Hello, I am having a problem with starting apache web server. when i try to start apache i get an error. which says '' error intializing protocol wrapper [12/092002 22:48:31:928] (ERROR) wrapper: cannot open ./conf/jserv.properties file [12/09/2002 22:48:31:928] (ERROR) an error returned initializing protocol wrapper [12/09/2002 22:48:31:928] (ERROR) in init all protocols wrapper returned an error [12/09/2002 22:48:31:928] (EMERGENCY) Error initializing protocols can u please tell me as to why this problem is coming do reply at the earliest. thanking you, Ravishankar. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problems when starting Apache with Tomcat on Win2K
Hi I get the following error when starting apache 2 with the directive: LoadModule jk_module modules/mod_jk.dll I have the dll in place. But I dont have the Tomcat running. Is it necessary to configure tomcat to make this directive run? What could be the problem? Warm Regards Sachin Dole -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Starting apache and tomcat on reboot - Solaris 8
All, How would I go about executing the startup script (see file info below) so that when the system is rebooted it'll execute the script and start the web services? Where would I put the start script? How to configure Solaris 8 to excute script? Or is there a better way to do this? file: webServerSTART /usr/local2/apache/bin/apachectl start /usr/local2/tomcat/bin/startup.sh Thanks -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Starting apache and tomcat on reboot - Solaris 8
On Sparky, my Ultra5, which has a clean install of Solaris8, there is a file called '/etc/rc3.d/S50apache'. This file holds a small script that starts up apache. You should have a look at it, and you can probably write a similar file for starting up Tomcat. Maybe call it '/etc/rc3.d/S51tomcat'. Don't forget to set JAVA_HOME and CATALINA_HOME. good luck, -chris __ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Starting apache and Tomcat
I have seen this asked before but have not seen an answer. When I try to start apache with mod_jk I get the error ... fatal: relocation error ... /mod_jk.so: symbol fdatasync: referenced symbol not found What is wrong? Thanks
Re: Starting apache and Tomcat
Nance, Michael wrote: I have seen this asked before but have not seen an answer. When I try to start apache with mod_jk I get the error ... fatal: relocation error ... /mod_jk.so: symbol fdatasync: referenced symbol not found What is wrong? Thanks Do you have the correct mod_jk.so for your system? Are you missing any libs that mod_jk.so is trying to reference? Not really sure what the problem is. Sounds like you would have to get a hold of the source for mod_jk.so and run it through a debugger. I am using mod_jk.so on a RedHat 6.2 and it works fine. -- John Alex Hebert [EMAIL PROTECTED] System Engineer
Re: Starting apache and Tomcat
Hi, Download the source and run the makefile for your system to build your mod_jk. Should work first time *gasp* Instructions at:- http://willow.cc.edu/adminguide or http://users.aber.ac.uk/aff9 Adam. On Wednesday 18 July 2001 14:42, you wrote: Nance, Michael wrote: I have seen this asked before but have not seen an answer. When I try to start apache with mod_jk I get the error ... fatal: relocation error ... /mod_jk.so: symbol fdatasync: referenced symbol not found What is wrong? Thanks Do you have the correct mod_jk.so for your system? Are you missing any libs that mod_jk.so is trying to reference? Not really sure what the problem is. Sounds like you would have to get a hold of the source for mod_jk.so and run it through a debugger. I am using mod_jk.so on a RedHat 6.2 and it works fine.
Error when starting Apache+Tomcat.
Hi, everybody, I received the error message when I am trying to combine Apache and Tomcat 3.2 together. [root@www2 bin]# ./apachectl start Syntax error on line 8 of /u01/app/tomcat/conf/mod_jk.conf-auto: API module structure `jk_module' in file /u01/app/apache/libexec/mod_jk.so is garbled - perhaps this is not an Apache module DSO? ./apachectl start: httpd could not be started BTW, I get the mod_jk.so file from jakarta.apache.org and apache was configured with --enable-module=so. I added one line in apache httpd.conf file like: Include /u01/app/tomcat/conf/mod_jk.conf-auto Could anybody tell me why? Qian Haishan
Re: Starting Apache + mod_jk
Hi Gregory, how are you doing? Need your advise: how do you manage to get the mod_jk? Thanks Gregory. Khim - Original Message - From: Gregory Rouchotas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 02, 2001 9:24 PM Subject: Starting Apache + mod_jk Hello all, I have installed Apache 1.3.17 and tomcat 3.2.1 on solaris 7 Both work fine with no problems but when I try to get apache to use mod_jk I get the following error Syntax error on line 1 of /usr/local/apache/dist-tomcat/tomcat/conf/tomcat-apache.conf: Cannot load /usr/local/apache/libexec/mod_jserv.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: /usr/local/apache/libexec/mod_jserv.so: open failed: No such file or directory /usr/local/apache/bin/apachectl start: httpd could not be started Here is what I have included in my apache httpd.conf file: LoadModulejk_module libexec/mod_jk.so AddModule mod_jk.c JkWorkersFile /usr/local/apache/dist-tomcat/tomcat/conf/workers.properties JkLogFile /usr/local/apache/logs/mod_jk.log JkLogLevelwarn Include /usr/local/apache/dist-tomcat/tomcat/conf/mod_jk.conf-auto Include /usr/local/apache/dist-tomcat/tomcat/conf/tomcat-apache.conf Also in the virtualhost section I have added the following VirtualHost .. . . JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 . . /VirtualHost Any ideas, Thank you in advance greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Starting Apache + mod_jk
try using the complete path to mod_jk.so I am assuming you copied mod_jk.so to apache/libexec If that is so, use the following line in mod_jk.conf-auto (Or whatever file you include in the http.con file). LoadModule jk_module /path/to/apache/libexec/mod_jk.so Tomcat generates the file tomcat-apache.con-auto everytime it starts so what you want to do is copy this file to a safe location (Update it whenever you modify/add a tomcat context) What I did I copied it to tomcat-apache.correct then include the following line in it: LoadModule jk_module /path/to/apache/libexec/mod_jk.so Then jusr add the file include /path/to/tomcat-apache.correct in my httpd.con file Remember you have to re-start apache every time you restart tomcat... Tan Khim Siang wrote: Hi Gregory, how are you doing? Need your advise: how do you manage to get the mod_jk? Thanks Gregory. Khim - Original Message - From: Gregory Rouchotas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 02, 2001 9:24 PM Subject: Starting Apache + mod_jk Hello all, I have installed Apache 1.3.17 and tomcat 3.2.1 on solaris 7 Both work fine with no problems but when I try to get apache to use mod_jk I get the following error Syntax error on line 1 of /usr/local/apache/dist-tomcat/tomcat/conf/tomcat-apache.conf: Cannot load /usr/local/apache/libexec/mod_jserv.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: /usr/local/apache/libexec/mod_jserv.so: open failed: No such file or directory /usr/local/apache/bin/apachectl start: httpd could not be started Here is what I have included in my apache httpd.conf file: LoadModulejk_module libexec/mod_jk.so AddModule mod_jk.c JkWorkersFile /usr/local/apache/dist-tomcat/tomcat/conf/workers.properties JkLogFile /usr/local/apache/logs/mod_jk.log JkLogLevelwarn Include /usr/local/apache/dist-tomcat/tomcat/conf/mod_jk.conf-auto Include /usr/local/apache/dist-tomcat/tomcat/conf/tomcat-apache.conf Also in the virtualhost section I have added the following VirtualHost .. . . JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 . . /VirtualHost Any ideas, Thank you in advance greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- --- Juan Alberto Cirez - Chief Creative Officer [EMAIL PROTECTED] - [EMAIL PROTECTED] -- hip2linux Professional Services, Inc.--- - Fortalezza VPN/Firewall - Commandante Remote Network Management - Network Security - Intranet Extranet Management --- www.hip2linux.com www.micanno.com www.dominicanarmy.com www.basementsuite.com www.micanno.com www.fortalezza.com --- Sunny and Beautiful Vancouver, Canada. --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Starting Apache + mod_jk
I have had the same pb on Linux. Dominique BATARD gave me the solution : Recompile apache avec --enable-module=so Recompile ventuellement aussi mod_jk HTH. Christophe -Message d'origine- De: Gregory Rouchotas [mailto:[EMAIL PROTECTED]] Date: vendredi 2 mars 2001 14:25 : [EMAIL PROTECTED] Objet: Starting Apache + mod_jk Hello all, I have installed Apache 1.3.17 and tomcat 3.2.1 on solaris 7 Both work fine with no problems but when I try to get apache to use mod_jk I get the following error Syntax error on line 1 of /usr/local/apache/dist-tomcat/tomcat/conf/tomcat-apache.conf: Cannot load /usr/local/apache/libexec/mod_jserv.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: /usr/local/apache/libexec/mod_jserv.so: open failed: No such file or directory /usr/local/apache/bin/apachectl start: httpd could not be started Here is what I have included in my apache httpd.conf file: LoadModulejk_module libexec/mod_jk.so AddModule mod_jk.c JkWorkersFile /usr/local/apache/dist-tomcat/tomcat/conf/workers.properties JkLogFile /usr/local/apache/logs/mod_jk.log JkLogLevelwarn Include /usr/local/apache/dist-tomcat/tomcat/conf/mod_jk.conf-auto Include /usr/local/apache/dist-tomcat/tomcat/conf/tomcat-apache.conf Also in the virtualhost section I have added the following VirtualHost .. . . JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 . . /VirtualHost Any ideas, Thank you in advance greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Starting Apache + mod_jk
Hello all, I have installed Apache 1.3.17 and tomcat 3.2.1 on solaris 7 Both work fine with no problems but when I try to get apache to use mod_jk I get the following error Syntax error on line 1 of /usr/local/apache/dist-tomcat/tomcat/conf/tomcat-apache.conf: Cannot load /usr/local/apache/libexec/mod_jserv.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: /usr/local/apache/libexec/mod_jserv.so: open failed: No such file or directory /usr/local/apache/bin/apachectl start: httpd could not be started Here is what I have included in my apache httpd.conf file: LoadModulejk_module libexec/mod_jk.so AddModule mod_jk.c JkWorkersFile /usr/local/apache/dist-tomcat/tomcat/conf/workers.properties JkLogFile /usr/local/apache/logs/mod_jk.log JkLogLevelwarn Include /usr/local/apache/dist-tomcat/tomcat/conf/mod_jk.conf-auto Include /usr/local/apache/dist-tomcat/tomcat/conf/tomcat-apache.conf Also in the virtualhost section I have added the following VirtualHost .. . . JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 . . /VirtualHost Any ideas, Thank you in advance greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Starting Apache + mod_jk
Did you build the mod_jk from source as in the mod_jk how-to and install it in apache/libexec ? Looks like it can't find the mod_jk library. Mike. -- Mike Braden [EMAIL PROTECTED] -Original Message- From: Gregory Rouchotas [mailto:[EMAIL PROTECTED]] Sent: Friday, March 02, 2001 8:25 AM To: [EMAIL PROTECTED] Subject: Starting Apache + mod_jk Hello all, I have installed Apache 1.3.17 and tomcat 3.2.1 on solaris 7 Both work fine with no problems but when I try to get apache to use mod_jk I get the following error Syntax error on line 1 of /usr/local/apache/dist-tomcat/tomcat/conf/tomcat-apache.conf: Cannot load /usr/local/apache/libexec/mod_jserv.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: /usr/local/apache/libexec/mod_jserv.so: open failed: No such file or directory /usr/local/apache/bin/apachectl start: httpd could not be started Here is what I have included in my apache httpd.conf file: LoadModulejk_module libexec/mod_jk.so AddModule mod_jk.c JkWorkersFile /usr/local/apache/dist-tomcat/tomcat/conf/workers.properties JkLogFile /usr/local/apache/logs/mod_jk.log JkLogLevelwarn Include /usr/local/apache/dist-tomcat/tomcat/conf/mod_jk.conf-auto Include /usr/local/apache/dist-tomcat/tomcat/conf/tomcat-apache.conf Also in the virtualhost section I have added the following VirtualHost .. . . JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 . . /VirtualHost Any ideas, Thank you in advance greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Problem starting Apache and Tomcat
Hi, I am using Apache with mod_jk and Tomcat. I included the mod_jk.conf file in my http.conf and configured the workers.properties file. My problem is that apache refuses to start by logging the following in error.log: [Mon Feb 26 20:16:15 2001] [emerg] (2)No such file or directory: Error while opening the workers I must say that I was able to setup apache and tomcat on another machine, that's why I suspect some problem my environment variables, users rights or sth like that. (I'm running linux, jdk1.3, apache 1.1.17 and tomcat 3.2.1) Has anyone any idea of where this error msg come from and what it means? thanks in advance for your help, Samuel == Creating Opportunities for the Mobile Generation Samuel Rouiller RIXXO AG Mobile Services Industriestrasse 11 CH-6343 Rotkreuz Tel: +41 41 799 69 39 Fax: +41 41 799 69 30 http://www.rixxo.com == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: problem starting Apache with mod_jk
Hi Jared I am also using the same configuration Solaris 8 for Intel Apache 1.3.14 Tomcat 3.2 and getting the same error,like yu suggested i have tried the precompiled version(it gives file not found),but the when i compile it gives symbol error.Please give me some hints Regards Suresh -Original Message- From: Jared [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 13, 2001 4:45 AM To: [EMAIL PROTECTED] Subject: Re: problem starting Apache with mod_jk try to provide some more info on your system 1. OS 2. Apache version 3. Tomcat version sorry. Solaris 8 for Intel Apache 1.3.14 Tomcat 3.2 if you are using Solaris and Apache 1.3.14 you can download a compiled version of mod_jk.so at http://news.pakana.com/mod_jk.so I'll give it a try! cheers, - Jared - Original Message - From: "Jared" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 12, 2001 8:25 PM Subject: problem starting Apache with mod_jk snip Cannot load /usr/local/apache/libexec/mod_jk.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /us r/local/apache/libexec/mod_jk.so: symbol fdatasync: referenced symbol not found bin/apachectl start: httpd could not be started /snip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
problem starting Apache with mod_jk
hello, I'm trying to get Apache and Tomcat to work together via mod_jk, but I am not having much luck. I have mod_jk.so built and in Apache's libexec directory properly. In Apache's httpd.conf, for Tomcat I've only included this line: Include /usr/local/tomcat/conf/mod_jk.conf-auto However, whenever I try to start Apache with that line in the httpd.conf file, I get this message: snip Cannot load /usr/local/apache/libexec/mod_jk.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /us r/local/apache/libexec/mod_jk.so: symbol fdatasync: referenced symbol not found bin/apachectl start: httpd could not be started /snip If I comment that line out, Apache starts up fine. Am I missing some important detail? Any help would be appreicated. Thanks! cheers, - Jared -- Wearing a turtleneck is like being strangled by a really weak guy... all day. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: problem starting Apache with mod_jk
try to provide some more info on your system 1. OS 2. Apache version 3. Tomcat version if you are using Solaris and Apache 1.3.14 you can download a compiled version of mod_jk.so at http://news.pakana.com/mod_jk.so Filip Filip Hanik Technical Architect [EMAIL PROTECTED] "Windows is a 32 bit patch to a 16 bit GUI based on a 8 bit operating system written for a 4 bit processor by a 2 bit company which can not stand 1 bit of competition." - Original Message - From: "Jared" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 12, 2001 8:25 PM Subject: problem starting Apache with mod_jk hello, I'm trying to get Apache and Tomcat to work together via mod_jk, but I am not having much luck. I have mod_jk.so built and in Apache's libexec directory properly. In Apache's httpd.conf, for Tomcat I've only included this line: Include /usr/local/tomcat/conf/mod_jk.conf-auto However, whenever I try to start Apache with that line in the httpd.conf file, I get this message: snip Cannot load /usr/local/apache/libexec/mod_jk.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /us r/local/apache/libexec/mod_jk.so: symbol fdatasync: referenced symbol not found bin/apachectl start: httpd could not be started /snip If I comment that line out, Apache starts up fine. Am I missing some important detail? Any help would be appreicated. Thanks! cheers, - Jared -- Wearing a turtleneck is like being strangled by a really weak guy... all day. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: problem starting Apache with mod_jk
try to provide some more info on your system 1. OS 2. Apache version 3. Tomcat version sorry. Solaris 8 for Intel Apache 1.3.14 Tomcat 3.2 if you are using Solaris and Apache 1.3.14 you can download a compiled version of mod_jk.so at http://news.pakana.com/mod_jk.so I'll give it a try! cheers, - Jared - Original Message - From: "Jared" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 12, 2001 8:25 PM Subject: problem starting Apache with mod_jk hello, I'm trying to get Apache and Tomcat to work together via mod_jk, but I am not having much luck. I have mod_jk.so built and in Apache's libexec directory properly. In Apache's httpd.conf, for Tomcat I've only included this line: Include /usr/local/tomcat/conf/mod_jk.conf-auto However, whenever I try to start Apache with that line in the httpd.conf file, I get this message: snip Cannot load /usr/local/apache/libexec/mod_jk.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /us r/local/apache/libexec/mod_jk.so: symbol fdatasync: referenced symbol not found bin/apachectl start: httpd could not be started /snip If I comment that line out, Apache starts up fine. Am I missing some important detail? Any help would be appreicated. Thanks! cheers, - Jared -- Wearing a turtleneck is like being strangled by a really weak guy... all day. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: problem starting Apache with mod_jk
let me know how it goes Filip Filip Hanik Technical Architect [EMAIL PROTECTED] "Windows is a 32 bit patch to a 16 bit GUI based on a 8 bit operating system written for a 4 bit processor by a 2 bit company which can not stand 1 bit of competition." - Original Message - From: "Jared" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 12, 2001 8:45 PM Subject: Re: problem starting Apache with mod_jk try to provide some more info on your system 1. OS 2. Apache version 3. Tomcat version sorry. Solaris 8 for Intel Apache 1.3.14 Tomcat 3.2 if you are using Solaris and Apache 1.3.14 you can download a compiled version of mod_jk.so at http://news.pakana.com/mod_jk.so I'll give it a try! cheers, - Jared - Original Message - From: "Jared" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 12, 2001 8:25 PM Subject: problem starting Apache with mod_jk hello, I'm trying to get Apache and Tomcat to work together via mod_jk, but I am not having much luck. I have mod_jk.so built and in Apache's libexec directory properly. In Apache's httpd.conf, for Tomcat I've only included this line: Include /usr/local/tomcat/conf/mod_jk.conf-auto However, whenever I try to start Apache with that line in the httpd.conf file, I get this message: snip Cannot load /usr/local/apache/libexec/mod_jk.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /us r/local/apache/libexec/mod_jk.so: symbol fdatasync: referenced symbol not found bin/apachectl start: httpd could not be started /snip If I comment that line out, Apache starts up fine. Am I missing some important detail? Any help would be appreicated. Thanks! cheers, - Jared -- Wearing a turtleneck is like being strangled by a really weak guy... all day. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: problem starting Apache with mod_jk
if you are using Solaris and Apache 1.3.14 you can download a compiled version of mod_jk.so at http://news.pakana.com/mod_jk.so I'll give it a try! whoops, that's a Sparc binary. I'm running Solaris for Intel. So, I thought, try rebuilding it - I tried an additional flag to apxs when building mod_jk.so, and it worked. Thanks for the help! cheers, - Jared -- The world is just filling up with more and more idiots! And the computer is giving them access to the world! They're spreading their stupidity! At least they were contained before - now they're on the loose everywhere! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Starting Apache
Hi All, Whenever I add the Include line into my Apache httpd.conf file Apache won't start, could someone point me in the right direction. Andrew [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Starting Apache
There is a Working with mod_jk help document and a Tomcat Workers How To. These are very good documents and provide much more indepth dicussion than the steps I will outline below. Basically for tomcat 3.2 I did the following NOTE: I already had a binary distribution of tomcat up and running as a distinct server. 1. Download the source Tomcat distribution. IMPORTANT you need the distribution with .src.tar.gz in it!! ( This was a second version of tomcat that I downloaded only for the purpose of creating mod_jk.so ) 2. Untar this into a temp directory 3. Build the mod_jk.so object by typing (for LINUX) apxs -0 mod_jk.so -I../jk -I/usr/local/[jdkFolderName]/include -I/usr/local/[jdkFold erName]/include/linux -c *.c ../jk/*.c 4. Run gcc -shared -o mod_jk.so *.o if your mod_jk.so object has not been built. 5.Copy mod_jk.so to Apache's libexec directory. (My system was /usr/lib/apache) NOW EDIT httpd.conf add the following lines 1. LoadModule jk_module libexec/mod_jk.so 2. AddModule mod_jk.c 3. JkWorkersFile/usr/local/jakarta-tomcat/conf/workers.properties 4. JkLogFile/usr/local/apache/logs/mod_jk.log 5. JkLogLevelwarn Add servlet processing capability (NOTE: This worked for me, the How To discusses ajp13 which is faster etc.. etc..) 1. JkMount/*.jspajp12 2. JkMount/servlet/*ajp12 3. JkMount/myServletWorkspace/servlet/*ajp12 4. JkMount/anotherServletWorkspace/servlet/*ajp12 5. JkMount/otherworker/*.jspremoteworker You will also need to modify your /usr/local/jakarta-tomcat/conf/workers.properties file 1. workers.tomcat_home=/usr/local/jakarta-tomcat 2. workers.java_home/usr/local/jdk1.3 3. ps=/ You should now be in a position to test if everything is ok so restart Apache kill -s SIGHUP `cat /var/run/httpd.pid` do a ps to see if apache is up and running. Test to see that it is still serving your normal pages. Restart tomcat. If everything has gone according to plan *big grin* you can place servlet calls direct in your html code WITHOUT having to reference the servlet with a complete url. For example prior to my conversion I had to call servlets in HTML documents using action="http://xxx.xxx.xxx.xxx:8080/marktest/servlet/HelloWorld" NOW I can call servlets using action="/marktest/servlet/HelloWorld" and apache knows how to resolve the rest :) Best of Luck. P.S. The HowTo documentation is much better than my explanation. - Original Message - From: Andrew Burrows [EMAIL PROTECTED] To: Tomcat User [EMAIL PROTECTED] Sent: Monday, January 08, 2001 10:59 AM Subject: Starting Apache Hi All, Whenever I add the Include line into my Apache httpd.conf file Apache won't start, could someone point me in the right direction. Andrew [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]