session replication in tomcat5, invalidate()
I can't destroy my sessions when I have multiple tomcat instances in a cluster. This is what I do HttpSession session = request.getSession(); // something session.invalidate(); When I have one tomcat server running (clustering is enabled) the session is invalidated, but if I start two instances and run the test again the session is not destroyed, it exists in both tomcat instances. I am confused ;-( Any help is greatly appreciated. Mats - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: iis5 + tomcat5
Is the isapi filer installed ok? That is, do you have a green up-pointing arrow next to it? Can you reach the url: http://localhost/jakarta/isapi_redirector.dll What is the error message you get? Mats chi wrote: hi, Could you teach me how to run jsp in iis5?? May be my config have some misstake. I have isntall tomcat5 and can go to http://localhost:8080 isapi_redirector.dll added to isapi added regedit by this file iis_redirect.reg [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0] extension_uri=/jakarta/isapi_redirector.dll log_file=C:\\TOMCAT\\dist\\logs\\iis_redirect.log log_level=emerg worker_file=C:\\tomcat\\dist\\conf\\worker.properties worker_mount_file=C:\\tomcat\\dist\\conf\\uriworkermap.properties worker.properties worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13 worker.tomcat_home=C:\tomcat\dist worker.java_home=C:\j2sdk1.4.1_03 ps=\ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost uriworkermap.properties /examples/*=ajp13 - 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]
Clustering - JavaGroups in Tomcat5
Does the Tomcat 5 clustering use JavaGroups? I would like to use JavaGroups in my own application, so I need to know that there won't be any conflicts between the JavaGroups version I use in my application and the one distributed (if any) with Tomcat 5. Thanks in advance! Mats - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IIS5+tomcat4.1 configuration problem
I can't see any .reg file. Maybe it's because my mozilla filters out .reg files, but I don't think it does that. Can you get the file from the mail you sent to the list? Mats Kareem Mahgoub wrote: you mean you have something to prevent files of type reg?? Best regards, Kareem Mahgoub Senior System Administrator Wayout Phone: +2023017153 Fax: +2023017130 45 El Batal Ahmed Abdel Aziz st. 14th Floor, Mohandeseen Cairo, Egypt - Original Message - From: Mats Andersson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 5:35 PM Subject: Re: IIS5+tomcat4.1 configuration problem Sorry, but I didn't get the attached file :-( Mats kareem wrote: Hi list Thanks for the reply Please find attached my registry file. To Rober Priest : I don't have those files at all, could you please guide me where I can get them. Best Regards, Kareem Mahgoub - 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: IIS5+tomcat4.1 configuration problem
You have mixed the jk2 with jk string values. Here's my registry: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] serverRoot=C:\\jakarta-tomcat-4.1.24 workersFile=C:\\jakarta-tomcat-4.1.24\\conf\\workers2.properties logLevel=DEBUG extensionUri=/jakarta/isapi_redirector2.dll Mats Kareem Mahgoub wrote: Dear Mats, Here is my registry key ### Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] extension_uri=/jakarta/isapi_redirector2.dll worker_file=d:\\tomcat 4.1\\conf\\worker.properties worker_mount_file=d:\\tomcat 4.1\\conf\\uriworkermap.properties log_file=d:\\tomcat 4.1\\logs\\jk.log log_level=debug ## I have checked any typos mistakes and i have checked the permission on the virtual directory to be execute and read. and I tried the hint by priest by putting libapr.dll and liaprutil.dll in the same folder with no success. Thanks for your help Best Regards, Kareem Mahgoub - 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: IIS5+tomcat4.1 configuration problem
1. # Define the communication channel [channel.socket:127.0.0.1:8009] info=Ajp13 forwarding over socket tomcatId=127.0.0.1:8009 port=8009 host=127.0.0.1 [uri:/wa1/*] 2. Don't know. But the question is, why do you want another name, it's confusing as it is with the jk,jk2 stuff. 3. It's not required. The mappings are in workers2.properties instead. Mats Kareem Mahgoub wrote: Thanks for clarification but i have 2 questions 1- What is the content of your workers2.properties 2- Does it make a difference if i make the file worker not wokers? 3- There is no uriworkermap.properties in your registry, may I assume it is not required? Your help is very much appreciated Best Regards, Kareem Mahgoub Best regards, Kareem Mahgoub Senior System Administrator Wayout Phone: +2023017153 Fax: +2023017130 45 El Batal Ahmed Abdel Aziz st. 14th Floor, Mohandeseen Cairo, Egypt - Original Message - From: Mats Andersson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 11:20 AM Subject: Re: IIS5+tomcat4.1 configuration problem You have mixed the jk2 with jk string values. Here's my registry: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] serverRoot=C:\\jakarta-tomcat-4.1.24 workersFile=C:\\jakarta-tomcat-4.1.24\\conf\\workers2.properties logLevel=DEBUG extensionUri=/jakarta/isapi_redirector2.dll Mats Kareem Mahgoub wrote: Dear Mats, Here is my registry key ### Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] extension_uri=/jakarta/isapi_redirector2.dll worker_file=d:\\tomcat 4.1\\conf\\worker.properties worker_mount_file=d:\\tomcat 4.1\\conf\\uriworkermap.properties log_file=d:\\tomcat 4.1\\logs\\jk.log log_level=debug ## I have checked any typos mistakes and i have checked the permission on the virtual directory to be execute and read. and I tried the hint by priest by putting libapr.dll and liaprutil.dll in the same folder with no success. Thanks for your help Best Regards, Kareem Mahgoub - 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: IIS 5.1 and Tomcat 4
True, my mistake. ;-) The module that could not be found, it seems like IIS is talking about isapi_redirect.dll. I don't know really how it all works with these isapi filters, but the file should be downloadable from a browser, so you should try pointing your browser to http://locahost/jakarta/isapi_redirect.dll and make sure you can download the file. If that does not work you have access problems. The IIS user can't reach the file. I think we are close to a solution now. Mats Jon Skeet wrote: [Replying to two posts from Mats at once] (About not being able to sniff local packets) Correct, but can't you use a browser on another machine? Yes, but that wouldn't help - it's the IIS-Tomcat communication which is at issue here (I thought, anyway) and that would still be local. I don't have easy access to another machine to test all this with IIS on one box and Tomcat on another - although it's the next step if I can't get anywhere soon. What do you get in the browser when trying to connect? The specified module could not be found. Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IIS5+Tomcat4.1 integration problem
What do you have in your registry? Can you make an export and send it to the list? Mats Kareem Mahgoub wrote: Hi all, Sorry for the repeated question. I've seached the archive and read many howtos and my problem still persists. The problem is that the isapi filter is not working i.e. red arrow in IIS. I tried isapi_redirector2.dll redirector.dll from jakarta site following the howto of the site, yet am not even getting the log file. If anybody succeeded in the integration and can provide me with the configuration file and the redirector used and the registry entry, I would appreciated vey much. Best Regards, Kareem Mahgoub - 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: IIS5+tomcat4.1 configuration problem
Sorry, but I didn't get the attached file :-( Mats kareem wrote: Hi list Thanks for the reply Please find attached my registry file. To Rober Priest : I don't have those files at all, could you please guide me where I can get them. Best Regards, Kareem Mahgoub - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IIS 5.1 and Tomcat 4
If you want you may send me your workers.properties uriworkermap.properties and exported registry settings and I will look closer at it. I can send you the dll files for jk and jk2 if you want. I have no idea why they are removed and where they are now. Mats Jon Skeet wrote: Just checking this, my log definitely shows it's found the ajp13 stuff: [Mon Sep 22 16:22:03 2003] [jk_worker.c (82)]: Into wc_open [Mon Sep 22 16:22:03 2003] [jk_worker.c (207)]: Into build_worker_map, creating 1 workers [Mon Sep 22 16:22:03 2003] [jk_worker.c (213)]: build_worker_map, creating worker ajp13 [Mon Sep 22 16:22:03 2003] [jk_worker.c (138)]: Into wc_create_worker [Mon Sep 22 16:22:03 2003] [jk_worker.c (152)]: wc_create_worker, about to create instance ajp13 of ajp13 [Mon Sep 22 16:22:03 2003] [jk_ajp13_worker.c (922)]: Into ajp13_worker_factory [Mon Sep 22 16:22:03 2003] [jk_worker.c (161)]: wc_create_worker, about to validate and init ajp13 [Mon Sep 22 16:22:03 2003] [jk_ajp13_worker.c (443)]: Into jk_worker_t::validate [Mon Sep 22 16:22:03 2003] [jk_ajp13_worker.c (456)]: In jk_worker_t::validate for worker ajp13 contact is localhost:8009 [Mon Sep 22 16:22:03 2003] [jk_ajp13_worker.c (482)]: Into jk_worker_t::init [Mon Sep 22 16:22:03 2003] [jk_worker.c (177)]: wc_create_worker, done [Mon Sep 22 16:22:03 2003] [jk_worker.c (223)]: build_worker_map, removing old ajp13 worker [Mon Sep 22 16:22:03 2003] [jk_worker.c (235)]: build_worker_map, done [Mon Sep 22 16:22:03 2003] [jk_worker.c (102)]: wc_open, done (I assume the removing old ajp13 worker is okay?) Looking with a TCP viewer, my Tomcat installation is definitely listening on port 8009, but there's no sign of IIS trying to connect to it, which at least suggests that the problem's somewhere there rather than in server.xml. There doesn't seem to be much I could have done wrong - I'm rather confused :( Jon - 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: IIS 5.1 and Tomcat 4
[Tue Sep 23 09:31:04 2003] [jk_isapi_plugin.c (672)]: In HttpFilterProc Virtual Host redirection of /localhost/mobilizer/mobilizer/ [Tue Sep 23 09:31:04 2003] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Tue Sep 23 09:31:04 2003] [jk_uri_worker_map.c (368)]: Attempting to map URI '/localhost/mobilizer/mobilizer/' [Tue Sep 23 09:31:04 2003] [jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Tue Sep 23 09:31:04 2003] [jk_isapi_plugin.c (678)]: In HttpFilterProc test Default redirection of /mobilizer/mobilizer/ [Tue Sep 23 09:31:04 2003] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Tue Sep 23 09:31:04 2003] [jk_uri_worker_map.c (368)]: Attempting to map URI '/mobilizer/mobilizer/' [Tue Sep 23 09:31:04 2003] [jk_uri_worker_map.c (391)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 - /mobilizer/ [Tue Sep 23 09:31:04 2003] [jk_isapi_plugin.c (688)]: HttpFilterProc [/mobilizer/mobilizer/] is a servlet url - should redirect to ajp13 [Tue Sep 23 09:31:04 2003] [jk_isapi_plugin.c (737)]: HttpFilterProc check if [/mobilizer/mobilizer/] is points to the web-inf directory It seems like /mobilizer/mobilizer/ finds its way through, but the path /localhost/mobilizer/mobilizer doesn't. Is that correct? What is the path starting with /localhost, is this really your intention? Mats Jon Skeet wrote: Just checking this, my log definitely shows it's found the ajp13 stuff: [Mon Sep 22 16:22:03 2003] [jk_worker.c (82)]: Into wc_open [Mon Sep 22 16:22:03 2003] [jk_worker.c (207)]: Into build_worker_map, creating 1 workers [Mon Sep 22 16:22:03 2003] [jk_worker.c (213)]: build_worker_map, creating worker ajp13 [Mon Sep 22 16:22:03 2003] [jk_worker.c (138)]: Into wc_create_worker [Mon Sep 22 16:22:03 2003] [jk_worker.c (152)]: wc_create_worker, about to create instance ajp13 of ajp13 [Mon Sep 22 16:22:03 2003] [jk_ajp13_worker.c (922)]: Into ajp13_worker_factory [Mon Sep 22 16:22:03 2003] [jk_worker.c (161)]: wc_create_worker, about to validate and init ajp13 [Mon Sep 22 16:22:03 2003] [jk_ajp13_worker.c (443)]: Into jk_worker_t::validate [Mon Sep 22 16:22:03 2003] [jk_ajp13_worker.c (456)]: In jk_worker_t::validate for worker ajp13 contact is localhost:8009 [Mon Sep 22 16:22:03 2003] [jk_ajp13_worker.c (482)]: Into jk_worker_t::init [Mon Sep 22 16:22:03 2003] [jk_worker.c (177)]: wc_create_worker, done [Mon Sep 22 16:22:03 2003] [jk_worker.c (223)]: build_worker_map, removing old ajp13 worker [Mon Sep 22 16:22:03 2003] [jk_worker.c (235)]: build_worker_map, done [Mon Sep 22 16:22:03 2003] [jk_worker.c (102)]: wc_open, done (I assume the removing old ajp13 worker is okay?) Looking with a TCP viewer, my Tomcat installation is definitely listening on port 8009, but there's no sign of IIS trying to connect to it, which at least suggests that the problem's somewhere there rather than in server.xml. There doesn't seem to be much I could have done wrong - I'm rather confused :( Jon - 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: IIS 5.1 and Tomcat 4
That explains the localhost part. Then I would try with a network sniffer (or whatever they are called) to find out if IIS tries to contact tomcat at 8009. If you don't have one, I suggest Ethereal at www.ethereal.com/ BTW: Do you get a strange stacktrace at startup (MBean something...)? Do the tomcat shutdown take a long time? If so, you can try removing the connector at 8009 and instead use the 8081 one at port 8009. The org.apache.coyote.tomcat4.CoyoteConnector is a new one used with jk2, but I can't imagine that it won't work with jk as well, since the protocol is the same (ajp13). Also you can add these rules to uriworkermap.properties, just to see if anything changes in the log file: /localhost/mobilizer/mobilizer/*=$(default.worker) /mobilizer/mobilizer/*=$(default.worker) Mats Jon Skeet wrote: snip log It seems like /mobilizer/mobilizer/ finds its way through, but the path /localhost/mobilizer/mobilizer doesn't. Is that correct? What is the path starting with /localhost, is this really your intention? There shouldn't be any path starting with /localhost. I'm visiting the URL http://localhost/mobilizer/mobilizer but the localhost part is the servername, not the path. This appears to be consistent with the log I get when I use the name of the computer rather than localhost, eg: [Tue Sep 23 10:40:11 2003] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Tue Sep 23 10:40:11 2003] [jk_uri_worker_map.c (368)]: Attempting to map URI '/treebeard/mobilizer/mobilizer/' [Tue Sep 23 10:40:11 2003] [jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match My guess is that it's something IIS is doing for the sake of virtual hosting, but I wouldn't like to say for sure. The /mobilizer/mobilizer path is the correct one - but I don't know why it's then not getting any further than it is doing. Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IIS 5.1 and Tomcat 4
Correct, but can't you use a browser on another machine? Mats Jon Skeet wrote: I've got a port monitor which just shows connections - and it shows no sign of IIS trying to contact Tomcat. I'll try with Ethereal as well. snip Darn - Ethereal won't (as far as I can see) let me capture network activity within my own system (ie the loopback, effectively). Any ideas what will? (I've tried various sniffers in the past, and none of them have particularly appealed - I'd welcome recommendations.) Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IIS 5.1 and Tomcat 4
What do you get in the browser when trying to connect? Mats Jon Skeet wrote: I've got a port monitor which just shows connections - and it shows no sign of IIS trying to contact Tomcat. I'll try with Ethereal as well. snip Darn - Ethereal won't (as far as I can see) let me capture network activity within my own system (ie the loopback, effectively). Any ideas what will? (I've tried various sniffers in the past, and none of them have particularly appealed - I'd welcome recommendations.) Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IIS 5.1 and Tomcat 4
I think you must have this row in your workers.properties: worker.list=ajp13 More comments are embedded in your text below. Please let me know it this helps. /Mats Jon Skeet wrote: I'm trying to get IIS 5.1 and Tomcat 4 to play nicely together. So far I've not got very far. I've got: o isapi_redirect.dll from http://apache.oregonstate.edu/jakarta/tomcat-3/bin/win32/i386/ (That's the only place I could find it, and it took a while to find... should I be worried that it's in the Tomcat 3 directory?) Go here instead. Seems better. http://www.apache.org/dist/jakarta/tomcat-connectors/ o Registry entries in Jakarta Isapi Redirector\1.0 (which I think are okay) They are, you have the green up workers.properties and uriworkermap.properties which I think are okay. Only useful bits in them are: [workers.properties] worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 [uriworkermap.properties] default.worker=ajp13 /mobilizer/*=$(default.worker) server.xml has: !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8081 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8081 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- 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 was slightly unsure about this - given that I want the first one (note the non-default port, by the way) do I actually need the second? Should I just be able to change teh port in workers.properties? workers.properties in your configuration tells IIS that your worker (=tomcat) will listen at port 8009) while the Connector declaration in server.xml tells tomcat that it sould start the AJP13 Connector on port 8009. So, you need both. The servlets work fine from the HTTP connector. IIS has a jakarta virtual directory with execute script permission, the ISAPI filter is up (green arrow), but I get: The specified module could not be found. on my web browser. The catalina log has: 2003-09-19 14:02:42 Ajp13Connector[8009] Opening server socket on all host IP addresses 2003-09-19 14:02:42 Ajp13Connector[8009] Starting background thread 2003-09-19 14:02:42 Ajp13Processor[8009][0] Starting background thread 2003-09-19 14:02:42 Ajp13Processor[8009][1] Starting background thread 2003-09-19 14:02:42 Ajp13Processor[8009][2] Starting background thread 2003-09-19 14:02:42 Ajp13Processor[8009][3] Starting background thread 2003-09-19 14:02:43 Ajp13Processor[8009][4] Starting background thread The localhost log doesn't seem to mention anything in particular. The isapi log has lines such as: [Fri Sep 19 14:04:40 2003] [jk_isapi_plugin.c (626)]: HttpFilterProc started [Fri Sep 19 14:04:40 2003] [jk_isapi_plugin.c (672)]: In HttpFilterProc Virtual Host redirection of /localhost/mobilizer/mobilizer [Fri Sep 19 14:04:40 2003] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Sep 19 14:04:40 2003] [jk_uri_worker_map.c (368)]: Attempting to map URI '/localhost/mobilizer/mobilizer' [Fri Sep 19 14:04:40 2003] [jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Fri Sep 19 14:04:40 2003] [jk_isapi_plugin.c (678)]: In HttpFilterProc test Default redirection of /mobilizer/mobilizer [Fri Sep 19 14:04:40 2003] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Sep 19 14:04:40 2003] [jk_uri_worker_map.c (368)]: Attempting to map URI '/mobilizer/mobilizer' [Fri Sep 19 14:04:40 2003] [jk_uri_worker_map.c (391)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 - /mobilizer/ [Fri Sep 19 14:04:40 2003] [jk_isapi_plugin.c (688)]: HttpFilterProc [/mobilizer/mobilizer] is a servlet url - should redirect to ajp13 [Fri Sep 19 14:04:40 2003] [jk_isapi_plugin.c (737)]: HttpFilterProc check if [/mobilizer/mobilizer] is points to the web-inf directory [Fri Sep 19 14:19:23 2003] [jk_isapi_plugin.c (626)]: HttpFilterProc started [Fri Sep 19 14:19:23 2003] [jk_isapi_plugin.c (672)]: In HttpFilterProc Virtual Host redirection of /localhost/mobilizer/mobilizer/ [Fri Sep 19 14:19:23 2003] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Sep 19 14:19:23 2003] [jk_uri_worker_map.c (368)]: Attempting to map URI '/localhost/mobilizer/mobilizer/' [Fri Sep 19 14:19:23 2003] [jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Fri Sep 19 14:19:23 2003] [jk_isapi_plugin.c (678)]: In HttpFilterProc test Default redirection of /mobilizer/mobilizer/ [Fri Sep 19 14:19:23 2003] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Sep 19 14:19:23 2003]
Load balancing with 2xTC5, 1xIIS and jk2
How do I define two workers for load balancing in workers2.properties? There is an example for the old jk, but I can't find any for jk2. Thanks in advance! Mats - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Load balancing with 2xTC5, 1xIIS and jk2
Thanks for your reply, but I need something more specific. I don't think the syntax of the workers.properties is the same as in workers2.properties, so I would like to know _how_ to define the load balancer. Does anyone have an example workers2.properties file? Thanks! Mats jerome moliere wrote: Mats Andersson wrote: How do I define two workers for load balancing in workers2.properties? There is an example for the old jk, but I can't find any for jk2. Hi mats, i'm sure that the idea is the same define 1 worker for your first TC5 1 worker for the second TC5 1 worker as the load balancer then you can define weights for respecting differences of power for the 2 machines... HTH Jerome - 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: Load balancing with 2xTC5, 1xIIS and jk2
Thank you for your answer. The configuration file below works for jk, but I want to use jk2 because it does not cause exceptions to be thrown at startup and it does not hang tomcat during shutdown in later tomcat releases (has something to do with Managed beans). I have found some information about jk2 configuration that may solve my problem. I will post a sample workers2.properties here if it works. I think there is a default load balancer named lb:0 that is used if no load balancer is defined. Mats [EMAIL PROTECTED] wrote: Hi here is a sample workers.properties that you can use. worker.list=tomcat0, tomcat1, loadbalancer worker.tomcat0.type=ajp13 worker.tomcat0.host=localhost worker.tomcat0.port=8009 worker.tomcat0.cachesize=100 worker.tomcat0.lbfactor=100 worker.tomcat1.type=ajp13 worker.tomcat1.host=localhost worker.tomcat1.port=8011 worker.tomcat1.cachesize=100 worker.tomcat1.lbfactor=100 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tomcat0,tomcat1 Save the file in the directory .../apache/conf Then add following lines to httpd.conf LoadModule jk_module libexec/mod_jk.so AddModule mod_jk.c IfModule mod_jk.c JkWorkersFile .../apache/conf/workers.properties JkLogFile .../apache/logs/mod_jk.log JkLogLevel warn JkMount /servlet/* loadbalancer JkMount /*.jsp loadbalancer /IfModule Do not forget to put mod_jk.so in directory .../apache/libexec :-) AB |-+--- | | Mats Andersson | | | mats.andersson@| | | xantus.se | | | | | | 09/15/03 01:40 | | | PM | | | Please respond | | | to Tomcat Users| | | List | | | | |-+--- ---| | | |To: Tomcat Users List [EMAIL PROTECTED] | |cc: | |Subject: Load balancing with 2xTC5, 1xIIS and jk2 | ---| How do I define two workers for load balancing in workers2.properties? There is an example for the old jk, but I can't find any for jk2. Thanks in advance! Mats - 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: Tomcat 5 clustering
Can anyone recommend a good solution for an external loadbalancer. I need it to have failover (two physical servers or something) and they must listen on the same IP of course. Another preference is a low price. My actual question is, how do you do these things with Tomcat? Thanks in advance! Mats Ralph Einfeldt wrote: There are two options: - Use sticky session. In this scenario you don't need session sharing to do load balancing, but it would make the system more fail safe. (If one tomcat gets out of service, sticky sessions without session sharing loose all data from the current sessions on this server) - Use no sticky sessions. In this case session sharing is a must. You can have loadbalancing without apache and still use one domainname. Just use an external loadbalancer. -Original Message- From: Jan Agermose [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 3:50 PM To: Tomcat Users List Subject: Re: Tomcat 5 clustering If you have apache in front of the different tomcat instances, apache would route the same browsersession to the same tomcatinstance on each request, or not? This would make session sharing useless? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 clustering
Thank you for your answers Filip! I have now successfully tried the cluster configuration in Tomcat5 with a simple webapp. About the balance product, I cannot use it because I'm on windows, but thanks anyway. Maybe my next project will be running on Linux. Mats Filip Hanik wrote: for software, balance.sourceforge.net is excellent for hardware, be prepared to spend some cash Filip -Original Message- From: Mats Andersson [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 10, 2003 1:50 AM To: Tomcat Users List Subject: Re: Tomcat 5 clustering Can anyone recommend a good solution for an external loadbalancer. I need it to have failover (two physical servers or something) and they must listen on the same IP of course. Another preference is a low price. My actual question is, how do you do these things with Tomcat? Thanks in advance! Mats Ralph Einfeldt wrote: There are two options: - Use sticky session. In this scenario you don't need session sharing to do load balancing, but it would make the system more fail safe. (If one tomcat gets out of service, sticky sessions without session sharing loose all data from the current sessions on this server) - Use no sticky sessions. In this case session sharing is a must. You can have loadbalancing without apache and still use one domainname. Just use an external loadbalancer. -Original Message- From: Jan Agermose [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 3:50 PM To: Tomcat Users List Subject: Re: Tomcat 5 clustering If you have apache in front of the different tomcat instances, apache would route the same browsersession to the same tomcatinstance on each request, or not? This would make session sharing useless? - 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]
Tomcat 4 and 5 cluster
Why is there so little noise on the web about clustering/session replication on Tomcat? I think Tomcat is a superior servlet engine (yes that's my opinion), but I need session replication on my latest project. I have tried Filip Haniks package, which works great, but I have not found any recent work on this for Tomcat 5. I also found some documentation about DistributedManager which may be the answer to my needs, but how do I use it? If you have some best practices to share or any information about recent work on a stable solution that will work in Tomcat 5, please let me know. Best regards! Mats Andersson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]