RE: JK2 - FreeBSD - Apache 2 on FreeBSD
It sounds as if the tomcat part of the connector is not listening on port 8009. Which connector do you use (AjpConnector, or CoyoteConnector with JkCoyoteHandler) ? -Original Message- From: Michele Neylon :: Blacknight Solutions [mailto:[EMAIL PROTECTED] Sent: Sunday, March 23, 2003 6:32 PM To: Tomcat Users List Subject: JK2 - FreeBSD - Apache 2 on FreeBSD Following the instructions on http://www.thinlizard.com/lizard/modjk2.html I was able to compile mod_jk2 (thank you!) I've tried a number of variations of the jk2 configuration, but cannot get it to work. I keep on getting a series of errors: [Sun Mar 23 17:15:04 2003] [error] channelSocket.open() connect failed xxx.x.com:8009 60 Operation timed out [Sun Mar 23 17:15:04 2003] [error] ajp13.connect() failed ajp13:xxx.xxx.com:8009 I'm at a loss :-( If anybody has any clear explanations/examples of the jk2 configuration I would appreciate it (a lot!) Thanks in advance, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK2 - FreeBSD - Apache 2 on FreeBSD
Ralph Einfeldt is rumoured to have said It sounds as if the tomcat part of the connector is not listening on port 8009. Which connector do you use (AjpConnector, or CoyoteConnector with JkCoyoteHandler) ? We managed to overcome that part of the problem :-) We can now view the examples at: http://lancelot.blacknightsolutions.com/examples Part of the problem was more related to logfiles and other weird stuff not being in their default locations under FreeBSD. We are still a little confused with regards to mapping *.jsp files to Tomcat, as: http://lancelot.blacknightsolutions.com/test2.jsp?me simply spits the output to the screen without processing it. In workers2.properties we are using the following lines: [uri:/examples/*] worker=ajp13:lancelot.blacknightsolutions.com:8009 [uri:/*.jsp] worker=ajp13:lancelot.blacknightsolutions.com:8009 The examples work fine, it's the other ones that seem to bork. Any ideas or clear examples would be greatly appreciated. Thanks, Michele -Original Message- From: Michele Neylon :: Blacknight Solutions [mailto:[EMAIL PROTECTED] Sent: Sunday, March 23, 2003 6:32 PM To: Tomcat Users List Subject: JK2 - FreeBSD - Apache 2 on FreeBSD Following the instructions on http://www.thinlizard.com/lizard/modjk2.html I was able to compile mod_jk2 (thank you!) I've tried a number of variations of the jk2 configuration, but cannot get it to work. I keep on getting a series of errors: [Sun Mar 23 17:15:04 2003] [error] channelSocket.open() connect failed xxx.x.com:8009 60 Operation timed out [Sun Mar 23 17:15:04 2003] [error] ajp13.connect() failed ajp13:xxx.xxx.com:8009 I'm at a loss :-( If anybody has any clear explanations/examples of the jk2 configuration I would appreciate it (a lot!) Thanks in advance, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail messages has been scanned by MailScanner and is believed to be clean of dangerous content and virus'. http://www.mailscanner.info -- Mr. Michele Neylon Blacknight Solutions http://www.blacknightsolutions.com/ Reseller plans now available This e-mail messages has been scanned by MailScanner and is believed to be clean of dangerous content and virus'. http://www.mailscanner.info - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JK2 - FreeBSD - Apache 2 on FreeBSD
There's no AJP connector listening on port 8009 (the default) or else you have an AJP connector configured and listening, but it is on the wrong port: [Sun Mar 23 17:15:04 2003] [error] channelSocket.open() connect failed xxx.x.com:8009 60 Operation timed out [Sun Mar 23 17:15:04 2003] [error] ajp13.connect() failed ajp13:xxx.xxx.com:8009 [Sun Mar 23 17:15:04 2003] [error] ajp13.service() failed to connect endpoint errno=60 Operation timed out [Sun Mar 23 17:15:04 2003] [error] ajp13.service() Error forwarding ajp13:xxx..com:8009 1 1 [Sun Mar 23 17:15:04 2003] [notice] ajp13.done() close endpoint ajp13:xxx.xxx.com:8009 error_state 1 Check your server.xml for a connector (called CoyoteConnector) listening on port 8009. There should be one enabled by default, but I am not sure how you installed Tomcat. If you used the FreeBSD ports manager, the default configuration found in a Tomcat binary release may have been changed. John On Sun, 23 Mar 2003 18:31:57 +0100, Michele Neylon :: Blacknight Solutions [EMAIL PROTECTED] wrote: Hi all, Following the instructions on http://www.thinlizard.com/lizard/modjk2.html I was able to compile mod_jk2 (thank you!) I've tried a number of variations of the jk2 configuration, but cannot get it to work. I keep on getting a series of errors: [Sun Mar 23 17:13:00 2003] [notice] mod_jk.post_config() first invocation [Sun Mar 23 17:13:01 2003] [notice] mod_jk.post_config() second invocation [Sun Mar 23 17:13:02 2003] [notice] Apache configured -- resuming normal operations [Sun Mar 23 17:13:02 2003] [notice] jk2_init() Found child 26498 in scoreboard slot 2 [Sun Mar 23 17:13:02 2003] [notice] jk2_init() Found child 26499 in scoreboard slot 3 [Sun Mar 23 17:13:02 2003] [notice] workerEnv.init() ok /usr/local/etc/apache2/workers2.properties [Sun Mar 23 17:13:02 2003] [notice] jk2_init() Found child 26500 in scoreboard slot 4 [Sun Mar 23 17:13:02 2003] [notice] workerEnv.init() ok /usr/local/etc/apache2/workers2.properties [Sun Mar 23 17:13:02 2003] [notice] jk2_init() Found child 26496 in scoreboard slot 0 [Sun Mar 23 17:13:02 2003] [notice] jk2_init() Found child 26497 in scoreboard slot 1 [Sun Mar 23 17:13:02 2003] [notice] workerEnv.init() ok /usr/local/etc/apache2/workers2.properties [Sun Mar 23 17:13:02 2003] [notice] workerEnv.init() ok /usr/local/etc/apache2/workers2.properties [Sun Mar 23 17:13:02 2003] [notice] workerEnv.init() ok /usr/local/etc/apache2/workers2.properties [Sun Mar 23 17:13:02 2003] [error] mod_jk child init 1 0 [Sun Mar 23 17:13:14 2003] [notice] jk2_init() Found child 26505 in scoreboard slot 5 [Sun Mar 23 17:13:14 2003] [notice] workerEnv.init() ok /usr/local/etc/apache2/workers2.properties [Sun Mar 23 17:13:49 2003] [notice] shm.createSlot() Create 1 0x2834e000 0x2835 [Sun Mar 23 17:13:49 2003] [notice] workerEnv.init() create slot epStat.4 [Sun Mar 23 17:15:04 2003] [error] channelSocket.open() connect failed xxx.x.com:8009 60 Operation timed out [Sun Mar 23 17:15:04 2003] [error] ajp13.connect() failed ajp13:xxx.xxx.com:8009 [Sun Mar 23 17:15:04 2003] [error] ajp13.service() failed to connect endpoint errno=60 Operation timed out [Sun Mar 23 17:15:04 2003] [error] ajp13.service() Error forwarding ajp13:xxx..com:8009 1 1 [Sun Mar 23 17:15:04 2003] [notice] ajp13.done() close endpoint ajp13:xxx.xxx.com:8009 error_state 1 [Sun Mar 23 17:15:04 2003] [error] lb.service() worker failed 12 for ajp13:xxx..com:8009 [Sun Mar 23 17:15:04 2003] [notice] lb.getWorker() All workers in error state, use the one with oldest error [Sun Mar 23 17:16:19 2003] [error] channelSocket.open() connect failed xxx..com:8009 60 Operation timed out [Sun Mar 23 17:16:19 2003] [error] ajp13.connect() failed ajp13:xxx.xxx.com:8009 [Sun Mar 23 17:16:19 2003] [error] ajp13.service() failed to connect endpoint errno=60 Operation timed out [Sun Mar 23 17:16:19 2003] [error] ajp13.service() Error forwarding ajp13:xxx.xxx.com:8009 1 1 [Sun Mar 23 17:16:19 2003] [notice] ajp13.done() close endpoint ajp13:xxx.xxx.com:8009 error_state 1 [Sun Mar 23 17:16:19 2003] [error] lb.service() worker failed 12 for ajp13:.xxx.com:8009 [Sun Mar 23 17:16:19 2003] [notice] lb.getWorker() All workers in error state, use the one with oldest error [Sun Mar 23 17:16:19 2003] [notice] lb.getWorker() We tried all possible workers 2 [Sun Mar 23 17:16:19 2003] [error] lb_worker.service() all workers in error or disabled state [Sun Mar 23 17:16:19 2003] [error] mod_jk.handler() Error connecting to tomcat 12 I'm at a loss :-( If anybody has any clear explanations/examples of the jk2 configuration I would appreciate it (a lot!) Thanks in advance, Michele Mr. Michele Neylon Blacknight Solutions - affordable linux hosting http://www.blacknightsolutions.com/ This e-mail messages has been scanned by MailScanner and is believed to be clean of dangerous content and virus'. http://www.mailscanner.info
Re: JK2 - FreeBSD - Apache 2 on FreeBSD
John Thanks for your input on this. John Turner is rumoured to have said There's no AJP connector listening on port 8009 (the default) or else you have an AJP connector configured and listening, but it is on the wrong port: The strange thing was that it was listening all the time :-( I ran a netstat -an and it showed 8009 as listening. Your HOWTO was very helpful too - thank you. By combining part of your configuration with that from thinlizard.com I finally managed to get it to work (almost!), but am still rather confused about the workers2.properties Check your server.xml for a connector (called CoyoteConnector) listening on port 8009. There should be one enabled by default, but I am not sure how you installed Tomcat. I followed instructions on the FreeBSD site to get a standard install running - which was the easiest part of the process. The server.xml seems to be okay and using your configuration Tomcat seems quite happy now :-) Michele -- Mr. Michele Neylon Blacknight Solutions http://www.blacknightsolutions.com/ Reseller plans now available This e-mail messages has been scanned by MailScanner and is believed to be clean of dangerous content and virus'. http://www.mailscanner.info - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK2 - FreeBSD - Apache 2 on FreeBSD
Do you have a context with path= ? Otherwise you will not be able to access Domain/test.jsp (You would have to insert the context path: Domain/ContextPath/test.jsp) test.jsp must be in the top level directory that is given in the docBase attribute of the context. -Original Message- From: Michele Neylon :: Blacknight Solutions [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 2:28 PM To: [EMAIL PROTECTED] Subject: RE: JK2 - FreeBSD - Apache 2 on FreeBSD We can now view the examples at: http://lancelot.blacknightsolutions.com/examples We are still a little confused with regards to mapping *.jsp files to Tomcat, as: http://lancelot.blacknightsolutions.com/test2.jsp?me simply spits the output to the screen without processing it. In workers2.properties we are using the following lines: [uri:/examples/*] worker=ajp13:lancelot.blacknightsolutions.com:8009 [uri:/*.jsp] worker=ajp13:lancelot.blacknightsolutions.com:8009 The examples work fine, it's the other ones that seem to bork. Any ideas or clear examples would be greatly appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK2 - FreeBSD - Apache 2 on FreeBSD
Ralph Einfeldt is rumoured to have said Do you have a context with path= ? Otherwise you will not be able to access Domain/test.jsp (You would have to insert the context path: Domain/ContextPath/test.jsp) test.jsp must be in the top level directory that is given in the docBase attribute of the context. OK. I am complete moron, so please don't go easy on me. Should the context be set in server.xml or am I still looking at workers2.properties ? Is the syntax used in workers2.properties correct? ie. [uri:/*.jsp] Thanks again for all your patience :-) -Original Message- From: Michele Neylon :: Blacknight Solutions [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 2:28 PM To: [EMAIL PROTECTED] Subject: RE: JK2 - FreeBSD - Apache 2 on FreeBSD We can now view the examples at: http://lancelot.blacknightsolutions.com/examples We are still a little confused with regards to mapping *.jsp files to Tomcat, as: http://lancelot.blacknightsolutions.com/test2.jsp?me simply spits the output to the screen without processing it. In workers2.properties we are using the following lines: [uri:/examples/*] worker=ajp13:lancelot.blacknightsolutions.com:8009 [uri:/*.jsp] worker=ajp13:lancelot.blacknightsolutions.com:8009 The examples work fine, it's the other ones that seem to bork. Any ideas or clear examples would be greatly appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail messages has been scanned by MailScanner and is believed to be clean of dangerous content and virus'. http://www.mailscanner.info -- Mr. Michele Neylon Blacknight Solutions http://www.blacknightsolutions.com/ Reseller plans now available This e-mail messages has been scanned by MailScanner and is believed to be clean of dangerous content and virus'. http://www.mailscanner.info - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK2 - FreeBSD - Apache 2 on FreeBSD
The context is defined in server.xml. Have a look for context in this file. (Has nothing to do with mod_jk* at all) For specific questions on mod_jk2 I'm the wrong guy, as I've not used it by now. -Original Message- From: Michele Neylon :: Blacknight Solutions [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 2:50 PM To: [EMAIL PROTECTED] Subject: RE: JK2 - FreeBSD - Apache 2 on FreeBSD Should the context be set in server.xml or am I still looking at workers2.properties ? Is the syntax used in workers2.properties correct? ie. [uri:/*.jsp] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK2 - FreeBSD - Apache 2 on FreeBSD
Ralph Einfeldt is rumoured to have said The context is defined in server.xml. Have a look for context in this file. (Has nothing to do with mod_jk* at all) For specific questions on mod_jk2 I'm the wrong guy, as I've not used it by now. Thanks for the clarification :-) I'll play around with server.xml this evening and see how I get on -- Mr. Michele Neylon Blacknight Solutions http://www.blacknightsolutions.com/ Reseller plans now available This e-mail messages has been scanned by MailScanner and is believed to be clean of dangerous content and virus'. http://www.mailscanner.info - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JK2 - FreeBSD - Apache 2 on FreeBSD
Hi all, Following the instructions on http://www.thinlizard.com/lizard/modjk2.html I was able to compile mod_jk2 (thank you!) I've tried a number of variations of the jk2 configuration, but cannot get it to work. I keep on getting a series of errors: [Sun Mar 23 17:13:00 2003] [notice] mod_jk.post_config() first invocation [Sun Mar 23 17:13:01 2003] [notice] mod_jk.post_config() second invocation [Sun Mar 23 17:13:02 2003] [notice] Apache configured -- resuming normal operations [Sun Mar 23 17:13:02 2003] [notice] jk2_init() Found child 26498 in scoreboard slot 2 [Sun Mar 23 17:13:02 2003] [notice] jk2_init() Found child 26499 in scoreboard slot 3 [Sun Mar 23 17:13:02 2003] [notice] workerEnv.init() ok /usr/local/etc/apache2/workers2.properties [Sun Mar 23 17:13:02 2003] [notice] jk2_init() Found child 26500 in scoreboard slot 4 [Sun Mar 23 17:13:02 2003] [notice] workerEnv.init() ok /usr/local/etc/apache2/workers2.properties [Sun Mar 23 17:13:02 2003] [notice] jk2_init() Found child 26496 in scoreboard slot 0 [Sun Mar 23 17:13:02 2003] [notice] jk2_init() Found child 26497 in scoreboard slot 1 [Sun Mar 23 17:13:02 2003] [notice] workerEnv.init() ok /usr/local/etc/apache2/workers2.properties [Sun Mar 23 17:13:02 2003] [notice] workerEnv.init() ok /usr/local/etc/apache2/workers2.properties [Sun Mar 23 17:13:02 2003] [notice] workerEnv.init() ok /usr/local/etc/apache2/workers2.properties [Sun Mar 23 17:13:02 2003] [error] mod_jk child init 1 0 [Sun Mar 23 17:13:14 2003] [notice] jk2_init() Found child 26505 in scoreboard slot 5 [Sun Mar 23 17:13:14 2003] [notice] workerEnv.init() ok /usr/local/etc/apache2/workers2.properties [Sun Mar 23 17:13:49 2003] [notice] shm.createSlot() Create 1 0x2834e000 0x2835 [Sun Mar 23 17:13:49 2003] [notice] workerEnv.init() create slot epStat.4 [Sun Mar 23 17:15:04 2003] [error] channelSocket.open() connect failed xxx.x.com:8009 60 Operation timed out [Sun Mar 23 17:15:04 2003] [error] ajp13.connect() failed ajp13:xxx.xxx.com:8009 [Sun Mar 23 17:15:04 2003] [error] ajp13.service() failed to connect endpoint errno=60 Operation timed out [Sun Mar 23 17:15:04 2003] [error] ajp13.service() Error forwarding ajp13:xxx..com:8009 1 1 [Sun Mar 23 17:15:04 2003] [notice] ajp13.done() close endpoint ajp13:xxx.xxx.com:8009 error_state 1 [Sun Mar 23 17:15:04 2003] [error] lb.service() worker failed 12 for ajp13:xxx..com:8009 [Sun Mar 23 17:15:04 2003] [notice] lb.getWorker() All workers in error state, use the one with oldest error [Sun Mar 23 17:16:19 2003] [error] channelSocket.open() connect failed xxx..com:8009 60 Operation timed out [Sun Mar 23 17:16:19 2003] [error] ajp13.connect() failed ajp13:xxx.xxx.com:8009 [Sun Mar 23 17:16:19 2003] [error] ajp13.service() failed to connect endpoint errno=60 Operation timed out [Sun Mar 23 17:16:19 2003] [error] ajp13.service() Error forwarding ajp13:xxx.xxx.com:8009 1 1 [Sun Mar 23 17:16:19 2003] [notice] ajp13.done() close endpoint ajp13:xxx.xxx.com:8009 error_state 1 [Sun Mar 23 17:16:19 2003] [error] lb.service() worker failed 12 for ajp13:.xxx.com:8009 [Sun Mar 23 17:16:19 2003] [notice] lb.getWorker() All workers in error state, use the one with oldest error [Sun Mar 23 17:16:19 2003] [notice] lb.getWorker() We tried all possible workers 2 [Sun Mar 23 17:16:19 2003] [error] lb_worker.service() all workers in error or disabled state [Sun Mar 23 17:16:19 2003] [error] mod_jk.handler() Error connecting to tomcat 12 I'm at a loss :-( If anybody has any clear explanations/examples of the jk2 configuration I would appreciate it (a lot!) Thanks in advance, Michele Mr. Michele Neylon Blacknight Solutions - affordable linux hosting http://www.blacknightsolutions.com/ This e-mail messages has been scanned by MailScanner and is believed to be clean of dangerous content and virus'. http://www.mailscanner.info - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]