Re: Mod_jk 1.2.26 + tomcat 6.0.26 + apache 2.2.12 not working on ubuntu 'karmic'
Hi, I'm a researcher not an administrator. ;) Thanks for the hint with the virtual hosts, chris. I never did anything with this technique (didn't even know apache is capable of such things) but now it works. Regards Klemens Christopher Schultz schrieb: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Klemens, On 4/23/2010 11:21 AM, Klemens Muthmann wrote: However now I need to make the tomcat applications available over port 80 so I tried to configure mod_jk but it does not work. [...] Currently the configuration looks like: - There is a symbolic link to jk.load file in /etc/apache2/mods-enabled with content: LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so Does that file exist? Probably, because you have errors coming from mod_jk below... - httpd.conf is loaded in apache2.conf (after jk.load) via: Include /etc/apache2/httpd.conf and has the following content: JkWorkersFile /etc/libapache2-mod-jk/workers.properties JkLogFile /var/log/apache2/mod_jk.log JkLogLevel debug JkMount /nexus/* ajp13_worker Where do the above lines fall in terms of VirtualHosts? Most Debian-like packages have a main VirtualHost defined somewhere like /etc/apache2/sites-enabled. mod_jk allows separate mounts for each virtual host, including the top-level one, and they don't inherit from each other by default. Try moving the JkMount like (specifically) from where it is now into your default VirtualHost definition. Here's the hint that you have no JkMounts defined for your virtual host: [Fri Apr 23 15:20:05.210 2010] [23365:3585353520] [debug] jk_translate::mod_jk.c (3038): missing uri map for 127.0.1.1:/nexus/ It's the missing uri map that tells the story. Your workers.properties file looks fine (though the workers.tomcat_hom, workers.java_home, and ps properties are no longer relevant and should be removed, and you aren't actually using that loadbalancer so unless you're just testing in non-lb mode, remove it). Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvV02kACgkQ9CaO5/Lv0PDYGwCgj2mTQWirkmmUqCQwsP+ZJgUL FjAAnRvketJTpIebGHFR8k+h6tGglqyj =NBB0 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Mod_jk 1.2.26 + tomcat 6.0.26 + apache 2.2.12 not working on ubuntu 'karmic'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Klemens, On 4/23/2010 11:21 AM, Klemens Muthmann wrote: However now I need to make the tomcat applications available over port 80 so I tried to configure mod_jk but it does not work. [...] Currently the configuration looks like: - There is a symbolic link to jk.load file in /etc/apache2/mods-enabled with content: LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so Does that file exist? Probably, because you have errors coming from mod_jk below... - httpd.conf is loaded in apache2.conf (after jk.load) via: Include /etc/apache2/httpd.conf and has the following content: JkWorkersFile /etc/libapache2-mod-jk/workers.properties JkLogFile /var/log/apache2/mod_jk.log JkLogLevel debug JkMount /nexus/* ajp13_worker Where do the above lines fall in terms of VirtualHosts? Most Debian-like packages have a main VirtualHost defined somewhere like /etc/apache2/sites-enabled. mod_jk allows separate mounts for each virtual host, including the top-level one, and they don't inherit from each other by default. Try moving the JkMount like (specifically) from where it is now into your default VirtualHost definition. Here's the hint that you have no JkMounts defined for your virtual host: [Fri Apr 23 15:20:05.210 2010] [23365:3585353520] [debug] jk_translate::mod_jk.c (3038): missing uri map for 127.0.1.1:/nexus/ It's the missing uri map that tells the story. Your workers.properties file looks fine (though the workers.tomcat_hom, workers.java_home, and ps properties are no longer relevant and should be removed, and you aren't actually using that loadbalancer so unless you're just testing in non-lb mode, remove it). Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvV02kACgkQ9CaO5/Lv0PDYGwCgj2mTQWirkmmUqCQwsP+ZJgUL FjAAnRvketJTpIebGHFR8k+h6tGglqyj =NBB0 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: MOD_JK 1.2.26 woker init fails
Hi Rainer, The JKoptions set are as follows: JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories I will get the debug logging on and test and attach the log file. Currently I am using mod_proxy AJP. The funny thing is If I use mod_jk 1.2.23 I dont need to change anything it just works with the exact same config, it is only when I use 1.2.24/25/26 etc.. Regards, Kashif Ali mobile: +44 (0) 7939 118 961 email: [EMAIL PROTECTED] web:www.LinuxCraft.co.uk - Rainer Jung [EMAIL PROTECTED] wrote: From: Rainer Jung [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, 12 July, 2008 12:11:46 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: FW: MOD_JK 1.2.26 woker init fails Hi Kashif, Kashif Ali schrieb: Hi, I have compiled and ran Mod_JK 1.2.26 under apache 2.2.3 (Centos 5.1). However I am getting an error where it fails to initialise the worker. Here is debug output from Mod_Jk: [Fri Jul 11 08:13:08 2008] [16551:3086825232] [error] jk_handler::mod_jk.c (2314): Could not init service for worker=zimbra This is not a known problem. I see only two cases, where this could happen: - an unknown value of JkOptions for forward encoding. Do you use any JkOptions in your httpd configuration? - Memory allocation of the structures for the headers failed We can find out, which case it is, if you apply the patch http://people.apache.org/~rjung/patches/httpd2-service-init-debug.patch to apache-2.0/mod_jk.c, recompile and check once more with debug level. It will include more log output immediately before the error. Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: mod_jk 1.2.26 jk_mount
Can you attach your web.xml file... I'm new to this too but I think you need to have appropriate url filters setup -- I might be using the wrong terminology here.,.,. On Tue, Jun 03, 2008 at 05:22:06PM +0300, Niki Diulgerov wrote: It's not because of missing or insufficient rights. The connector just don't want to accept the rule JkMount /app/resources/* ajp13 and to redirect the request to tomcat and gives the error [Tue Jun 03 17:04:23.021 2008] [22353:2934367456] [debug] jk_map_to_storage::mod_jk.c (3211): no match for /app/resources/showPDFLetter found maybe the syntax for JkMount is changed in 1.2.26? Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Landon Fabbricino wrote: Could it be as simple as not having rights (permissions) to see the /app/resources directory or the showPDFLetter file ? Landon Fabbricino IT Applications Phone: 403.225.7515 Fax: 403.225.7604 [EMAIL PROTECTED] Niki Diulgerov [EMAIL PROTECTED] 6/3/2008 8:04:47 AM Hello there, I compiled the mod_jk 1.2.26 from the source for Red hat 5.1x64 The module works as intended except some strance gehaviour I have in my httpd.conf JkMount /app/*.jsp ajp13 JkMount /app/*.do ajp13 And this works OK but my application have a URLs like /app/resources/showPDFLetter?format=pdf Which was not described im JkMount and rejected I added JkMount /app/resources/* ajp13 but still the same error [Tue Jun 03 17:04:23.021 2008] [22353:2934367456] [debug] jk_map_to_storage::mod_jk.c (3211): no match for /app/resources/showPDFLetter found can this be because of the version of mod_jk ? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk 1.2.26 jk_mount
web.xml is the default coming from tomcat 5.5.26 the strange thing is in mod_jk log file in the beginning it says [Tue Jun 03 17:32:40.640 2008] [22746:2934367456] [debug] uri_worker_map_add::jk_uri_worker_map.c (379): wildchar rule '/app/*.jsp=ajp13' source 'JkMount' was added [Tue Jun 03 17:32:40.640 2008] [22746:2934367456] [debug] uri_worker_map_add::jk_uri_worker_map.c (379): wildchar rule '/app/*.do=ajp13' source 'JkMount' was added [Tue Jun 03 17:32:40.640 2008] [22746:2934367456] [debug] uri_worker_map_add::jk_uri_worker_map.c (379): wildchar rule '/app/resources/*=ajp13' source 'JkMoun t' was added But then ...when I try to access /resources/ShowPDF. it says [Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] ajp_unmarshal_response::jk_ajp_common.c (671): Header[0] [Location] = [https://myserver.com/app/resou rces/showPDFLetter?format=pdf] [Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] ajp_unmarshal_response::jk_ajp_common.c (671): Header[1] [Content-Type] = [text/html] [Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] ajp_unmarshal_response::jk_ajp_common.c (671): Header[2] [Content-Length] = [0] [Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1117): received from ajp13 pos=0 len=2 max=8192 [Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1117): 05 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - [Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] ajp_process_callback::jk_ajp_common.c (1661): AJP13 protocol: Reuse is OK [Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] ajp_reset_endpoint::jk_ajp_common.c (691): (ajp13) resetting endpoint with sd = 20 [Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] ajp_done::jk_ajp_common.c (2522): recycling connection pool slot=0 for worker ajp13 [Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] jk_handler::mod_jk.c (2348): Service finished with status=302 for worker=ajp13 [Tue Jun 03 17:34:08.241 2008] [22750:2934367456] [debug] map_uri_to_worker::jk_uri_worker_map.c (682): Attempting to map URI '/app/resources/showPDFLetter' f rom 2 maps [Tue Jun 03 17:34:08.241 2008] [22750:2934367456] [debug] find_match::jk_uri_worker_map.c (503): Attempting to map context URI '/app/*.jsp=ajp13' source 'JkMo unt' [Tue Jun 03 17:34:08.241 2008] [22750:2934367456] [debug] find_match::jk_uri_worker_map.c (503): Attempting to map context URI '/app/*.do=ajp13' source 'JkMou nt' [Tue Jun 03 17:34:08.241 2008] [22750:2934367456] [debug] jk_map_to_storage::mod_jk.c (3211): no match for /app/resources/showPDFLetter found Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Brian Martin wrote: Can you attach your web.xml file... I'm new to this too but I think you need to have appropriate url filters setup -- I might be using the wrong terminology here.,.,. On Tue, Jun 03, 2008 at 05:22:06PM +0300, Niki Diulgerov wrote: It's not because of missing or insufficient rights. The connector just don't want to accept the rule JkMount /app/resources/* ajp13 and to redirect the request to tomcat and gives the error [Tue Jun 03 17:04:23.021 2008] [22353:2934367456] [debug] jk_map_to_storage::mod_jk.c (3211): no match for /app/resources/showPDFLetter found maybe the syntax for JkMount is changed in 1.2.26? Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Landon Fabbricino wrote: Could it be as simple as not having rights (permissions) to see the /app/resources directory or the showPDFLetter file ? Landon Fabbricino IT Applications Phone: 403.225.7515 Fax: 403.225.7604 [EMAIL PROTECTED] Niki Diulgerov [EMAIL PROTECTED] 6/3/2008 8:04:47 AM Hello there, I compiled the mod_jk 1.2.26 from the source for Red hat 5.1x64 The module works as intended except some strance gehaviour I have in my httpd.conf JkMount /app/*.jsp ajp13 JkMount /app/*.do ajp13 And this works OK but my application have a URLs like /app/resources/showPDFLetter?format=pdf Which was not described im JkMount and rejected I added JkMount /app/resources/* ajp13 but still the same error [Tue Jun 03 17:04:23.021 2008] [22353:2934367456] [debug] jk_map_to_storage::mod_jk.c (3211): no match for /app/resources/showPDFLetter found can this be because of the version of mod_jk ? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk 1.2.26 jk_mount
My fault... I have JkMount in my httpd.conf and JkMount in my ssl.conf which is responcible for the SSL connections... and I added JkMount /app/resources/* ajp13 only in httpd.conf and not in ssl.conf And was stupid enough to not try http connection (would see thet it works) but was only trying HTTPS. Now it is OK. Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Rainer Jung wrote: Niki Diulgerov wrote: It's not because of missing or insufficient rights. The connector just don't want to accept the rule JkMount /app/resources/* ajp13 and to redirect the request to tomcat and gives the error [Tue Jun 03 17:04:23.021 2008] [22353:2934367456] [debug] jk_map_to_storage::mod_jk.c (3211): no match for /app/resources/showPDFLetter found maybe the syntax for JkMount is changed in 1.2.26? No, no change. Version is fine. Maybe your request goes into a vhost and you didn't put the JkMount into the same vhost? When starting up with debug log level, you can see the parsing of all the JkMounts, so your /app/resources/* should show up there. Query strings do not matter. Maybe a typo? Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Regards, Rainer Landon Fabbricino wrote: Could it be as simple as not having rights (permissions) to see the /app/resources directory or the showPDFLetter file ? Landon Fabbricino IT Applications Phone: 403.225.7515 Fax: 403.225.7604 [EMAIL PROTECTED] Niki Diulgerov [EMAIL PROTECTED] 6/3/2008 8:04:47 AM Hello there, I compiled the mod_jk 1.2.26 from the source for Red hat 5.1x64 The module works as intended except some strance gehaviour I have in my httpd.conf JkMount /app/*.jsp ajp13 JkMount /app/*.do ajp13 And this works OK but my application have a URLs like /app/resources/showPDFLetter?format=pdf Which was not described im JkMount and rejected I added JkMount /app/resources/* ajp13 but still the same error [Tue Jun 03 17:04:23.021 2008] [22353:2934367456] [debug] jk_map_to_storage::mod_jk.c (3211): no match for /app/resources/showPDFLetter found can this be because of the version of mod_jk ? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk 1.2.26 jk_mount
Could it be as simple as not having rights (permissions) to see the /app/resources directory or the showPDFLetter file ? Landon Fabbricino IT Applications Phone: 403.225.7515 Fax: 403.225.7604 [EMAIL PROTECTED] Niki Diulgerov [EMAIL PROTECTED] 6/3/2008 8:04:47 AM Hello there, I compiled the mod_jk 1.2.26 from the source for Red hat 5.1x64 The module works as intended except some strance gehaviour I have in my httpd.conf JkMount /app/*.jsp ajp13 JkMount /app/*.do ajp13 And this works OK but my application have a URLs like /app/resources/showPDFLetter?format=pdf Which was not described im JkMount and rejected I added JkMount /app/resources/* ajp13 but still the same error [Tue Jun 03 17:04:23.021 2008] [22353:2934367456] [debug] jk_map_to_storage::mod_jk.c (3211): no match for /app/resources/showPDFLetter found can this be because of the version of mod_jk ? -- Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] IMPORTANT NOTICE ! This E-Mail transmission and any accompanying attachments may contain confidential information intended only for the use of the individual or entity named above. Any dissemination, distribution, copying or action taken in reliance on the contents of this E-Mail by anyone other than the intended recipient is strictly prohibited and is not intended to, in anyway, waive privilege or confidentiality. If you have received this E-Mail in error please immediately delete it and notify sender at the above E-Mail address. Agrium uses state of the art anti-virus technology on all incoming and outgoing E-Mail. We encourage and promote the use of safe E-Mail management practices and recommend you check this, and all other E-Mail and attachments you receive for the presence of viruses. The sender and Agrium accept no liability for any damage caused by a virus or otherwise by the transmittal of this E-Mail. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk 1.2.26
Scottcan you confirm these JKMount directives in $APACHE_HOME/conf/httpd.conf # send all requests ending in .jsp to ajp13JkMount /*.jsp ajp13 # send all requests ending /servlet to ajp13JkMount /*/servlet/ ajp13 ThanksMartin __Disclaimer and confidentiality noteEverything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Subject: mod_jk 1.2.26 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Date: Fri, 4 Jan 2008 17:42:01 -0500 I'm getting 404 errors when I try to access the jkmanager page. There is only one backend tomcat instance and no load balancing configuration at all. I was just wanting to see the UI and if it had changed at all with the upgrade. Do you now get 404's if you don't have a load balancing configuration? Maybe I've done something wrong but the config looks the same. I can post the config if it's not something more obvious with the update. Thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Get the power of Windows + Web with the new Windows Live. http://www.windowslive.com?ocid=TXT_TAGHM_Wave2_powerofwindows_012008
RE: mod_jk 1.2.26
On Fri, 2008-01-04 at 17:51 -0500, Martin Gainty wrote: Scottcan you confirm these JKMount directives in $APACHE_HOME/conf/httpd.conf # send all requests ending in .jsp to ajp13JkMount /*.jsp ajp13 # send all requests ending /servlet to ajp13JkMount /*/servlet/ ajp13 ThanksMartin __Disclaimer and confidentiality noteEverything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Subject: mod_jk 1.2.26 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Date: Fri, 4 Jan 2008 17:42:01 -0500 I'm getting 404 errors when I try to access the jkmanager page. There is only one backend tomcat instance and no load balancing configuration at all. I was just wanting to see the UI and if it had changed at all with the upgrade. Do you now get 404's if you don't have a load balancing configuration? Maybe I've done something wrong but the config looks the same. I can post the config if it's not something more obvious with the update. Thanks -- --- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Get the power of Windows + Web with the new Windows Live. http://www.windowslive.com?ocid=TXT_TAGHM_Wave2_powerofwindows_012008 Nevermind it has nothing to do with the status worker. I've just upgraded to apache 2.2 and mod_jk 1.2.26 and it seems that there is some inheritance logic in the JkMounts between virtual hosts. I see the very well documented section about JkMountCopy now. Sorry for the noise. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk 1.2.26
Hi Scott, Scott McClanahan schrieb: I'm getting 404 errors when I try to access the jkmanager page. There is only one backend tomcat instance and no load balancing configuration at all. I was just wanting to see the UI and if it had changed at all with the upgrade. Do you now get 404's if you don't have a load balancing configuration? Maybe I've done something wrong but the config looks the same. I can post the config if it's not something more obvious with the update. Thanks No, no change like this (although you didn't tell us how old your previous version was). How does your config look like? Are you talking to the same virtual host, in which you did include your jkmanager JkMount? Although you should get it working, concerning changes in the UI: only one change, when using Apache httpd one can now see the JkMounts from all vhosts in the status worker display, independent of the vhost the status worker runs in. Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]