Re: clustering questions

2005-06-14 Thread Filip Hanik - Dev Lists
So the proper location for a Cluster element is inside a Host element? Host Does this mean I need to have a separate Cluster element for each virtual host? yes, unfortunately, the better solution is to do the virtual hosting in your apache server. That way you only need one cluster config.

Re: picture of session state for nodes in cluster??

2005-06-09 Thread Filip Hanik - Dev Lists
you would have to write a valve or other component that queries the Tomcat internal classes yourself, If you do come up with something very useful, we would love to include it into the code base. Filip John MccLain wrote: How can I get a picture of session state for each node in a

Re: How to query for number of active participants in the tomcat 5.5 cluster

2005-06-09 Thread Filip Hanik - Dev Lists
you would need to write a component that queries the cluster classes (internal tomcat components) yourself. I believe you can reach the cluster object through JMX and through the tomcat classes (host etc) the interface CatalinaCluster.getMembers() returns all members in a cluster. Filip

Re: Clustering without farmwardeployer

2005-06-06 Thread Filip Hanik - Dev Lists
Two suggestions: 1. Make sure the farm war deployer is really turned off, and by the way, the farm war deployer doesn't deploy into webapps, instead into the dir you specify in server.xml 2. Check your scripts again, chances are you are the one redeploying your own old code. Filip Todd

Re: how to determine clustering problem?

2005-06-06 Thread Filip Hanik - Dev Lists
turn on logging, see Tomcat docs then through log4j you can turn on logging for only org.apache.catalina.cluster and you will be able to see all messages going through. Filip John MccLain wrote: We have a webapp that runs fine in 1 tomcat instance. We have insured that all classes being

Re: How to use Database persistence for tomcat clustering?

2005-04-19 Thread Filip Hanik - Dev Lists
Configure the PersistenceManager as your session manager hang zhao wrote: Hi, everyone I am trying some configuration with my small tomcat cluster (2 tomcats, 1 apache, connected with mod_jk2 as load balancer). The problem is that I want to use a shared database (Mysql) to do session replication

Re: Limit catalina.out size

2005-03-29 Thread Filip Hanik - Dev Lists
or like we do, we pipe the output through cronolog Filip Tim Funk wrote: There shouldn't be anything going to standard output (Unless your code is writing to System.out) An overly simple way to rotate logs in unix ... cd $tomcat_log_dir cp -f catalina.out catalina.out.`date +%Y.%m.%d` cat

Re: Cluster Deployment Question

2005-03-23 Thread Filip Hanik - Dev Lists
Make sure your WAR file gets properly installed on both instances SEVERE: Unable to install WAR file java.io.FileNotFoundException: C:\tmp\war-deploy\clustertest.war (The system cannot find the path specified) Durfee, Bernard wrote: I am ready to set Tomcat up in a clustered environment. So to

Re: Apache/Tomcat 4.1.18 - Displaying empty Strings as null

2005-03-18 Thread Filip Hanik - Dev Lists
install tomcat 4.1.31 on your new server Mendez, Eric wrote: Hello, I recently installed Apache/Tomcat v 4.1.18 on my new server, and I have a JSP page that extracts values from an Oracle database, if the value in the database is an empty String (), it returns as a null value in my JSP page. I

Re: tomcat load-balancing maintenance strategy?

2005-03-11 Thread Filip Hanik - Dev Lists
its fixed in 5.5.x, you need a patch for 5.0.x? Dan Carwin wrote: I also experienced cluster failure when restarting a downed cluster member in 5.0. I tested with Tomcat 5.0.30. Randall, what version of Tomcat did you succeed with? Thanks, Dan -Original Message- From: Richard Mixon

Re: SV: Cluster: will session listeners got called again after replication?

2005-03-02 Thread Filip Hanik - Dev lists
, even though it can pick up the sessions from the other nodes, my HttpSessionBindingListener and HttpSessionListener were not called at all during the replication. Joseph On Fri, 25 Feb 2005, Filip Hanik - Dev Lists wrote: there is a flag you can set so that listeners don't get called, its optional

Re: Tomcat clustering and NotSerializableException

2005-03-01 Thread Filip Hanik - Dev Lists
As Richard says, don't store your request in the session, not a good idea. Richard Mixon (qwest) wrote: CoyoteRequestFacade is the first element in the stack trace - it is not the session stored object that is causing the NotSerializableException. As I said in my prior posting, to resolve this

Re: skipping state transfer. No members active in cluster group

2005-03-01 Thread Filip Hanik - Dev Lists
your multicast isn't working. Filip Randall Svancara wrote: I have a problem in my tomcat logs. I am using tomcat 5.5.7 and whenever I start up tomcat for the first time, I receive this error message. INFO: Manager[/testapp], skipping state transfer. No members active in cluster group. After the

Re: SV: Cluster: will session listeners got called again after replication?

2005-02-25 Thread Filip Hanik - Dev Lists
there is a flag you can set so that listeners don't get called, its optional its called notifyListenersOnReplication, see server.xml for example, default is true Filip Jesper Ekberg wrote: Hello! My first mail to this list. :) I have read it for a long time tho. We have a tried to cluster 3

Re: Cluster: Is session's lastAccessedTime got replicated?

2005-02-25 Thread Filip Hanik - Dev Lists
unless the session is primary, the last accessed time wont matter, when the session becomes primary, the last access time gets set immediately. Filip Joseph Lam wrote: Found that only when a replication is explicitly triggered by set/removeAttribute(), the other nodes'

Re: SV: Cluster: will session listeners got called again after replication?

2005-02-25 Thread Filip Hanik - Dev Lists
there is a difference between a crashed tomcat and a shutdown tomcat. Filip Filip Hanik - Dev Lists wrote: there is a flag you can set so that listeners don't get called, its optional its called notifyListenersOnReplication, see server.xml for example, default is true Filip Jesper Ekberg

Re: Cluster: how to set mcast interface for dual LAN card?

2005-02-22 Thread Filip Hanik - Dev Lists
there is an attribute mcastBindAddr that allows you to bind to the interface. Joseph Lam wrote: Hi, If I have two LAN cards and I want my Tomcat to mcast through one of them, what parameter should I set? Regards, Joseph - To

Re: Load balancing SSL sessions

2005-02-22 Thread Filip Hanik - Dev Lists
you can also use DNS round robin, www.mysite.com resolves to two or more IP addresses. Filip Andrew Miehs wrote: We use F5 BigIPs, but they are probably overkill for your application - The cisco probably will be as well. A 'Cheap' software solution might be to work with redirects, and 2

Re: dodgy session class

2005-02-16 Thread Filip Hanik - Dev Lists
Nice catch Vlad, I'll look into it. Filip [EMAIL PROTECTED] wrote: thanks for your reply Peter. unfortunately none of the applications has explicitly configured sessions manager. I have managed to consistently reproduce the problem. The problem involves two webapps, app1 and app2. App1 is

Re: dodgy session class

2005-02-16 Thread Filip Hanik - Dev Lists
Actually, I didn't get your attachments, could you open a bug in bugzilla and attach them there. Filip [EMAIL PROTECTED] wrote: thanks for your reply Peter. unfortunately none of the applications has explicitly configured sessions manager. I have managed to consistently reproduce the problem.

Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Filip Hanik - Dev lists
expireSessionsOnShutdown=true set this property to false! this will not kill the sessions on the other servers during shutdown. but, yes kill -9 or taskmanager killing it, will work too Filip Richard Mixon (qwest) wrote: Filip, Thanks so much for some reason taking the Manager statement

Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Filip Hanik - Dev lists
be an actual bug. I'll try to get this running tomorrow. Filip Richard Mixon (qwest) wrote: Filip Hanik - Dev lists wrote: expireSessionsOnShutdown=true set this property to false! this will not kill the sessions on the other servers during shutdown. but, yes kill -9 or taskmanager killing

Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Filip Hanik - Dev lists
I meant, if you have time to create a simple test app, that I can work with, it will speed up the process Filip Filip Hanik - Dev lists wrote: Interesting, I haven't done any work with the latest work of tomcat because of engagements elsewhere. but you have the time to create a very small

Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Filip Hanik - Dev lists
another thought, this object com.ltoj.webapp.util.ClassGrid does it contain a reference to a struts object, and maybe that is why the loading doesn't work, just a thought. Filip Filip Hanik - Dev lists wrote: Interesting, I haven't done any work with the latest work of tomcat because

Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Filip Hanik - Dev lists
. Let me see what I can dig up before I send you off to do something crazy :) Filip Richard Mixon (qwest) wrote: Filip Hanik - Dev lists wrote: another thought, this object com.ltoj.webapp.util.ClassGrid does it contain a reference to a struts object, and maybe that is why the loading doesn't work