Re: Server affinity instead of session affinity
I'm reading about domain directive in worker properties. I can setup different workers to be in the same domain (p.e. a machine) and have domain affinity. Do you have some idea how it really works? Thanks On Tue, Nov 23, 2010 at 9:01 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 11/23/2010 10:27 AM, André Warnier wrote: With the configuration below and your explanations, I suppose that there is some kind of load-balancing going on between the two machines. What is used at the front-end to load-balance ? An idea (for the moment vague) would be to use some intelligent front-end, which would decide (maybe as Mark wrote, in function of the client IP address) to start chanelling one client to either machine 1 or machine 2 - and within it to Tomcat A,B,C or D - , set a cookie, and use this cookie later to keep sending the same client to the same back-end machine. Kind of a session on top of a session.. I believe there was a presentation at ApacheCon where someone presented something like this. I didn't attend, but I heard that a relatively simply use of httpd's mod_headers was used to essentially synthesize sticky sessions. The same technique could be applied to do a sort of server stickiness: 1. Check the request for a SERVER_AFFINITY cookie 2. If none exists, choose a server however you like and set SERVER_AFFINITY=A/B or D/C 3. Given a server affinity, send the request to a specific back-end server. Note that #3 can be achieved by simply choosing an AJP worker that is not a load-balancer. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkzsK6kACgkQ9CaO5/Lv0PCZWACgwBnHTtm61U3tRM1QXP1w+Tdp EOQAn0YPzA8SVbO589e+V++qS8fS2cIl =Hh7E -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Server affinity instead of session affinity
And regarding your question; ~Why can you not run all apps within one single JVM/Tomcat ? Because we have a lot of web applications and we are using 32-bit JVM. Thanks a lot On Tue, Nov 23, 2010 at 10:59 PM, Andrew Hole andremailingl...@gmail.comwrote: I'm reading about domain directive in worker properties. I can setup different workers to be in the same domain (p.e. a machine) and have domain affinity. Do you have some idea how it really works? Thanks On Tue, Nov 23, 2010 at 9:01 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 11/23/2010 10:27 AM, André Warnier wrote: With the configuration below and your explanations, I suppose that there is some kind of load-balancing going on between the two machines. What is used at the front-end to load-balance ? An idea (for the moment vague) would be to use some intelligent front-end, which would decide (maybe as Mark wrote, in function of the client IP address) to start chanelling one client to either machine 1 or machine 2 - and within it to Tomcat A,B,C or D - , set a cookie, and use this cookie later to keep sending the same client to the same back-end machine. Kind of a session on top of a session.. I believe there was a presentation at ApacheCon where someone presented something like this. I didn't attend, but I heard that a relatively simply use of httpd's mod_headers was used to essentially synthesize sticky sessions. The same technique could be applied to do a sort of server stickiness: 1. Check the request for a SERVER_AFFINITY cookie 2. If none exists, choose a server however you like and set SERVER_AFFINITY=A/B or D/C 3. Given a server affinity, send the request to a specific back-end server. Note that #3 can be achieved by simply choosing an AJP worker that is not a load-balancer. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkzsK6kACgkQ9CaO5/Lv0PCZWACgwBnHTtm61U3tRM1QXP1w+Tdp EOQAn0YPzA8SVbO589e+V++qS8fS2cIl =Hh7E -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Server affinity instead of session affinity
Hi guys! There is any available configuration to define server affinity instead of session affinity? Our architecture setup is based on multiple JVMs (tomcat) instances in each server (machine). The goal is to send all requests (within a session) from a client browser to the same machine. Is it possible to perform it using jvmRoute? Thanks a lot
Re: Server affinity instead of session affinity
No... Session affinity (jvmRoute in JSESSION ID) implies sending to the same tomcat instance (same JVM), not for the same machine. Some idea? On Mon, Nov 22, 2010 at 9:10 PM, André Warnier a...@ice-sa.com wrote: Andrew Hole wrote: Hi guys! There is any available configuration to define server affinity instead of session affinity? Our architecture setup is based on multiple JVMs (tomcat) instances in each server (machine). The goal is to send all requests (within a session) from a client browser to the same machine. Is it possible to perform it using jvmRoute? I am not sure I understand the question correctly, but if I do, that's what it does, no ? Does sending to the same Tomcat not imply sending to the same machine ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Server affinity instead of session affinity
An example: Machine 1: Tomcat A Tomcat B On Mon, Nov 22, 2010 at 11:05 PM, André Warnier a...@ice-sa.com wrote: Andrew Hole wrote: No... Session affinity (jvmRoute in JSESSION ID) implies sending to the same tomcat instance (same JVM), not for the same machine. I guess that I still don't get it. The same Tomcat instance /is/, per definition, on the same machine. Or do you want to send the request to a /different/ Tomcat instance, but only one which is on the same machine ? And if yes, why would you want to do that ? In other words, why would you /not/ want to send the request to the same Tomcat on the same machine ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Server affinity instead of session affinity
Sorry for the inconvenience. I sent the email with wrong content. An example: Machine 1: Tomcat A App1 App2 Tomcat B App3 App4 Machine 2: Tomcat C App1 App2 Tomcat D App3 App4 Using session affinity, if I make a request to App1 and the Tomcat A in Machine 1 is selected. All the sequent requests will be redirected (within the same session) to the same Tomcat (tomcat A). However, if i make a request to App3, Tomcat B (machine 1) or Tomcat D (machine 2) could be selected. What I really want is that the request to App3 could be done to Tomcat B in machine 1 (the request was done using the same browser client). Thanks On Mon, Nov 22, 2010 at 11:23 PM, Andrew Hole andremailingl...@gmail.comwrote: An example: Machine 1: Tomcat A Tomcat B On Mon, Nov 22, 2010 at 11:05 PM, André Warnier a...@ice-sa.com wrote: Andrew Hole wrote: No... Session affinity (jvmRoute in JSESSION ID) implies sending to the same tomcat instance (same JVM), not for the same machine. I guess that I still don't get it. The same Tomcat instance /is/, per definition, on the same machine. Or do you want to send the request to a /different/ Tomcat instance, but only one which is on the same machine ? And if yes, why would you want to do that ? In other words, why would you /not/ want to send the request to the same Tomcat on the same machine ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Server affinity instead of session affinity
There is a middleware-to-middleware connection between Tomcat A and Tomcat B using RMI (point-to-point protocol) and Tomcat A has in-memory data useful to App3. The same aproach in the second server: applications in tomcat d have RMI communication to tomcat c. thanks On Mon, Nov 22, 2010 at 11:58 PM, André Warnier a...@ice-sa.com wrote: Andrew Hole wrote: Sorry for the inconvenience. I sent the email with wrong content. An example: Machine 1: Tomcat A App1 App2 Tomcat B App3 App4 Machine 2: Tomcat C App1 App2 Tomcat D App3 App4 Using session affinity, if I make a request to App1 and the Tomcat A in Machine 1 is selected. All the sequent requests will be redirected (within the same session) to the same Tomcat (tomcat A). However, if i make a request to App3, Tomcat B (machine 1) or Tomcat D (machine 2) could be selected. What I really want is that the request to App3 could be done to Tomcat B in machine 1 (the request was done using the same browser client). Ok, now I get it. My next question is : why ? Why is it important that, having started on Tomcat A with App1, the same client would get App3 on Tomcat B, rather than on Tomcat D ? What do Tomcat A and Tomcat B have in common, that Tomcat C and D don't ? And vice-versa. And , should your scheme still work if in the future, Tomcat A and Tomcat B were split onto two separate machines ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
tomcat process memory
Hi guys! I'm getting a strange behaviour of Tomcat process. I'm using a memory profiler and it shows the following info: heap allocated memory: 278MB non-heap allocated memory : 151MB However, TOP shows that memory used by tomcat process is more or less 1GB. WhY this happens? Is it possible to understant what is using the remaining MB? Thanks a lot
Re: tomcat process memory
Linux. RES column. What is the difference between heap and non-heap and where I can configure the limit to non-heap? Thanks On Wed, Apr 8, 2009 at 2:58 PM, André Warnier a...@ice-sa.com wrote: Andrew Hole wrote: Hi guys! I'm getting a strange behaviour of Tomcat process. I'm using a memory profiler and it shows the following info: heap allocated memory: 278MB non-heap allocated memory : 151MB However, TOP shows that memory used by tomcat process is more or less 1GB. What column of top is telling you that, on which platform and with which Tomcat ? WhY this happens? Is it possible to understant what is using the remaining MB? Probably difficult at the best of time without a lot more information, but start with the above. By the way, a good document of which I just heard of today is here : http://java.sun.com/javase/technologies/hotspot/gc/gc_tuning_6.html - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat process memory
I'm using Your Kit Java Profiler: PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND 32121 tomcat25 0 1649m 962m 15m S 76 24.3 23:00.14 java At this moment I've 501 heap allocated memory and 146 non-heap. The total memory used by the process is increasing and has the value of 962MB. On Wed, Apr 8, 2009 at 3:13 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Andrew Hole [mailto:andremailingl...@gmail.com] Subject: Re: tomcat process memory What is the difference between heap and non-heap and where I can configure the limit to non-heap? The terminology depends on the profiling tool you're using - one of the many pertinent things you didn't bother to tell us. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
mod_proxy_balancer and session affinity
Hi guys! I can't find any documentation regarding session affinity using mod_proxy_balancer (http protocol). Anyone have or know where i cand find it? Thanks
mod_jk vs mod_proxy
Hi guys! Wich is the recommend module and what are the differences? Thanks a lot
mod_jk - load balancing
Hi Guys! What is the behavior of mod_jk if one of the workers stops? Mod_jk stops to send requests to that worker? Or it retries at each request and only after determine that the worker is down , it sends the request to the fine worker ? # -- # Load Balancer worker # -- worker.appbalancer.type= lb worker.appbalancer.balanced_workers= wk1,wk2 # # First worker # worker.wk1.port= 7001 worker.wk1.host= 10.250.14.43 worker.wk1.type= ajp13 worker.wk1.cache_timeout=600 worker.wk1.socket_timeout=5 # # Second worker # worker.wk2.port= 7001 worker.wk2.host= 10.250.14.44 worker.wk2.type= ajp13 worker.wk2.cache_timeout=600 worker.wk2.socket_timeout=5 Thanks
Service Unavailable - zero size object
Hi! We are using Apache + Mod_jk + Tomcat and randomly we are getting the following error (http 503) Service Unavailable - *zero* *size* *object* The server is temporarily unable to service your request. Please try again later. Do you have any idea about why happens this error? Thanks a lot A.H
Re: Service Unavailable - zero size object
The strange thing is that i cannot find any log file with this error! Its very strange! Thanks On Wed, Jan 21, 2009 at 12:23 PM, Piller Sébastien pi...@hmcrecord.chwrote: Hi, you will most likely find more informations on the log files (catalina.out or smt like that) could you have a look and report the stacktrace here? Andrew Hole a écrit : Hi! We are using Apache + Mod_jk + Tomcat and randomly we are getting the following error (http 503) Service Unavailable - *zero* *size* *object* The server is temporarily unable to service your request. Please try again later. Do you have any idea about why happens this error? Thanks a lot A.H - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat and coldfusion
In cold fusion server log we can see that coldfusion stopped without errors Information,main,01/15/09,11:31:54,,ColdFusion stopped Do you have any idea? thanks On Wed, Jan 14, 2009 at 9:29 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Andrew Hole [mailto:andremailingl...@gmail.com] Subject: Re: Tomcat and coldfusion Here's your culprits: Thread-11 prio=1 tid=0x0acd2a20 nid=0x5fbc in Object.wait() [0x818a9000..0x818a9eb0] at java.lang.Object.wait(Native Method) - waiting on 0xeb86a490 (a coldfusion.util.SimpleThreadPool) at java.lang.Object.wait(Object.java:474) at coldfusion.util.SimpleThreadPool.getAssignment (SimpleThreadPool.java:113) - locked 0xeb86a490 (a coldfusion.util.SimpleThreadPool) at coldfusion.util.SimpleWorkerThread.run(SimpleThreadPool.java:207) Thread-10 prio=1 tid=0x0a439138 nid=0x5fbb in Object.wait() [0x8192a000..0x8192af30] at java.lang.Object.wait(Native Method) - waiting on 0xeb86a490 (a coldfusion.util.SimpleThreadPool) at java.lang.Object.wait(Object.java:474) at coldfusion.util.SimpleThreadPool.getAssignment (SimpleThreadPool.java:113) - locked 0xeb86a490 (a coldfusion.util.SimpleThreadPool) at coldfusion.util.SimpleWorkerThread.run(SimpleThreadPool.java:207) Thread-9 prio=1 tid=0x0a873288 nid=0x5fba in Object.wait() [0x81afc000..0x81afcdb0] at java.lang.Object.wait(Native Method) - waiting on 0xeb86a490 (a coldfusion.util.SimpleThreadPool) at java.lang.Object.wait(Object.java:474) at coldfusion.util.SimpleThreadPool.getAssignment (SimpleThreadPool.java:113) - locked 0xeb86a490 (a coldfusion.util.SimpleThreadPool) at coldfusion.util.SimpleWorkerThread.run(SimpleThreadPool.java:207) These threads all originate in coldfusion, so you'll need to fix it in there, not Tomcat. You can do a kill -3 to really get rid of the process, but that's drastic and simply masks the problem. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat and coldfusion
Hello guys! I deployed coldfusion on Tomcat and everything looks fine to me except when I shutdown the service. This deployment was made in Linux. Jan 14, 2009 5:29:43 PM org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-8189 Jan 14, 2009 5:29:44 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina 01/14 17:29:44 Information [main] - Stopping Event Gateways. 01/14 17:29:49 Information [main] - ColdFusion stopped Jan 14, 2009 5:29:49 PM org.apache.catalina.startup.ContextConfig stop FINE: ContextConfig: Processing STOP Jan 14, 2009 5:29:49 PM org.apache.catalina.startup.ContextConfig stop FINE: ContextConfig: Processing STOP Jan 14, 2009 5:29:49 PM org.apache.coyote.http11.Http11BaseProtocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8189 It looks that tomcat is stopped but the tomcat process still alive in the server. Do you have any suggestion about this issue? I'm very concerned about this problem. Thanks a lot
Re: Tomcat and coldfusion
just to say one more thing: this only happens when cfusion war is deployed in tomcat. If i try to shutdown without cfusion.war deployed, everything works fine. I'm seeing the cfusion log and there are no errors in stopping cfusion engine. Thanks On Wed, Jan 14, 2009 at 6:15 PM, Andrew Hole andremailingl...@gmail.comwrote: Hello guys! I deployed coldfusion on Tomcat and everything looks fine to me except when I shutdown the service. This deployment was made in Linux. Jan 14, 2009 5:29:43 PM org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-8189 Jan 14, 2009 5:29:44 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina 01/14 17:29:44 Information [main] - Stopping Event Gateways. 01/14 17:29:49 Information [main] - ColdFusion stopped Jan 14, 2009 5:29:49 PM org.apache.catalina.startup.ContextConfig stop FINE: ContextConfig: Processing STOP Jan 14, 2009 5:29:49 PM org.apache.catalina.startup.ContextConfig stop FINE: ContextConfig: Processing STOP Jan 14, 2009 5:29:49 PM org.apache.coyote.http11.Http11BaseProtocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8189 It looks that tomcat is stopped but the tomcat process still alive in the server. Do you have any suggestion about this issue? I'm very concerned about this problem. Thanks a lot
Re: Tomcat and coldfusion
deploy -- /web-app On Wed, Jan 14, 2009 at 6:31 PM, Andrew Hole andremailingl...@gmail.comwrote: just to say one more thing: this only happens when cfusion war is deployed in tomcat. If i try to shutdown without cfusion.war deployed, everything works fine. I'm seeing the cfusion log and there are no errors in stopping cfusion engine. Thanks On Wed, Jan 14, 2009 at 6:15 PM, Andrew Hole andremailingl...@gmail.comwrote: Hello guys! I deployed coldfusion on Tomcat and everything looks fine to me except when I shutdown the service. This deployment was made in Linux. Jan 14, 2009 5:29:43 PM org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-8189 Jan 14, 2009 5:29:44 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina 01/14 17:29:44 Information [main] - Stopping Event Gateways. 01/14 17:29:49 Information [main] - ColdFusion stopped Jan 14, 2009 5:29:49 PM org.apache.catalina.startup.ContextConfig stop FINE: ContextConfig: Processing STOP Jan 14, 2009 5:29:49 PM org.apache.catalina.startup.ContextConfig stop FINE: ContextConfig: Processing STOP Jan 14, 2009 5:29:49 PM org.apache.coyote.http11.Http11BaseProtocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8189 It looks that tomcat is stopped but the tomcat process still alive in the server. Do you have any suggestion about this issue? I'm very concerned about this problem. Thanks a lot
Re: Tomcat and coldfusion
Thanks for you quick response. How can I take a thread dump? Thanks On Wed, Jan 14, 2009 at 6:37 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Andrew Hole [mailto:andremailingl...@gmail.com] Subject: Tomcat and coldfusion It looks that tomcat is stopped but the tomcat process still alive in the server. This is pretty much always a result of a webapp starting its own threads and failing to shut them down; the JVM can't terminate until all non-daemon threads exit. Properly designed webapps often use a ServletContextListener to do the necessary thread management. Try taking a thread dump after the shutdown request to see where the remaining threads are. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat and coldfusion
(ParallelGC) prio=1 tid=0x0a03cec8 nid=0x5fa0 runnable GC task thread#1 (ParallelGC) prio=1 tid=0x0a03db18 nid=0x5fa1 runnable GC task thread#2 (ParallelGC) prio=1 tid=0x0a03e750 nid=0x5fa2 runnable GC task thread#3 (ParallelGC) prio=1 tid=0x0a03f388 nid=0x5fa3 runnable VM Periodic Task Thread prio=1 tid=0x0a0ea8c8 nid=0x5fac waiting on condition On Wed, Jan 14, 2009 at 6:48 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Andrew Hole [mailto:andremailingl...@gmail.com] Subject: Re: Tomcat and coldfusion How can I take a thread dump? Tough to tell you since you left out basic information: 1) Tomcat version 2) JRE/JDK version 3) OS type and level If you're on a recent enough JRE/JDK (1.5 or better), you can use JConsole or jstack to poke around inside a running JVM. For Linux systems, try a kill -9 (or ctrl-\); for Windows, try ctrl-brk. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Session affinity
Hi guys! The session affinity in Apache guarantee that all requests from a specific browser will be redirected to the same instance of Tomcat (worker). How it works when we have an hardware load balancer in the first layer and 2 actives Apache HTTP Server? Thanks a lot
Re: Session affinity
Is not very smart... There is some problem with that? Thanks On Fri, Nov 21, 2008 at 9:00 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Andrew Hole [mailto:[EMAIL PROTECTED] Subject: Session affinity How it works when we have an hardware load balancer in the first layer and 2 actives Apache HTTP Server? How smart is your load balancer? Can it be configured to route requests based on content of the HTTP message (i.e., the JSESSIONID cookie value)? (That's probably asking a lot of a balancer.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat clustering
Hi Guys! What means the following error? What I'm doing wrong? FINE: Assuming clocks are synched: Replication for GET-ALL- took=47 ms. 27/Out/2008 17:12:10 org.apache.catalina.cluster.session.ClusterSessionListener messageReceived SEVERE: Context manager doesn't exist: Thanks a lot
Re: Tomcat clustering
I would like to cluster two different applications in same machine (each in different Tomcat instance). Is it possible? On Mon, Oct 27, 2008 at 5:39 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: It means that the application that it is trying to request data from is not deployed on the server. for example, if you have applicate /test installed on server A, then it will have to be installed on server B as well, if it isn't, you'll get a message like the one below Filip Andrew Hole wrote: Hi Guys! What means the following error? What I'm doing wrong? FINE: Assuming clocks are synched: Replication for GET-ALL- took=47 ms. 27/Out/2008 17:12:10 org.apache.catalina.cluster.session.ClusterSessionListener messageReceived SEVERE: Context manager doesn't exist: Thanks a lot - 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: Tomcat clustering
Yes. Machine1 TomcatA ApplicationA1 TomcatB ApplicationB1 But both applications have been developed by me and I want to share an object between applications. If the object have been created in application A, I would like to replicate information to application B. Thanks On Mon, Oct 27, 2008 at 6:18 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: not sure I understand Is this your layout then? Machine1 TomcatA ApplicationA1 TomcatB ApplicationB1 since ApplicationA1 and ApplicationB1 are different, there is nothing to cluster, there is no state to share Filip Andrew Hole wrote: I would like to cluster two different applications in same machine (each in different Tomcat instance). Is it possible? On Mon, Oct 27, 2008 at 5:39 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: It means that the application that it is trying to request data from is not deployed on the server. for example, if you have applicate /test installed on server A, then it will have to be installed on server B as well, if it isn't, you'll get a message like the one below Filip Andrew Hole wrote: Hi Guys! What means the following error? What I'm doing wrong? FINE: Assuming clocks are synched: Replication for GET-ALL- took=47 ms. 27/Out/2008 17:12:10 org.apache.catalina.cluster.session.ClusterSessionListener messageReceived SEVERE: Context manager doesn't exist: Thanks a lot - 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: Tomcat clustering
Well, I would like in the future to have application A and B in different machines, and for that i need to use some way to share session data. Thanks On Mon, Oct 27, 2008 at 8:19 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: nothing like that is built in, you'd have to write that code for the object sharing yourself you could use the tomcat internals to achieve what you want, but you'd have to do a bit of legwork. Filip Andrew Hole wrote: Yes. Machine1 TomcatA ApplicationA1 TomcatB ApplicationB1 But both applications have been developed by me and I want to share an object between applications. If the object have been created in application A, I would like to replicate information to application B. Thanks On Mon, Oct 27, 2008 at 6:18 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: not sure I understand Is this your layout then? Machine1 TomcatA ApplicationA1 TomcatB ApplicationB1 since ApplicationA1 and ApplicationB1 are different, there is nothing to cluster, there is no state to share Filip Andrew Hole wrote: I would like to cluster two different applications in same machine (each in different Tomcat instance). Is it possible? On Mon, Oct 27, 2008 at 5:39 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: It means that the application that it is trying to request data from is not deployed on the server. for example, if you have applicate /test installed on server A, then it will have to be installed on server B as well, if it isn't, you'll get a message like the one below Filip Andrew Hole wrote: Hi Guys! What means the following error? What I'm doing wrong? FINE: Assuming clocks are synched: Replication for GET-ALL- took=47 ms. 27/Out/2008 17:12:10 org.apache.catalina.cluster.session.ClusterSessionListener messageReceived SEVERE: Context manager doesn't exist: Thanks a lot - 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] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
share SessionID in different webapps - same tomcat
Is it possible to share sessionID between webapps in the same tomcat? How can I find a demo or some JSP to simulate it? Thanks a lot A.C
Re: share SessionID in different webapps - same tomcat
Thanks. And how can I test this feature? Could you help to write a JSP sample? Thanks On Wed, Sep 3, 2008 at 5:58 PM, Gregor Schneider [EMAIL PROTECTED]wrote: http://tomcat.apache.org/tomcat-5.5-doc/config/host.html Search for SingleSignOn Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - 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: share SessionID in different webapps - same tomcat
Cookies (like you see in this site) is a good solution? *http://www.fwd.at/tomcat/sharing-session-data-howto.html* On Wed, Sep 3, 2008 at 6:21 PM, Andrew Hole [EMAIL PROTECTED]wrote: Thanks. And how can I test this feature? Could you help to write a JSP sample? Thanks On Wed, Sep 3, 2008 at 5:58 PM, Gregor Schneider [EMAIL PROTECTED]wrote: http://tomcat.apache.org/tomcat-5.5-doc/config/host.html Search for SingleSignOn Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Capture and replay
Hello! I'm interested to capture and replay Java application events. There is some tool to do that? My java application runs on tomcat container. Thanks a lot
Windows Task Manager - tomcat processes
Hi! If I have more than one tomcat instance installed and started, how do I now wich process in task manager corresponds to the tomcat instance? In task manager I only see things like that: tomcat5.exe tomcat5.exe tomcat5.exe Thanks a lot A.
Re: Web server and tomcat - firewall
HI! I don't have perl installed in production servers, but it is windows server 2003. About mod_jk configuration (mod_jk/1.2.18) : # List the workers name worker.list = p1balancer, resumop1 # -- # Load Balancer worker # -- worker.p1balancer.type= lb worker.p1balancer.balanced_workers= p11,p12 # # First worker # worker.p11.port= 8009 worker.p11.host= 10.202.131.130 worker.p11.type= ajp13 # # Second worker # worker.p12.port= 8009 worker.p12.host= 10.202.131.131 worker.p12.type= ajp13 # -- # Load Balancer worker # -- worker.resumop1.type= lb worker.resumop1.balanced_workers= rp11,rp12 # # First worker # worker.rp11.port= 8007 worker.rp11.host= 10.202.131.130 worker.rp11.type= ajp13 # # Second worker # worker.rp12.port= 8007 worker.rp12.host= 10.202.131.131 worker.rp12.type= ajp13 On tomcat side Connector port=*8009* enableLookups=*false*redirectPort =*8443* protocol=*AJP/1.3* / Thanks a lot On Wed, May 7, 2008 at 2:36 PM, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer, Rainer Jung wrote: | [Tue May 06 16:24:03 2008] [2704:3128] [error] jk_ajp_common.c | (951): (p11) can't receive the response message from tomcat, | network problems or tomcat ( 10.202.131.130:8009) is down | (errno=54) | | What is errno 54 on your platform? FWIW, errno 54 on my Linux 2.6/glibc 2.6.1 is: Error 54: Exchange full ??! - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkghsGUACgkQ9CaO5/Lv0PDB0ACdEkQf0AfaJAGV+4lEYhuvhMlo N/0AmwfQkoxH5H4ypV/GqSFEgP3dZw43 =wj3O -END PGP SIGNATURE- - 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: Web server and tomcat - firewall
Thanks What means: error 10054 = Connection reset by peer. Andrew On Wed, May 7, 2008 at 7:14 PM, Rainer Jung [EMAIL PROTECTED] wrote: Andrew Hole wrote: HI! I don't have perl installed in production servers, but it is windows server 2003. OK, then it is windows error 10054 = Connection reset by peer. About mod_jk configuration (mod_jk/1.2.18) : 1.2.18 does not have DisableReuse. It was first implemented in 1.2.19. Bad luck. If you upgrade (you should), then go directly to 1.2.26. # List the workers name worker.list = p1balancer, resumop1 # -- # Load Balancer worker # -- worker.p1balancer.type= lb worker.p1balancer.balanced_workers= p11,p12 # # First worker # worker.p11.port= 8009 worker.p11.host= 10.202.131.130 worker.p11.type= ajp13 # # Second worker # worker.p12.port= 8009 worker.p12.host= 10.202.131.131 worker.p12.type= ajp13 # -- # Load Balancer worker # -- worker.resumop1.type= lb worker.resumop1.balanced_workers= rp11,rp12 # # First worker # worker.rp11.port= 8007 worker.rp11.host= 10.202.131.130 worker.rp11.type= ajp13 # # Second worker # worker.rp12.port= 8007 worker.rp12.host= 10.202.131.131 worker.rp12.type= ajp13 On tomcat side Connector port=*8009* enableLookups=*false*redirectPort =*8443* protocol=*AJP/1.3* / Thanks a lot You should start with reading the (relatively) new docs page about timeouts: http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html They will help detect such a problem and recover more gracefully. Especially cping/cpong are helpful in early problem detection. The pool timeouts should be helpful for closing idle connections, before you get a connection drop. Try to understand the page, and if things are unclear, ask us. How do you know, that the firewall is the root cause? To get a better understanding for the situation, you could compare netstat -an on the apache httpd side with one on the tomcat side. Look only for the relevant ports (8007 resp. 8009) and look for differences between the output. There could be small differences for a short period of time, but there should be no connections missing or being in a different state between the two outputs for a longer time (except for TIME_WAIT). Regards, Rainer On Wed, May 7, 2008 at 2:36 PM, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer, Rainer Jung wrote: | [Tue May 06 16:24:03 2008] [2704:3128] [error] jk_ajp_common.c | (951): (p11) can't receive the response message from tomcat, | network problems or tomcat ( 10.202.131.130:8009) is down | (errno=54) | | What is errno 54 on your platform? FWIW, errno 54 on my Linux 2.6/glibc 2.6.1 is: Error 54: Exchange full ??! - -chris - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Web server and tomcat - firewall
Hi all| Maybe you could help me to solve a problem with your experience. My company has implemented a solution of 3 layers (Apache web server, Tomcat Container and Database). There is a firewall between the web server and the tomcat. We get the following errors in mod_jk log: These errors are caused by loss of TCP packages in firewall (???). [Tue May 06 16:24:03 2008] [2704:3128] [error] jk_ajp_common.c (951): (p11) can't receive the response message from tomcat, network problems or tomcat ( 10.202.131.130:8009) is down (errno=54) [Tue May 06 16:24:03 2008] [2704:3128] [error] jk_ajp_common.c (1592): (p11) Tomcat is down or refused connection. No response has been sent to the client (yet) (is not true when log says that tomcat is down because some requests get the correct response) Setting JkOptions + DisableReuse in httpd.conf does not solve the problem. Any suggestions? Thank you and I apologise for the inconvenience. Greetings
java.net.ConnectException: Connection refused
Hello! When I shutdown tomcat i get the following error and the process remains active. Do you know what could be the problem? SEVERE: Catalina.stop: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:519) at java.net.Socket.connect(Socket.java:469) at java.net.Socket.init(Socket.java:366) at java.net.Socket.init(Socket.java:179) at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:394) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:343) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:434) Best regards, Andrew
Tomcat shutdown
Hello! I have a cluster with two Tomcat's. When I shutdown one and the other still active I do not want to run valueunbound in the first. How do I do that? Basically: If (shutdown node 1 and node 2 is Active) then { do nothing; } else { business logic; } Thanks a lot
Re: Job Opportunity
Tomcat 5.5. But we are always looking for future... Regards On Tue, Mar 25, 2008 at 10:11 AM, ChrisS [EMAIL PROTECTED] wrote: What version of Tomcat Andrew? Chris S - Original Message - From: Andrew Hole [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, March 25, 2008 12:08 AM Subject: Job Opportunity Hello Guys! Anyone interested in joining a Portuguese company to be responsible for installing, managing and configuring Tomcat and Apache Web Server? We currently have very interesting international projects. Thanks a lot Andrew - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Job Opportunity
Hello Guys! Anyone interested in joining a Portuguese company to be responsible for installing, managing and configuring Tomcat and Apache Web Server? We currently have very interesting international projects. Thanks a lot Andrew
Session valueUnbound
We're trying to avoid the execution of valueUnbound(), when a Tomcat instance is stopped in a cluster environment. Can this be done by checking whether the thread that is executing valueUnbound() is a daemon or not? In the tests we have performed, the only thread running valueUnbound(), which is not a daemon, is the one responsible for Tomcat shutdown (which only runs valueUnbound() in a non persistent session environment), but we're trying to ensure this is the/a correct way of doing it. Thank you.
Why is session unbound called after cluster failover?
Hi! Why is session unbound called after cluster failover? Two more questions: -- In a scenario with two nodes, if I shutdown one, the other is instantly ready to receive and respond to requests, or it is necessary to wait a while? In a procuction scenario we cannot wait, because requests are frequently. -- Is there any recommended configuration (basically If one tomcat crashes I want that the other responds immediatly to the requests)? Thanks a lot A - 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: Why is session unbound called after cluster failover?
Hi! Well, our class USER implements HttpSessionBindingListener, Serializable and when failover happens valueUnbound is executed(public void valueUnbound(HttpSessionBindingEvent event)) - valueUnbound is a method of class USER. Could you help. Thanks On 2/25/08, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Hole wrote: | Why is session unbound called after cluster failover? What value is being unbound? | Two more questions: -- In a scenario with two nodes, if I shutdown | one, the other is instantly ready to receive and respond to requests, | or it is necessary to wait a while? It depends on how you set up your cluster. If you have distributed sessions, then any other node can pick up right where the other left off. If not, the user might have to log-in again in order for you to get the session set up properly. | In a production scenario we cannot wait, because requests are | frequently. -- Is there any recommended configuration (basically If | one tomcat crashes I want that the other responds immediately to the | requests)? If you want complete, immediate failover, you need to use distributed sessions, have all nodes participate in the cluster, and have a way to route traffic to the TC instances (using a lb appliance, httpd + mod_jk, or some other mechanism). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfC0hoACgkQ9CaO5/Lv0PBKgwCgmkYSZdZkYkH6hDVYbEjIUB1T ANoAoIhmSgIOZrZeWzVmsNKoJgFCESwt =QcE1 -END PGP SIGNATURE- - 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: Why is session unbound called after cluster failover?
It happens on both. Valueunbound is executed on old server when tomcat is stopped, and is executed on new server when I execute logout (or if I shutdown tomcat). We only want that new server executes valueunbound. Could you help? Thanks a lot A On 2/25/08, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Hole wrote: | Well, our class USER implements HttpSessionBindingListener, | Serializable and when failover happens valueUnbound is executed(public | void valueUnbound(HttpSessionBindingEvent event)) - valueUnbound is a | method of class USER. Is this happening on the new server or the old server? Maybe your application is replacing the USER in the session with another copy or something like that. You can always generate a stack trace to find out where the call is coming from: System.err.println(User saw valueUnbound event!); new Throwable().printStackTrace(); - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfC6VsACgkQ9CaO5/Lv0PDwjgCghiPQXcAA9AGGSKkeJ5WuzoRQ HYkAn1SjgLifqMpxKyZmZ1+GWp74PTTY =hNUj -END PGP SIGNATURE- - 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: Why is session unbound called after cluster failover?
) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.cluster.session.JvmRouteBinderValve.invoke(JvmRouteBinderValve.java:210) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve.java:347) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Unknown Source) Thanks a lot On 2/25/08, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: the stack trace idea is a good idea, and you can post it here Filip Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Hole wrote: | Well, our class USER implements HttpSessionBindingListener, | Serializable and when failover happens valueUnbound is executed(public | void valueUnbound(HttpSessionBindingEvent event)) - valueUnbound is a | method of class USER. Is this happening on the new server or the old server? Maybe your application is replacing the USER in the session with another copy or something like that. You can always generate a stack trace to find out where the call is coming from: System.err.println(User saw valueUnbound event!); new Throwable().printStackTrace(); - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfC6VsACgkQ9CaO5/Lv0PDwjgCghiPQXcAA9AGGSKkeJ5WuzoRQ HYkAn1SjgLifqMpxKyZmZ1+GWp74PTTY =hNUj -END PGP SIGNATURE- - 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] - 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: Why is session unbound called after cluster failover?
I think you need to manage your events in a way that takes into account the fact that valueUnbound will can be called by other members in the cluster. It is not a easy task, rigth? Could you be more specific in the way of developing it? Thanks On Mon, Feb 25, 2008 at 7:27 PM, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Hole wrote: | It happens on both. Valueunbound is executed on old server when | tomcat is stopped, and is executed on new server when I execute | logout (or if I shutdown tomcat). That behavior seems entirely consistent with what should happen -- and has nothing to do with clustering or anything like that. | We only want that new server executes valueunbound. | | Could you help? I think you need to manage your events in a way that takes into account the fact that valueUnbound will can be called by other members in the cluster. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfDFr8ACgkQ9CaO5/Lv0PCGqgCgmpf4OeJQe484bd/BQ0Q5GNX4 TxAAoKzasXr4H7ICeJB78c2K3uzpPrCh =DLZ3 -END PGP SIGNATURE- - 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: Why is session unbound called after cluster failover?
Well, valueunbound is executed on both TC. we are doing session replication, lets say we have a 5 (for example) node cluster. When a user logs on, his/her session will be replicated on 5 tomcats. When he/she logs out, you only want track that the user has logged out once, not 5 times (our logout tracking is associated to valueunbound). Actually, valueunbound is executed on all tomcats. Let me know if you need more information. On Mon, Feb 25, 2008 at 8:41 PM, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Hole wrote: | I think you need to manage your events in a way that takes into account | the fact that valueUnbound will can be called by other members in the | cluster. | It is not a easy task, rigth? | Could you be more specific in the way of developing it? Hmm... I hadn't seen your stack trace before writing my own post. Does it appear that the TC that is going down is propagating the expire event to the sessions on other servers? Is that why the new TC is also calling valudUnbound? I'm interested in finding out exactly what is happening before I suggest a solution. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkfDJ94ACgkQ9CaO5/Lv0PCTYQCgijoEPPCCPrPhITX3gvYVn70G 6PsAnRJzSE1WVsXUAaJ87VdgHVmIZTyz =Wl0Z -END PGP SIGNATURE- - 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: Why is session unbound called after cluster failover?
The valueUnbound is NOT being propagated from the TC instance shutting down across the cluster. The valueunbound is executed when I do the shutdown of an TC instance (session logout tracking was done - database record inserted). After that I still work with this session on the active node ... (however, on database i already have a logout session record). What we want is that the valueunbound not be executed while there is an active node in the cluster. Thanks a lot On Mon, Feb 25, 2008 at 9:41 PM, Rainer Jung [EMAIL PROTECTED] wrote: Christopher Schultz schrieb: Of course, bringing down one container in a cluster will have the effect of logging everyone out at once, even if they are on other servers as well. No, unless you set expireSessionsOnShutdown which is false by default, shutdown of a node should not expire the sessions on the other nodes (i.e. should not send expiration messages to the other nodes). 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]
Tomcat Cluster - node02 is invalid, removed or not replicated at this node.
Hello guys! We are trying to test Tomcat clustering but we are getting some problems. Sometimes (Log2) everything works fine but in other cases the cluster doesn't work (Log1). The only difference is the time that we wait after we shutdown a node. When we make a request after shutdown a node, cluster doesn't work, but if we wait more time (1 minute more or less), the cluster works fine and we can proceed making requests. Log 1: 22/Fev/2008 10:31:11 org.apache.catalina.cluster.tcp.ReplicationValvecreatePrimaryIndicator FINE: Context /outpatient: Primarity of session 1E4B56ED32E80A15EE5B40E5C83FB49E.node02 in request attribute org.apache.catalina.cluster.tcp.isPrimarySession is false. 22/Fev/2008 10:31:11 org.apache.catalina.cluster.tcp.SimpleTcpClusterlogSendMessage INFO: SEND 22/Fev/2008:10:31:11 16 - 1E4B56ED32E80A15EE5B40E5C83FB49E.node02#-#localhost#-#/outpatient#-#0#-#1203676271418 22/Fev/2008 10:31:13 org.apache.catalina.cluster.tcp.ReplicationValveresetDeltaRequest FINE: Cluster is standalone: reset Session Request Delta at context /outpatient 22/Fev/2008 10:31:15 org.apache.catalina.cluster.tcp.ReplicationValvecreatePrimaryIndicator FINE: Context /outpatient: Requested session 1E4B56ED32E80A15EE5B40E5C83FB49E.node02 is invalid, removed or not replicated at this node. Log 2: 22/Fev/2008 10:34:08 org.apache.catalina.cluster.tcp.ReplicationValvecreatePrimaryIndicator FINE: Context /outpatient: Primarity of session 76CFC5DD3CF130EA0A10875E7B7C.node01 in request attribute org.apache.catalina.cluster.tcp.isPrimarySession is false. 22/Fev/2008 10:34:08 org.apache.catalina.cluster.tcp.SimpleTcpClusterlogSendMessage INFO: SEND 22/Fev/2008:10:34:08 2 - 76CFC5DD3CF130EA0A10875E7B7C.node01#-#localhost#-#/outpatient#-#0#-#1203676448864 22/Fev/2008 10:34:10 org.apache.catalina.cluster.tcp.ReplicationValveresetDeltaRequest FINE: Cluster is standalone: reset Session Request Delta at context /outpatient 22/Fev/2008 10:34:38 org.apache.catalina.cluster.tcp.ReplicationValvecreatePrimaryIndicator FINE: Context /outpatient: Primarity of session 76CFC5DD3CF130EA0A10875E7B7C.node02 in request attribute org.apache.catalina.cluster.tcp.isPrimarySession is true. Our cluster setup: Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster doClusterLog=true clusterLogName=clusterlog manager.className= org.apache.catalina.cluster.session.DeltaManager manager.expireSessionsOnShutdown=false manager.notifyListenersOnReplication=false manager.notifySessionListenersOnReplication=false manager.sendAllSessions=false manager.sendAllSessionsSize=500 manager.sendAllSessionsWaitTime=20 Membership className= org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4 mcastClusterDomain=d10 mcastPort=45564 mcastFrequency=1000 mcastDropTime=1000 recoveryCounter=10 recoveryEnabled=true recoverySleepTime=5000/ Receiver className= org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto tcpListenPort=9016 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className= org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=fastasyncqueue recoverTimeout=500 stateTransferTimeout=1 recoverCounter=6 doTransmitterProcessingStats=true doProcessingStats=true doWaitAckStats=true queueTimeWait=true queueDoStats=true queueCheckLock=true ackTimeout=1500 waitForAck=true keepAliveTimeout=8 keepAliveMaxRequestCount=-1/ Valve className= org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.css;.*\.png;.*\.jpeg;.*\.jpg;.*\.htm;.*\.html;.*\.txt; primaryIndicator=true debug=1 /
Re: Tomcat Cluster - node02 is invalid, removed or not replicated at this node.
Thanks. Some more questions: -- In a scenario with two nodes, if I shutdown one, the other is instantly ready to receive and respond to requests, or it is necessary to wait a while? In a procuction scenario we cannot wait, because requests are frequently. -- The 35 seconds refers to the initial time? -- Is there any recommended configuration (basically If one tomcat crashes I want that the other responds immediatly to the requests)? Thanks a lot On Fri, Feb 22, 2008 at 1:38 PM, Peter Rossbach [EMAIL PROTECTED] wrote: HI Andrew, Your mcastDropTime=1000 is to low. Please set it to 3 and it is true that you must wait 35 sec before you can restart a cluster node. Use the Java Service Wrapper or add this to your start scripts to configure this. Peter Am 22.02.2008 um 11:48 schrieb Andrew Hole: Hello guys! We are trying to test Tomcat clustering but we are getting some problems. Sometimes (Log2) everything works fine but in other cases the cluster doesn't work (Log1). The only difference is the time that we wait after we shutdown a node. When we make a request after shutdown a node, cluster doesn't work, but if we wait more time (1 minute more or less), the cluster works fine and we can proceed making requests. Log 1: 22/Fev/2008 10:31:11 org.apache.catalina.cluster.tcp.ReplicationValvecreatePrimaryIndicator FINE: Context /outpatient: Primarity of session 1E4B56ED32E80A15EE5B40E5C83FB49E.node02 in request attribute org.apache.catalina.cluster.tcp.isPrimarySession is false. 22/Fev/2008 10:31:11 org.apache.catalina.cluster.tcp.SimpleTcpClusterlogSendMessage INFO: SEND 22/Fev/2008:10:31:11 16 - 1E4B56ED32E80A15EE5B40E5C83FB49E.node02#-#localhost#-#/outpatient#- #0#-#1203676271418 22/Fev/2008 10:31:13 org.apache.catalina.cluster.tcp.ReplicationValveresetDeltaRequest FINE: Cluster is standalone: reset Session Request Delta at context /outpatient 22/Fev/2008 10:31:15 org.apache.catalina.cluster.tcp.ReplicationValvecreatePrimaryIndicator FINE: Context /outpatient: Requested session 1E4B56ED32E80A15EE5B40E5C83FB49E.node02 is invalid, removed or not replicated at this node. Log 2: 22/Fev/2008 10:34:08 org.apache.catalina.cluster.tcp.ReplicationValvecreatePrimaryIndicator FINE: Context /outpatient: Primarity of session 76CFC5DD3CF130EA0A10875E7B7C.node01 in request attribute org.apache.catalina.cluster.tcp.isPrimarySession is false. 22/Fev/2008 10:34:08 org.apache.catalina.cluster.tcp.SimpleTcpClusterlogSendMessage INFO: SEND 22/Fev/2008:10:34:08 2 - 76CFC5DD3CF130EA0A10875E7B7C.node01#-#localhost#-#/outpatient#- #0#-#1203676448864 22/Fev/2008 10:34:10 org.apache.catalina.cluster.tcp.ReplicationValveresetDeltaRequest FINE: Cluster is standalone: reset Session Request Delta at context /outpatient 22/Fev/2008 10:34:38 org.apache.catalina.cluster.tcp.ReplicationValvecreatePrimaryIndicator FINE: Context /outpatient: Primarity of session 76CFC5DD3CF130EA0A10875E7B7C.node02 in request attribute org.apache.catalina.cluster.tcp.isPrimarySession is true. Our cluster setup: Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster doClusterLog=true clusterLogName=clusterlog manager.className= org.apache.catalina.cluster.session.DeltaManager manager.expireSessionsOnShutdown=false manager.notifyListenersOnReplication=false manager.notifySessionListenersOnReplication=false manager.sendAllSessions=false manager.sendAllSessionsSize=500 manager.sendAllSessionsWaitTime=20 Membership className= org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4 mcastClusterDomain=d10 mcastPort=45564 mcastFrequency=1000 mcastDropTime=1000 recoveryCounter=10 recoveryEnabled=true recoverySleepTime=5000/ Receiver className= org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto tcpListenPort=9016 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className= org.apache.catalina.cluster.tcp.ReplicationTransmitter
Why is session unbound called after cluster failover?
Hi! Why is session unbound called after cluster failover? Two more questions: -- In a scenario with two nodes, if I shutdown one, the other is instantly ready to receive and respond to requests, or it is necessary to wait a while? In a procuction scenario we cannot wait, because requests are frequently. -- Is there any recommended configuration (basically If one tomcat crashes I want that the other responds immediatly to the requests)? Thanks a lot A
Tomcat 5.5 clustering - Cluster Session
Hello! I'm getting the following message on Tomcat: 18/Fev/2008 12:07:50 org.apache.catalina.cluster.tcp.ReplicationValvecreatePrimaryIndicator FINE: Context /outpatient: Found session 07EEE91093046F13672F88402F03C5A2.node02 but it isnt a ClusterSession. Why this happen? Thanks a lot AH
Re: Tomcat Cluster
What you consider the minimal configuration? On Feb 13, 2008 7:23 AM, David Rees [EMAIL PROTECTED] wrote: On Feb 12, 2008 10:59 AM, Andrew Hole [EMAIL PROTECTED] wrote: I've the following configuration on server.xml for two different instances of tomcat (on the same server). BUT, i don't know why, session replication doesn't work. Could you help me to find why? Have you tried starting with a minimal configuration and then adding options as you deem necessary? -Dave - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Cluster
Hello guys! I've the following configuration on server.xml for two different instances of tomcat (on the same server). BUT, i don't know why, session replication doesn't work. Could you help me to find why? Thanks Instance 1: Cluster className= org.apache.catalina.cluster.tcp.SimpleTcpCluster doClusterLog=true clusterLogName=clusterlog manager.className= org.apache.catalina.cluster.session.DeltaManager manager.expireSessionsOnShutdown=false manager.notifyListenersOnReplication=false manager.notifySessionListenersOnReplication=false manager.sendAllSessions=false manager.sendAllSessionsSize=500 manager.sendAllSessionsWaitTime=20 Membership className= org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4 mcastBindAddress=127.0.0.1 mcastClusterDomain=d10 mcastPort=45564 mcastFrequency=1000 mcastDropTime=3 recoveryCounter=10 recoveryEnabled=true recoverySleepTime=5000/ Receiver className= org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto tcpListenPort=9016 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className= org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=fastasyncqueue recoverTimeout=5000 recoverCounter=6 doTransmitterProcessingStats=true doProcessingStats=true doWaitAckStats=true queueTimeWait=true queueDoStats=true queueCheckLock=true ackTimeout=15000 waitForAck=true keepAliveTimeout=8 keepAliveMaxRequestCount=-1/ Valve className= org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.css;.*\.png;.*\.jpeg;.*\.jpg;.*\.htm;.*\.html;.*\.txt; primaryIndicator=true / ValveclassName= org.apache.catalina.cluster.session.JvmRouteBinderValve enabled=true / ClusterListener className= org.apache.catalina.cluster.session.ClusterSessionListener / ClusterListener className= org.apache.catalina.cluster.session.JvmRouteSessionIDBinderListener / DeployerclassName= org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=${catalina.base }/war-temp deployDir=${catalina.base }/war-deploy/ watchDir=${catalina.base }/war-listen/ watchEnabled=true/ /Cluster Instance 2 Cluster className= org.apache.catalina.cluster.tcp.SimpleTcpCluster doClusterLog=true clusterLogName=clusterlog manager.className= org.apache.catalina.cluster.session.DeltaManager manager.expireSessionsOnShutdown=false manager.notifyListenersOnReplication=false manager.notifySessionListenersOnReplication=false manager.sendAllSessions=false manager.sendAllSessionsSize=500 manager.sendAllSessionsWaitTime=20 Membership className= org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4 mcastBindAddress=127.0.0.1 mcastClusterDomain=d10 mcastPort=45564 mcastFrequency=1000
Re: Tomcat Cluster
Hi! I have both tomcat instances on the same machine, and tcpListenPort are different on both server.xml: instance 1 setuped with 9016 and instance 2 with 9017. When I stop one of tomcats, the other is notified properly with the following message: 12-Feb-2008 11:19:57 org.apache.catalina.cluster.tcp.SimpleTcpCluster memberDisappeared INFO: Received member disappeared:org.apache.catalina.cluster.mcast.McastMember [tcp://127.0.0.1:9017,catalina,127.0.0.1,9017, alive=495495] 12-Feb-2008 11:19:57 org.apache.catalina.cluster.util.FastQueue remove INFO: FastQueue.remove: Remove aborted although queue enabled However, if you stop one of tomcats, the sessions hanging in that tomcat, not switch to the other, and we need to re-execute login in the application. Best regards On Feb 12, 2008 9:03 PM, David Brown [EMAIL PROTECTED] wrote: Dumb question: is everything supposed to be defined on the same IP (loopback?) and port? Andrew Hole wrote .. Hello guys! I've the following configuration on server.xml for two different instances of tomcat (on the same server). BUT, i don't know why, session replication doesn't work. Could you help me to find why? Thanks Instance 1: Cluster className= org.apache.catalina.cluster.tcp.SimpleTcpCluster doClusterLog=true clusterLogName=clusterlog manager.className= org.apache.catalina.cluster.session.DeltaManager manager.expireSessionsOnShutdown=false manager.notifyListenersOnReplication=false manager.notifySessionListenersOnReplication=false manager.sendAllSessions=false manager.sendAllSessionsSize=500 manager.sendAllSessionsWaitTime=20 Membership className= org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4 mcastBindAddress=127.0.0.1 mcastClusterDomain=d10 mcastPort=45564 mcastFrequency=1000 mcastDropTime=3 recoveryCounter=10 recoveryEnabled=true recoverySleepTime=5000/ Receiver className= org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto tcpListenPort=9016 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className= org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=fastasyncqueue recoverTimeout=5000 recoverCounter=6 doTransmitterProcessingStats=true doProcessingStats=true doWaitAckStats=true queueTimeWait=true queueDoStats=true queueCheckLock=true ackTimeout=15000 waitForAck=true keepAliveTimeout=8 keepAliveMaxRequestCount=-1/ Valve className= org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.css;.*\.png;.*\.jpeg;.*\.jpg;.*\.htm;.*\.html;.*\.txt; primaryIndicator=true / ValveclassName= org.apache.catalina.cluster.session.JvmRouteBinderValve enabled=true / ClusterListener className= org.apache.catalina.cluster.session.ClusterSessionListener / ClusterListener className= org.apache.catalina.cluster.session.JvmRouteSessionIDBinderListener / DeployerclassName= org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=${catalina.base }/war-temp deployDir=${catalina.base }/war-deploy/ watchDir=${catalina.base }/war-listen/ watchEnabled=true/ /Cluster
Tomcat Performance
Hello I read an interesting document from Mladen Turk (with whom I want to speak directly, but I don't know direct contact) that there is a formula to calculate the number of concurrent request: http://people.apache.org/~mturk/docs/article/ftwai.html Calculating Load When determining the number of Tomcat servers that you will need to satisfy the client load, the first and major task is determining the Average Application Response Time (hereafter AART). As said before, to satisfy the user experience the application has to respond within half of second. The content received by the client browser usually triggers couple of physical requests to the Web server (e.g. images). The web page usually consists of html and image data, so client issues a series of requests, and the time that all this gets processed and delivered is called AART. To get most out of Tomcat you should limit the number of concurrent requests to 200 per CPU. So we can come with the simple formula to calculate the maximum number of concurrent connections a physical box can handle: 500 Concurrent requests = ( -- max 200 ) * Number of CPU's AART (ms) The other thing that you must care is the Network throughput between the Web server and Tomcat instances. This introduces a new variable called Average Application Response Size (hereafter AARS), that is the number of bytes of all context on a web page presented to the user. On a standard 100Mbps network card with 8 Bits per Byte, the maximum theoretical throughput is 12.5 MBytes. 12500 Concurrent requests = --- AARS (KBytes) For a 20KB AARS this will give a theoretical maximum of 625 concurrent requests. You can add more cards or use faster 1Gbps hardware if need to handle more load. The formulas above will give you rudimentary estimation of the number of Tomcat boxes and CPU's that you will need to handle the desired number of concurrent client requests. If you have to deploy the configuration without having actual hardware, the closest you can get is to measure the AART on a test platform and then compare the hardware vendor Specmarks. I would like to launch a discussion on the validity of this formula and, in case of inappropriate, to try to get a more accurate formula. Thanks a lot
Tomcat 64 bits
Hello! Is there any problem run Tomcat under 64 bits platform? And about JDK? Is it possible install JDK 32 bits for 64 bits platform? Thanks a lot A.
Tomcat benchmark
Hi! Is there any benchmark test available that allow me to determine the number of concurrent requests that Tomcat supports for a particular type of hardware? Thanks a lot
Connection pooling
Hello! The following configuration was not supposed to be created 5 connections at first get connection execution? My application with the following configuration creates always a new session in the database for each invocation, which is not to take advantage of pooling. Why? Context docBase=F:/TOMCAT_UPG1_VIEWER/mni_ehrviewer reloadable=true path=upg1ehr Resource name=ehr auth=Container type=oracle.jdbc.pool.OracleDataSource factory=oracle.jdbc.pool.OracleDataSourceFactory driverClassName=oracle.jdbc.OracleDriver url=jdbc:oracle:thin:@server_name:1521:sid user=user password=password initialSize=5 maxActive=50 maxIdle=10 minIdle=5 maxWait=-1 defaultAutoCommit=false/ Manager className=org.apache.catalina.session.StandardManager maxActiveSessions=-1 maxInactiveInterval=1800 pathname= processExpiresFrequency=6 / /Context Thanks a lot - 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: Datasource Property Parameters (Oracle) JNDI
I don't see examples with initial size of pool! Exists some default value for pool initial size?? On Jan 11, 2008 2:27 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Andrew Hole [mailto:[EMAIL PROTECTED] Subject: Re: Datasource Property Parameters (Oracle) JNDI Could you help me to setup my datasource to works fine? The instructions are here: http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.h tml - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: Datasource Property Parameters (Oracle) JNDI
Well, REsource A works nice. When I startup Tomcat, are created 5 new database connections. Resource B allows connections to be created, but without pooling. I'm without ideas! Please, could u help me? Resource A Resource name=ehr auth=Container type=javax.sql.DataSource driverClassName= oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03 username=alert_viewer password=alert initialSize=5 maxActive=50 maxIdle=10 minIdle=5 maxWait=-1 defaultAutoCommit=false / Resource B Resource name=ehr auth=Container * type=oracle.jdbc.pool.OracleDataSource * * driverClassName=oracle.jdbc.OracleDriver* *factory=oracle.jdbc.pool.OracleDataSourceFactory * url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03 *user*=alert_viewer password=alert initialSize=5 maxActive=50 maxIdle=10 minIdle=5 maxWait=-1 defaultAutoCommit=false / On Jan 11, 2008 2:40 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Andrew Hole [mailto:[EMAIL PROTECTED] Subject: Re: Datasource Property Parameters (Oracle) JNDI I don't see examples with initial size of pool! Exists some default value for pool initial size?? To quote from the doc: See the DBCP documentation for a complete list of configuration parameters. http://commons.apache.org/dbcp/configuration.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: Datasource Property Parameters (Oracle) JNDI
I get the following error when i change from ehr to jdbc/ehr: 2008-01-11 15:42:57,471 FATAL Thread-1 DatasourceConnectionProvider - Could not find datasource: java:/comp/env/ehr javax.naming.NameNotFoundException: Name ehr is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:769) at org.apache.naming.NamingContext.lookup(NamingContext.java:139) at org.apache.naming.NamingContext.lookup(NamingContext.java:780) at org.apache.naming.NamingContext.lookup(NamingContext.java:139) at org.apache.naming.NamingContext.lookup(NamingContext.java:780) at org.apache.naming.NamingContext.lookup(NamingContext.java:152) Thanks On Jan 11, 2008 3:31 PM, Martin Gainty [EMAIL PROTECTED] wrote: Andrew- is there a specific reason why you are using name=ehr instead of specifying name=jdbc/ehr M- - Original Message - From: Andrew Hole [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, January 11, 2008 10:14 AM Subject: Re: Datasource Property Parameters (Oracle) JNDI Well, REsource A works nice. When I startup Tomcat, are created 5 new database connections. Resource B allows connections to be created, but without pooling. I'm without ideas! Please, could u help me? Resource A Resource name=ehr auth=Container type=javax.sql.DataSource driverClassName= oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03 username=alert_viewer password=alert initialSize=5 maxActive=50 maxIdle=10 minIdle=5 maxWait=-1 defaultAutoCommit=false / Resource B Resource name=ehr auth=Container * type=oracle.jdbc.pool.OracleDataSource * * driverClassName=oracle.jdbc.OracleDriver* *factory=oracle.jdbc.pool.OracleDataSourceFactory * url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03 *user*=alert_viewer password=alert initialSize=5 maxActive=50 maxIdle=10 minIdle=5 maxWait=-1 defaultAutoCommit=false / On Jan 11, 2008 2:40 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Andrew Hole [mailto:[EMAIL PROTECTED] Subject: Re: Datasource Property Parameters (Oracle) JNDI I don't see examples with initial size of pool! Exists some default value for pool initial size?? To quote from the doc: See the DBCP documentation for a complete list of configuration parameters. http://commons.apache.org/dbcp/configuration.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: Connection pooling
Every db execution creates a new session. Each session dropped correctly after db execution. Is it supposed I see 5 (new) connections to database after tomcat restart? Thanks On Jan 11, 2008 2:24 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Andrew Hole [mailto:[EMAIL PROTECTED] Subject: Connection pooling The following configuration was not supposed to be created 5 connections at first get connection execution? Not quite sure how to parse the above sentence, but the config should have created five connections at initialization. My application with the following configuration creates always a new session in the database for each invocation, which is not to take advantage of pooling. Possibly because your webapp is not closing the connections, thereby not allowing them to return to the pool: http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.h tml#Preventing%20dB%20connection%20pool%20leaks - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: Connection pooling
Hi! Thanks... With the following configuration i get the error:DatasourceConnectionProvider - Could not find datasource: java:/comp/env/ehr Resource name=jdbc/ehr auth=Container type=oracle.jdbc.pool.OracleDataSource factory=oracle.jdbc.pool.OracleDataSourceFactory driverClassName=oracle.jdbc.OracleDriver url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03 user=alert_viewer password=alert initialLimit=5 minLimit=5 maxLimit=10 debug=5 / With Resoruce name = ehr works fine but pooling is disable. I don't know if paramenters initalLimit, minLimit are defined correctly. Could you help me to setup a correct configuration? I want have 5 initial database sessions. Resource name=ehr auth=Container type=oracle.jdbc.pool.OracleDataSource factory=oracle.jdbc.pool.OracleDataSourceFactory driverClassName=oracle.jdbc.OracleDriver url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03 user=alert_viewer password=alert initialLimit=5 minLimit=5 maxLimit=10 debug=5 / Thanks a lot On Jan 11, 2008 2:10 PM, Martin Gainty [EMAIL PROTECTED] wrote: Andrew- The first thing I noticed is your Resource name shoule be jdbc/ehr replace server_name with the actual server name replace the SID with the Service ID you will be using (check the tnsnames.ora for SID) http://www.microdeveloper.com/html/JNDI_Orcl_Tomcat1p.html Martin - Original Message - From: Andrew Hole [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, January 11, 2008 5:32 AM Subject: Connection pooling Hello! The following configuration was not supposed to be created 5 connections at first get connection execution? My application with the following configuration creates always a new session in the database for each invocation, which is not to take advantage of pooling. Why? Context docBase=F:/TOMCAT_UPG1_VIEWER/mni_ehrviewer reloadable=true path=upg1ehr Resource name=ehr auth=Container type=oracle.jdbc.pool.OracleDataSource factory=oracle.jdbc.pool.OracleDataSourceFactory driverClassName=oracle.jdbc.OracleDriver url=jdbc:oracle:thin:@server_name:1521:sid user=user password=password initialSize=5 maxActive=50 maxIdle=10 minIdle=5 maxWait=-1 defaultAutoCommit=false/ Manager className=org.apache.catalina.session.StandardManager maxActiveSessions=-1 maxInactiveInterval=1800 pathname= processExpiresFrequency=6 / /Context Thanks a lot - 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] - 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: Datasource Property Parameters (Oracle) JNDI
Could you help me to setup my datasource to works fine? I already try lot of changes on Resource element, but pooling is disable. Resource name=ehr auth=Container type=oracle.jdbc.pool.OracleDataSource factory=oracle.jdbc.pool.OracleDataSourceFactory driverClassName=oracle.jdbc.OracleDriver url=jdbc:oracle:thin:@192.168.1.244:1521:SID user= password=t InitialLimit=5 MinLimit=5 MaxLimit=10 debug=5 / Thanks a lot On Jan 11, 2008 1:55 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Berglas, Anthony [mailto:[EMAIL PROTECTED] Subject: Datasource Property Parameters (Oracle) JNDI This doesn't resolve your problem, but you have errors in your KMS.xml file. Context path=/KMS docBase=KMS debug=5 reloadable=true crossContext=true Assuming you're using a reasonably current version of Tomcat (you didn't explicitly tell us, but your Resource declaration indicates it's a recent version), the path and docBase attributes are not allowed. At best they will be ignored, at worst they may cause confusion due to double deployment. I have never seen any reference to the ability to put a file like KMS.xml in the conf area. RTFM: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html http://tomcat.apache.org/tomcat-5.5-doc/config/context.html It's covered in the Introduction section, 3rd bullet in the list. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: Datasource Property Parameters (Oracle) JNDI
Hello! I think that I have the same problem. Resource name=ehr auth=Container type=oracle.jdbc.pool.OracleDataSource factory=oracle.jdbc.pool.OracleDataSourceFactory driverClassName=oracle.jdbc.OracleDriver url=jdbc:oracle:thin:@192.168.1.244:1521:SID user= password=t InitialLimit=5 MinLimit=5 MaxLimit=10 debug=5 / What you are saying is that i can't use pooling on Tomcat/JNDI or only in case of oracle.jdbc.pool.OracleDataSourceFactory? Thanks a lot On Jan 11, 2008 11:29 AM, Rainer Jung [EMAIL PROTECTED] wrote: Berglas, Anthony wrote: Hello, I am trying to set up 0racle connection pooling. Some of the parameters are reflected normally, but some are specified via a property lists. How do I set the property list properties using Tomcat/JNDI? I can set up the basic DataSource, but I cannot set the maxLimit parameter on the max number of connections because they are in the setConnectionCacheProperties property map, not reflected. The version of commons-dbcp that gets used with Tomcat knows how to handle the property map, but unfortunately the simple factory Tomcat uses to configure DBCP (which is part of DBCP) doesn't contain the feature. On July 23rd the factory has been updated to include the property map handling. The feature is waiting for a DBCP release (likely 1.3) since then :( We had a little trouble with updating our commons-pool dependency recently, so I'm not sure how fast after a dbcp release tomcat will actually adopt it. If it's really important for you, you could build a dbcp snapshot, check the commons pool version dependency and replace the components in Tomcat. Regards, Rainer More specifically, here is my conf/Catalina/localhost/KMS.conf (My web app is KMS). # cat /opt/tomcat/conf/Catalina/localhost/KMS.xml ?xml version=1.0 encoding=UTF-8? Context path=/KMS docBase=KMS debug=5 reloadable=true crossContext=true Resource name=jdbc/rkm auth=Container type=oracle.jdbc.pool.OracleDataSource driverClassName=oracle.jdbc.OracleDriver factory=oracle.jdbc.pool.OracleDataSourceFactory connectionCachingEnabled=true connectionCacheName=KmsConPool abandonedConnectionTimeout=200 connectionWaitTimeout=200 maxLimit=20 url=jdbc:oracle:thin:@localhost:1521:rsakmpri user=local password=-THIS-SHOULD-BE-IGNORED- / !-- maxLimit ignored -- /Context The problem is that parameters like connectionCachingEnabled are set reflectively and work but some such as MaxLimit are set in property lists. Specifically doing this in ordinary, easy Java, from the Oracle manual:- OracleDataSource ods = new OracleDataSource(); // set cache properties in map java.util.Properties prop = new java.util.Properties(); prop.setProperty(MinLimit, 2); prop.setProperty(MaxLimit, 10); // set DataSource properties String url = jdbc:oracle:oci8:@; ods.setURL(url); ods.setConnectionCacheProperties (prop); // ods.setUser(hr); ods.setPassword(hr); ods.setConnectionCachingEnabled(true); ods.setConnectionCacheName(ImplicitCache01); ... Connection conn = ods.getConnection(user, pass); But of course this is Enterprise software, so it must be done in XML, not Java. Any ideas as to how to do this most welcome. Anthony PS. I have never seen any reference to the ability to put a file like KMS.xml in the conf area. I certainly seems to work, and is very necessary -- obviously one does not want site config in a war -- but just not documented as far as I can tell. -- Dr Anthony Berglas Ph. +61 7 3227 4410 Mob. +61 44 838 8874 [EMAIL PROTECTED]; [EMAIL PROTECTED] -- Dr Anthony Berglas Ph. +61 7 3227 4410 Mob. +61 44 838 8874 [EMAIL PROTECTED]; [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] - 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: Datasource Property Parameters (Oracle) JNDI
YEs... I don't have problems with database connections! Look what's my really problem: Resource name=jdbc/ehr auth=Container type=oracle.jdbc.pool.OracleDataSourcedriverClassName= oracle.jdbc.OracleDriver factory=oracle.jdbc.pool.OracleDataSourceFactory url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03 user=alert_viewer password=alert initialSize=5 maxActive=50 maxIdle=10 minIdle=5 maxWait=-1 defaultAutoCommit=false / %@ page import=oracle.jdbc.pool.OracleDataSource % %@ page import=javax.naming.Context % %@ page import=javax.naming.InitialContext % %@ page import=java.io.Serializable % %@ page import=java.sql.Connection % %@ page import=java.sql.SQLException % %@ page import=java.sql.ResultSet % %@ page import=java.sql.Statement % %@ page import=java.util.Properties % % out.println(TESTE); String message = new String(); Connection conn = null; ResultSet rst = null; Statement stmt = null; Context initContext = new InitialContext(); Context envContext = (Context) initContext.lookup(java:/comp/env); OracleDataSource ds = (OracleDataSource) envContext.lookup (jdbc/ehr); if(ds.getConnectionCachingEnabled()) { out.println(Cache Enabled); } else { out.println(Cache disabled); } if (envContext == null) throw new Exception(Error: No Context); if (ds == null) throw new Exception(Error: No DataSource); if (ds != null) conn = ds.getConnection(); if (conn != null) { message = Got Connection + conn.toString() + , ; stmt = conn.createStatement(); rst = stmt.executeQuery(SELECT 'Success obtaining connection' FROM DUAL); out.println(message); } if (rst.next()) message = rst.getString(1); rst.close(); rst = null; stmt.close(); stmt = null; //conn.close(); // Return to connection pool //conn = null; // Make sure we don't close it twice % I got the following result: *Cache disabled *Got Connection [EMAIL PROTECTED], And database sessions increase highly. Thanks On Jan 11, 2008 4:21 PM, Martin Gainty [EMAIL PROTECTED] wrote: did you verify the listener on port 1521 is listening? netstat -a | grep 1521 M-- - Original Message - From: Andrew Hole [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, January 11, 2008 11:08 AM Subject: Re: Datasource Property Parameters (Oracle) JNDI I already change from ehr to jdbc/ehr but the problem of pooling remaining. Initial sessions are not created. Please, help me. Thanks a lot On Jan 11, 2008 3:45 PM, Andrew Hole [EMAIL PROTECTED] wrote: I get the following error when i change from ehr to jdbc/ehr: 2008-01-11 15:42:57,471 FATAL Thread-1 DatasourceConnectionProvider - Could not find datasource: java:/comp/env/ehr javax.naming.NameNotFoundException : Name ehr is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:769) at org.apache.naming.NamingContext.lookup(NamingContext.java:139) at org.apache.naming.NamingContext.lookup (NamingContext.java:780) at org.apache.naming.NamingContext.lookup(NamingContext.java:139) at org.apache.naming.NamingContext.lookup(NamingContext.java:780) at org.apache.naming.NamingContext.lookup(NamingContext.java :152) Thanks On Jan 11, 2008 3:31 PM, Martin Gainty [EMAIL PROTECTED] wrote: Andrew- is there a specific reason why you are using name=ehr instead of specifying name=jdbc/ehr M- - Original Message - From: Andrew Hole [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, January 11, 2008 10:14 AM Subject: Re: Datasource Property Parameters (Oracle) JNDI Well, REsource A works nice. When I startup Tomcat, are created 5 new database connections. Resource B allows connections to be created, but without pooling. I'm without ideas! Please, could u help me? Resource A Resource name=ehr auth=Container type=javax.sql.DataSource driverClassName= oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03 username=alert_viewer password=alert initialSize=5 maxActive=50 maxIdle=10 minIdle=5 maxWait=-1 defaultAutoCommit=false / Resource B Resource name=ehr auth=Container * type=oracle.jdbc.pool.OracleDataSource * * driverClassName=oracle.jdbc.OracleDriver* *factory=oracle.jdbc.pool.OracleDataSourceFactory * url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03 *user*=alert_viewer password=alert initialSize=5 maxActive=50 maxIdle=10 minIdle=5 maxWait=-1 defaultAutoCommit=false / On Jan 11, 2008 2:40 PM, Caldarale
Re: Datasource Property Parameters (Oracle) JNDI
I already change from ehr to jdbc/ehr but the problem of pooling remaining. Initial sessions are not created. Please, help me. Thanks a lot On Jan 11, 2008 3:45 PM, Andrew Hole [EMAIL PROTECTED] wrote: I get the following error when i change from ehr to jdbc/ehr: 2008-01-11 15:42:57,471 FATAL Thread-1 DatasourceConnectionProvider - Could not find datasource: java:/comp/env/ehr javax.naming.NameNotFoundException : Name ehr is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:769) at org.apache.naming.NamingContext.lookup(NamingContext.java:139) at org.apache.naming.NamingContext.lookup (NamingContext.java:780) at org.apache.naming.NamingContext.lookup(NamingContext.java:139) at org.apache.naming.NamingContext.lookup(NamingContext.java:780) at org.apache.naming.NamingContext.lookup(NamingContext.java :152) Thanks On Jan 11, 2008 3:31 PM, Martin Gainty [EMAIL PROTECTED] wrote: Andrew- is there a specific reason why you are using name=ehr instead of specifying name=jdbc/ehr M- - Original Message - From: Andrew Hole [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, January 11, 2008 10:14 AM Subject: Re: Datasource Property Parameters (Oracle) JNDI Well, REsource A works nice. When I startup Tomcat, are created 5 new database connections. Resource B allows connections to be created, but without pooling. I'm without ideas! Please, could u help me? Resource A Resource name=ehr auth=Container type=javax.sql.DataSource driverClassName= oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03 username=alert_viewer password=alert initialSize=5 maxActive=50 maxIdle=10 minIdle=5 maxWait=-1 defaultAutoCommit=false / Resource B Resource name=ehr auth=Container * type=oracle.jdbc.pool.OracleDataSource * * driverClassName=oracle.jdbc.OracleDriver* *factory=oracle.jdbc.pool.OracleDataSourceFactory * url=jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03 *user*=alert_viewer password=alert initialSize=5 maxActive=50 maxIdle=10 minIdle=5 maxWait=-1 defaultAutoCommit=false / On Jan 11, 2008 2:40 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Andrew Hole [mailto:[EMAIL PROTECTED] Subject: Re: Datasource Property Parameters (Oracle) JNDI I don't see examples with initial size of pool! Exists some default value for pool initial size?? To quote from the doc: See the DBCP documentation for a complete list of configuration parameters. http://commons.apache.org/dbcp/configuration.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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]
Tomcat threads
Hello! What's the value of Initial Number of Threads created on Tomcat startup? Everytime it is necessary Tomcat creates another thread. What happens after the processing end? The thread dies or becomes available for a future processing? Best regards - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Single Sign-On
Hello everybody! I have two applications: - J2EE Application on tomcat - Microsoft Navision How can I implement single sign-on integrated with Microsoft Active Directory? Microsoft Active Directory could be central autenthication service? 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]
Redirect
Hello! On an Apache server, I would like to have a Redirect from a URL to other URL not on my server. The redirect is temporary, and therefore I would prefer if the original URL appeared in the visitor's browser's Address Bar, as opposed to the URL of the site to which he/she was redirected. Is it possible? Thanks a lot - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Logging Framework
Hello! My java application writes relevant log of database procedures executions. My goal is to develop a report at intervals of 30 minutes with a summary, including requests slowest, and average time of execution, etc. 2007-11-26 00:00:00379 DEBUG ajp - 8009-10 RequestFilter - Request Started 2007-11-26 00:00:00379 DEBUG ajp - 8009-14 RequestFilter - Request Started 2007-11-26 00:00:00379 DEBUG ajp - 8009-10 RequestFilter - Request Ended: Total time: 0 s 2007-11-26 00:00:00379 DEBUG ajp - 8009-14 RequestFilter - Request Ended: Total time: 0 s Is there any framework adaptable to this? Best Regards - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Socket_keepalive
I need to define socket_keepalive parameter... but in Windows server 2003 I think that doesn't exist SO keepalive interval. How can I resolve this? Thanks a lot - 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: Invoke JSP on tomcat startup
Invoking JSP it recreates a XML file on file system. I wish recreate for the first time at tomcat startup. Regards On Nov 16, 2007 2:21 PM, Jess Holle [EMAIL PROTECTED] wrote: Sounds like you want a ContextListener, not a JSP... Andrew Hole wrote: Hello! Exists some automatic way to invoke a JSP when tomcat starts? Thanks a lot - 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] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Invoke JSP on tomcat startup
Hello! Exists some automatic way to invoke a JSP when tomcat starts? Thanks a lot - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Best Linux distribution
Hi! In your opinion what is the best LINUX distribution for a server with an instance of Tomcat and an J2EE application of medium load? An opinion taking as a basis the performance and cost. 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]
Environment variables
Hello! how can I setup environment variables on tomcat windows service? Tomcat cleans environment variables... Thanks a lot - 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: Environment variables
I'm trying to execute a ssh command inside java code. SSH command must know HOMEDRIVE environment variable to find know_hosts file... How can I do that? Thanks a lot On Nov 6, 2007 3:14 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Andrew Hole [mailto:[EMAIL PROTECTED] Subject: Environment variables how can I setup environment variables on tomcat windows service? Tomcat cleans environment variables... You can't - services don't use environment variables. Use the tomcat?w.exe program to set Java system properties and heap values for the service. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: Environment variables
I will try!!! Thanks a lot On Nov 6, 2007 3:24 PM, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Hole wrote: I'm trying to execute a ssh command inside java code. SSH command must know HOMEDRIVE environment variable to find know_hosts file... How can I do that? How are you invoking ssh? If you're doing a standard Runtime.exec, why not just use the versions of that method which take environment variables as parameters? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHMIcT9CaO5/Lv0PARAmbgAJwLJiMu33Cs8qdsBoG2afUuVFvJ0wCgmDmD tuvpCb2Wc21yYuc1w+q8GJA= =fG1R -END PGP SIGNATURE- - 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]
The requested resource (/manager/) is not available
Hello! I'm getting the following error: description The requested resource (/manager/) is not available when I request URL for manager webapplication. I've manager.xml on ..\conf\Catalina\localhost and manager application on server\webapps\manager. What i'm doing wrong? Thanks a lot. - 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: The requested resource (/manager/) is not available
Thanks a lot. It worked On 10/15/07, Johnny Kewl [EMAIL PROTECTED] wrote: --- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool application server --- - Original Message - From: Andrew Hole [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, October 15, 2007 9:11 AM Subject: The requested resource (/manager/) is not available Hello! I'm getting the following error: description The requested resource (/manager/) is not available Try http://localhost:8080/manager/html Manager does all sorts of things and is used in depolyment as well, so it needs many mappings and thus is not like a normal servlet (direct) context when I request URL for manager webapplication. I've manager.xml on ..\conf\Catalina\localhost and manager application on server\webapps\manager. What i'm doing wrong? Thanks a lot. - 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] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Reload web application from my JSP
How can I , inside my JSP, call manager url to reload my web application? I need to call my JSP, because I do more things than reload. Thanks a lot - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat library hierarchy
Hello! What's the difference between common/lib , common/endorsed and common/classes? Thanks a lot - 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: Tomcat library hierarchy
Only thing that doc says: All unpacked classes and resources in $CATALINA_HOME/common/classes, as well as classes and resources in JAR files under the $CATALINA_HOME/commons/endorsed, $CATALINA_HOME/commons/i18n and $CATALINA_HOME/common/lib directories, are made visible through this class loader. I don't know difference between put a jar in common lib or common endorsed p.e. Best regards On 10/11/07, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Andrew Hole [mailto:[EMAIL PROTECTED] Subject: Tomcat library hierarchy What's the difference between common/lib , common/endorsed and common/classes? Look at the doc: http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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]
Diagnosing Tomcat memory usage
I've an java application running under tomcat and in the last week memory usage increase 50%, from 200M to 400M. I want to know exactly why this happens. Some suggestion? Thanks a lot - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Different jar version
What happens if I put different jar versions of same classes on WEB-INF/lib? Example: project.jar (new version) project_old.jar (old version) Tomcat load and use both? Could Tomcat be confused with this situation? Thanks a lot - 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: Different jar version
I'm getting OutofMemoryError ... Could have some relationship having two different versions of jar and memory leak? Thanks On 10/10/07, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Andrew Hole [mailto:[EMAIL PROTECTED] Subject: Different jar version What happens if I put different jar versions of same classes on WEB-INF/lib? Really Bad Things. Could Tomcat be confused with this situation? Yes, as is the person who did such a thing. Depending on the order the jars happen to show up in the directory (the real directory, not the sorted one shown by ls or dir commands), one will likely take precedence over the other, but you can't predict which that will be. This is a Very Bad Idea. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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]
Tomcat clustering
In cluster of two nodes, which the parameter that I need to configure (or to decrease the value) for a node knows immediately that the other is down? With this configuration a node waits some time. Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster doClusterLog=true clusterLogName=clusterlog manager.className=org.apache.catalina.cluster.session.DeltaManager manager.expireSessionsOnShutdown=false manager.notifyListenersOnReplication=false manager.notifySessionListenersOnReplication=false manager.sendAllSessions=false manager.sendAllSessionsSize=500 manager.sendAllSessionsWaitTime=20 Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4 mcastBindAddress=127.0.0.1 mcastClusterDomain=d10 mcastPort=45564 mcastFrequency=1000 mcastDropTime=3 recoveryCounter=10 recoveryEnabled=true recoverySleepTime=5000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto tcpListenPort=9016 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=fastasyncqueue recoverTimeout=5000 recoverCounter=6 doTransmitterProcessingStats=true doProcessingStats=true doWaitAckStats=true queueTimeWait=true queueDoStats=true queueCheckLock=true ackTimeout=15000 waitForAck=true keepAliveTimeout=8 keepAliveMaxRequestCount=-1/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.css;.*\.png;.*\.jpeg;.*\.jpg;.*\.htm;.*\.html;.*\.txt; primaryIndicator=true / Valve className=org.apache.catalina.cluster.session.JvmRouteBinderValve enabled=true / ClusterListener className=org.apache.catalina.cluster.session.ClusterSessionListener / ClusterListener className=org.apache.catalina.cluster.session.JvmRouteSessionIDBinderListener / Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=${catalina.base}/war-temp deployDir=${catalina.base}/war-deploy/ watchDir=${catalina.base}/war-listen/ watchEnabled=true/ /Cluster Thanks a lot - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Reload an existing application
Is it possible reload configurations on \WEB-INF\classes without restart tomcat server? Thanks a lot - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session Replication
Hello everyone! For using Tomcat session clustering I need to put the following component in all nodes? Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster doClusterLog=true clusterLogName=clusterlog manager.className=org.apache.catalina.cluster.session.DeltaManager manager.expireSessionsOnShutdown=false manager.notifyListenersOnReplication=false manager.notifySessionListenersOnReplication=false manager.sendAllSessions=false manager.sendAllSessionsSize=500 manager.sendAllSessionsWaitTime=20 Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4 mcastBindAddress=127.0.0.1 mcastClusterDomain=d10 mcastPort=45564 mcastFrequency=1000 mcastDropTime=3 recoveryCounter=10 recoveryEnabled=true recoverySleepTime=5000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto tcpListenPort=9016 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=fastasyncqueue recoverTimeout=5000 recoverCounter=6 doTransmitterProcessingStats=true doProcessingStats=true doWaitAckStats=true queueTimeWait=true queueDoStats=true queueCheckLock=true ackTimeout=15000 waitForAck=true keepAliveTimeout=8 keepAliveMaxRequestCount=-1/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.css;.*\.png;.*\.jpeg;.*\.jpg;.*\.htm;.*\.html;.*\.txt; primaryIndicator=true / Valve className=org.apache.catalina.cluster.session.JvmRouteBinderValve enabled=true / ClusterListener className=org.apache.catalina.cluster.session.ClusterSessionListener / ClusterListener className=org.apache.catalina.cluster.session.JvmRouteSessionIDBinderListener / Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=${catalina.base}/war-temp deployDir=${catalina.base}/war-deploy/ watchDir=${catalina.base}/war-listen/ watchEnabled=true/ /Cluster - 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: Session Replication
I only have one machine to test Session Replication. Every tomcat instances are in same machine. On 9/27/07, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Subject: Re: Session Replication yeah, but if you bind to 127.0.0.1 how do you expect clustering to work between nodes? :) Well, you could run all the Tomcat instances on the same box. What's that saying about eggs and baskets? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: Session Replication
Thanks. Exists some layer to replicate database sessions? If my application is connected to an instance that crasches, every sessions dies. I would like to obtain response from the other database instance when this happens. Thanks On 9/27/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: then, the tcpListenPort must be unique for each instance, since you cannot share the port Filip Andrew Hole wrote: I only have one machine to test Session Replication. Every tomcat instances are in same machine. On 9/27/07, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Subject: Re: Session Replication yeah, but if you bind to 127.0.0.1 how do you expect clustering to work between nodes? :) Well, you could run all the Tomcat instances on the same box. What's that saying about eggs and baskets? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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] - 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]
HTTP/1.1 400 no host matches server name
Hello! I'm getting the following error: HTTP/1.1 400 no host matches server name myserver Why this happens? workers.properties # -- # Load Balancer worker PFH # -- worker.pfhbalancer.type= lb worker.pfhbalancer.balanced_workers= upg4out,upg7out # # First worker # worker.upg4out.port= 8060 worker.upg4out.host= localhost worker.upg4out.type= ajp13 # # Second worker # worker.upg7out.port= 8075 worker.upg7out.host= localhost worker.upg7out.type= ajp13 httpd.conf JkMount /outpat/gateway pfhbalancer JkMount /outpat/ehrviewer/* vwbalancer - 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: HTTP/1.1 400 no host matches server name
] jk_ajp_common.c (909): 0140A0 03 00 0C 67 7A 69 70 2C 64 65 66 6C 61 74 65 - gzip,deflate [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 015000 A0 02 00 1E 49 53 4F 2D 38 38 35 39 2D 31 2C - .ISO-8859-1, [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 016075 74 66 2D 38 3B 71 3D 30 2E 37 2C 2A 3B 71 3D - utf-8;q=0.7,*;q= [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 017030 2E 37 00 00 0A 4B 65 65 70 2D 41 6C 69 76 65 - 0.7...Keep-Alive [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 018000 00 03 33 30 30 00 A0 06 00 0A 6B 65 65 70 2D - ...300.keep- [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 019061 6C 69 76 65 00 A0 09 00 38 4A 53 45 53 53 49 - alive8JSESSI [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 01a04F 4E 49 44 3D 45 42 31 45 45 39 30 37 42 34 45 - ONID=EB1EE907B4E [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 01b038 34 42 36 33 33 43 32 30 33 32 38 43 44 34 46 - 84B633C20328CD4F [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 01c046 37 46 35 32 3B 20 73 77 69 74 63 68 6D 65 6E - F7F52;.switchmen [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 01d075 3D 00 00 0D 43 61 63 68 65 2D 43 6F 6E 74 72 - u=...Cache-Contr [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 01e06F 6C 00 00 09 6D 61 78 2D 61 67 65 3D 30 00 A0 - ol...max-age=0.. [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 01f008 00 01 30 00 06 00 07 75 70 67 34 6F 75 74 00 - ...0upg4out. [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 0200FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (1264): request body to send 0 - request body to resend 0 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (1037): received from ajp13 pos=0 len=44 max=8192 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (1037): 04 01 90 00 24 4E 6F 20 48 6F 73 74 20 6D 61 74 - $No.Host.mat [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (1037): 001063 68 65 73 20 73 65 72 76 65 72 20 6E 61 6D 65 - ches.server.name [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (1037): 002020 64 65 76 77 69 6E 30 31 00 00 00 00 00 00 00 - .devwin01... [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (621): status = 400 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (628): Number of headers is = 0 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (1037): received from ajp13 pos=0 len=2 max=8192 On 9/26/07, David Delbecq [EMAIL PROTECTED] wrote: In your server.xml, you probably have configured a host (probably www.server.domain) but didn't configure the host (server). If you don't use host aliasing (that is different webapsp for different hostname), just configure a default host. En l'instant précis du 26/09/07 12:14, Andrew Hole s'exprimait en ces termes: Hello! I'm getting the following error: HTTP/1.1 400 no host matches server name myserver Why this happens? workers.properties # -- # Load Balancer worker PFH # -- worker.pfhbalancer.type= lb worker.pfhbalancer.balanced_workers= upg4out,upg7out # # First worker # worker.upg4out.port= 8060 worker.upg4out.host= localhost worker.upg4out.type= ajp13 # # Second worker # worker.upg7out.port= 8075 worker.upg7out.host= localhost worker.upg7out.type= ajp13 httpd.conf JkMount /outpat/gateway pfhbalancer JkMount /outpat/ehrviewer/* vwbalancer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.noooxml.org/ - 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: HTTP/1.1 400 no host matches server name
Host name on server.xml: Host name=localhost appBase=webapps On 9/26/07, Andrew Hole [EMAIL PROTECTED] wrote: This is output from mod_jk debug: [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_uri_worker_map.c (545): Found an exact match pfhbalancer - /outpat/gateway [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] mod_jk.c (1832): Into handler jakarta-servlet worker=pfhbalancer r-proxyreq=0 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_worker.c (111): found a worker pfhbalancer [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] mod_jk.c (531): Service protocol=HTTP/1.1 method=GET host=(null) addrr=192.168.2.52 name=devwin01 port=80 auth=(null) user=(null) laddr=192.168.1.204 raddr=192.168.2.52 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (628): service sticky_session=1 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (538): total sessionid is EB1EE907B4E84B633C20328CD4FF7F52 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (548): searching worker for partial sessionid EB1EE907B4E84B633C20328CD4FF7F52 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (600): found best worker upg4out (upg4out) using method 'Request' [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (2164): acquired connection pool slot=0 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (648): service worker=upg4out jvm_route=upg4out [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (566): ajp marshaling done [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (1698): processing upg4out with 2 retries [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_connect.c (329): socket TCP_NODELAY set to On [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_connect.c (427): trying to connect socket 2784 to 127.0.0.1:8060 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_connect.c (453): socket 2784 connected to 127.0.0.1:8060 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (864): Connected socket 2784 to (127.0.0.1:8060) [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): sending to ajp13 pos=4 len=513 max=8192 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 12 34 01 FD 02 02 00 08 48 54 54 50 2F 31 2E 31 - .4..HTTP/1.1 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 001000 00 0F 2F 6F 75 74 70 61 74 2F 67 61 74 65 77 - .../outpat/gatew [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 002061 79 00 00 0C 31 39 32 2E 31 36 38 2E 32 2E 35 - ay...192.168.2.5 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 003032 00 FF FF 00 08 64 65 76 77 69 6E 30 31 00 00 - 2.devwin01.. [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 004050 00 00 0B A0 0B 00 08 64 65 76 77 69 6E 30 31 - P...devwin01 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 005000 A0 0E 00 5A 4D 6F 7A 69 6C 6C 61 2F 35 2E 30 - ZMozilla/5.0 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 006020 28 57 69 6E 64 6F 77 73 3B 20 55 3B 20 57 69 - .(Windows;.U;.Wi [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 00706E 64 6F 77 73 20 4E 54 20 35 2E 31 3B 20 70 74 - ndows.NT.5.1;.pt [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 00802D 50 54 3B 20 72 76 3A 31 2E 38 2E 31 2E 37 29 - -PT;.rv:1.8.1.7) [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 009020 47 65 63 6B 6F 2F 32 30 30 37 30 39 31 34 20 - .Gecko/20070914. [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 00a046 69 72 65 66 6F 78 2F 32 2E 30 2E 30 2E 37 00 - Firefox/2.0.0.7. [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 00b0A0 01 00 63 74 65 78 74 2F 78 6D 6C 2C 61 70 70 - ...ctext/xml,app [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 00c06C 69 63 61 74 69 6F 6E 2F 78 6D 6C 2C 61 70 70 - lication/xml,app [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 00d06C 69 63 61 74 69 6F 6E 2F 78 68 74 6D 6C 2B 78 - lication/xhtml+x [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 00e06D 6C 2C 74 65 78 74 2F 68 74 6D 6C 3B 71 3D 30 - ml,text/html;q=0 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 00f02E 39 2C 74 65 78 74 2F 70 6C 61 69 6E 3B 71 3D - .9,text/plain;q= [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 010030 2E 38 2C 69 6D 61 67 65 2F 70 6E 67 2C 2A 2F - 0.8,image/png,*/ [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 01102A 3B 71 3D 30 2E 35 00 A0 04 00 23 70 74 2D 70 - *;q=0.5#pt-p [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 012074 2C 70 74 3B 71 3D 30 2E 38 2C 65 6E 3B 71 3D - t,pt;q
Re: HTTP/1.1 400 no host matches server name
Do you have some suggestion to solve this problem? On 9/26/07, Andrew Hole [EMAIL PROTECTED] wrote: Host name on server.xml: Host name=localhost appBase=webapps On 9/26/07, Andrew Hole [EMAIL PROTECTED] wrote: This is output from mod_jk debug: [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_uri_worker_map.c (545): Found an exact match pfhbalancer - /outpat/gateway [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] mod_jk.c (1832): Into handler jakarta-servlet worker=pfhbalancer r-proxyreq=0 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_worker.c (111): found a worker pfhbalancer [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] mod_jk.c (531): Service protocol=HTTP/1.1 method=GET host=(null) addrr=192.168.2.52 name=devwin01 port=80 auth=(null) user=(null) laddr=192.168.1.204 raddr=192.168.2.52 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (628): service sticky_session=1 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (538): total sessionid is EB1EE907B4E84B633C20328CD4FF7F52 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (548): searching worker for partial sessionid EB1EE907B4E84B633C20328CD4FF7F52 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (600): found best worker upg4out (upg4out) using method 'Request' [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (2164): acquired connection pool slot=0 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (648): service worker=upg4out jvm_route=upg4out [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (566): ajp marshaling done [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (1698): processing upg4out with 2 retries [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_connect.c (329): socket TCP_NODELAY set to On [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_connect.c (427): trying to connect socket 2784 to 127.0.0.1:8060 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_connect.c (453): socket 2784 connected to 127.0.0.1:8060 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (864): Connected socket 2784 to (127.0.0.1:8060) [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): sending to ajp13 pos=4 len=513 max=8192 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 12 34 01 FD 02 02 00 08 48 54 54 50 2F 31 2E 31 - .4..HTTP/1.1 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 001000 00 0F 2F 6F 75 74 70 61 74 2F 67 61 74 65 77 - .../outpat/gatew [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 002061 79 00 00 0C 31 39 32 2E 31 36 38 2E 32 2E 35 - ay...192.168.2.5 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 003032 00 FF FF 00 08 64 65 76 77 69 6E 30 31 00 00 - 2.devwin01.. [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 004050 00 00 0B A0 0B 00 08 64 65 76 77 69 6E 30 31 - P...devwin01 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 005000 A0 0E 00 5A 4D 6F 7A 69 6C 6C 61 2F 35 2E 30 - ZMozilla/5.0 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 006020 28 57 69 6E 64 6F 77 73 3B 20 55 3B 20 57 69 - .(Windows;.U;.Wi [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 00706E 64 6F 77 73 20 4E 54 20 35 2E 31 3B 20 70 74 - ndows.NT.5.1;.pt [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 00802D 50 54 3B 20 72 76 3A 31 2E 38 2E 31 2E 37 29 - -PT;.rv:1.8.1.7) [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 009020 47 65 63 6B 6F 2F 32 30 30 37 30 39 31 34 20 - .Gecko/20070914. [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 00a046 69 72 65 66 6F 78 2F 32 2E 30 2E 30 2E 37 00 - Firefox/2.0.0.7. [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 00b0A0 01 00 63 74 65 78 74 2F 78 6D 6C 2C 61 70 70 - ...ctext/xml,app [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 00c06C 69 63 61 74 69 6F 6E 2F 78 6D 6C 2C 61 70 70 - lication/xml,app [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 00d06C 69 63 61 74 69 6F 6E 2F 78 68 74 6D 6C 2B 78 - lication/xhtml+x [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 00e06D 6C 2C 74 65 78 74 2F 68 74 6D 6C 3B 71 3D 30 - ml,text/html;q=0 [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 00f02E 39 2C 74 65 78 74 2F 70 6C 61 69 6E 3B 71 3D - .9,text/plain;q= [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 010030 2E 38 2C 69 6D 61 67 65 2F 70 6E 67 2C 2A 2F - 0.8,image/png,*/ [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909): 01102A 3B 71 3D
Re: HTTP/1.1 400 no host matches server name
Yes, I have... in defaultHost i have value localhost. On 9/26/07, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Hole wrote: Do you have some suggestion to solve this problem? Wow, are you impatient! |p Host name on server.xml: Host name=localhost appBase=webapps Do you also have this? Engine name=Catalina defaultHost=localhost The defaultHost attribute allows one of your Host entries to respond to any request that does not match one of the other Host entries. My guess is that you have a mismatch between these two. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG+mYK9CaO5/Lv0PARAnfUAJ9H5RkLy2FTc6izIMeAG+G5iyPizQCfU6j8 DLgWOwiWnd/GeIn8B2GUD+I= =Zadd -END PGP SIGNATURE- - 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]
AJP connector getPort
HI! I have a solution with an apache with mod_jk and 2 tomcat instances. How can I know with a JSP which tomcat instance process the request? Basically I want that my JSP show AJP connector port. 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]
Tomcat status
Is there a function to check the status of tomcat? A simple JSP p.e., i make an http request to tomcat port, and if i don't get response, I say that status is down. I want to create a simple JSP resume of all tomcat instances status 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]
Re: Tomcat status
Could you tell me wich page? On 9/18/07, Bj [EMAIL PROTECTED] wrote: if you're using apache httpd and mod_jk in front of your tomcats, you have a status page with a lot of information. Also bundled with tomcat, you have the manager webapp which has a status page. -- Bj On 9/18/07, Andrew Hole [EMAIL PROTECTED] wrote: Is there a function to check the status of tomcat? A simple JSP p.e., i make an http request to tomcat port, and if i don't get response, I say that status is down. I want to create a simple JSP resume of all tomcat instances status 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] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
2 Tomcat instances
Hello! I've two tomcat instantes and an apache web server with mod_jk. Mod_jk balance request to each tomcat. Think on following situation; - TomcatA and TomcatB up - I make a request to Apache that redirects to TomcatA. I'm editing text on JSP (lot of input texts). In this moment TomcatA craches. What's happen when I click on submit button? What you suggest to solve this situation? Thanks a lot