Re: Need a working example of Tomcat 5 clustering

2004-11-30 Thread Filip Hanik - Dev
use Pen as a load balancer instead

siag.nu/pen

Filip

- Original Message - 
From: "Steve Burns" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 29, 2004 12:28 PM
Subject: Need a working example of Tomcat 5 clustering


Has anyone gotten clustering to work?  In an example I saw on the O'Reilly site
at

http://www.onjava.com/lpt/a/4702

I couldn't get the load balancer instance to forward requests on to the cluster
node instances.







=

Steve Burns



__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Need a working example of Tomcat 5 clustering

2004-11-29 Thread Steve Burns
Has anyone gotten clustering to work?  In an example I saw on the O'Reilly site
at

http://www.onjava.com/lpt/a/4702

I couldn't get the load balancer instance to forward requests on to the cluster
node instances.







=

Steve Burns



__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5 clustering

2004-06-07 Thread Dale, Matt

If the slowness is caused 100% by load on your single machine then you may be able to 
reduce to response time although a tenfold increase is pretty optimistic. But a 
request time of this length I would look to your application as the primary culprit.

Does it have this response time for just a single request with 1 user on the system? 
If it does then clustering is unlikely to help you at all. With a load balancer or 
some other way of splitting the users clustering will reduce the number of users 
hitting a given machine and free up some processor and memory. It will not share the 
work of a single request accross multiple tomcats.

My advice would be to profile your application first, work out where it is spending 
its time and if the response is good in a single user scenario then perhaps experiment 
with clustering.

Ta
Matt

-Original Message-
From: Michael Cardon [mailto:[EMAIL PROTECTED]
Sent: 03 June 2004 01:10
To: Tomcat Users List
Subject: Tomcat 5 clustering


For the sake of this question, let me assume that I have an application
running on one instance of Tomcat that takes 10 seconds to complete a client
request.  If I cluster 10 machines together does it help with the
through-put, i.e. meaning it might take 1 second to complete the request
now, or does it just make the session redundant in case of failure.  Just
wondering about which setup would serve me the best and be the fastest for
our clients.

Thanks for any input on this.
Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat 5 clustering

2004-06-02 Thread Michael Mehrle
:-) Of course you won't get it down to 1 second - there is some overhead
associated with any type of clustering - 3 seconds would be a great goal. I
would also take a look at where your current performance issues are and try
to get as much as you can out of one Tomcat installation. Maybe you don't
have enough RAM installed, maybe you have other services running - the way
your app is written might be non-optimal, and there are a myriad of things
that can drag your box down. Simply throwing more hardware at it is not
always the best solution (a mixed approach might be what the doctor
ordered).

Just some general input to set the stage - others will be able to offer your
more detailed insight on what to do...

Michael


- Original Message - 
From: "Michael Cardon" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 02, 2004 5:09 PM
Subject: Tomcat 5 clustering


> For the sake of this question, let me assume that I have an application
> running on one instance of Tomcat that takes 10 seconds to complete a
client
> request.  If I cluster 10 machines together does it help with the
> through-put, i.e. meaning it might take 1 second to complete the request
> now, or does it just make the session redundant in case of failure.  Just
> wondering about which setup would serve me the best and be the fastest for
> our clients.
>
> Thanks for any input on this.
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5 clustering

2004-06-02 Thread Michael Cardon
For the sake of this question, let me assume that I have an application
running on one instance of Tomcat that takes 10 seconds to complete a client
request.  If I cluster 10 machines together does it help with the
through-put, i.e. meaning it might take 1 second to complete the request
now, or does it just make the session redundant in case of failure.  Just
wondering about which setup would serve me the best and be the fastest for
our clients.

Thanks for any input on this.


re: Tomcat 5 clustering question...

2004-04-14 Thread Spiegelberg, Eric
I was looking at the wrong part of my log from some earlier testing. On
startup the two clusters are correctly transferring the state for my app:

INFO: Processing Context configuration file URL ...
Apr 14, 2004 10:43:50 AM org.apache.catalina.cluster.session.DeltaManager
start
INFO: Starting clustering manager...:/ourapp
Apr 14, 2004 10:43:50 AM org.apache.catalina.cluster.session.DeltaManager
start
WARNING: Manager[/ourapp], requesting session state from
org.apache.catalina.cluster.mcast.McastMember[tcp://127.0.0.1:4001,127.0.0.1
,4001, alive=132536]. This operation will timeout if no session state has
been received within 60 seconds
Apr 14, 2004 10:43:50 AM org.apache.catalina.cluster.session.DeltaManager
start
INFO: Manager[/ourapp], session state received in 103 ms.

Also, the class not found exception I described from my previous post does
exist and does implement Serializable.

Thanks,
Eric

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5 clustering question...

2004-04-14 Thread Filip Hanik \(lists\)
wow, you wrote a book :)

1.
where is the class com.mycompany.ourapp.common.model.ReturnPolicy?

2. WARNING: Manager[/ourapp], requesting session state from
org.apache.catalina.cluster.mcast.McastMember[tcp://127.0.0.1:4001,127.0.0.1
,4001, alive=1259]

Your network is misconfigured. Your are using the "AUTO" setting, which does
java.net.InetAddress.getLocalHost().getHostAddress(), and on your machine it
return 127.0.0.1, it should return the actual IP. So either change "auto" to
the actual IP, or add your hostname to /etc/hosts under the correct ip.

3.
SEVERE: Session event listener threw exception
java.lang.IllegalStateException: getAttribute: Session already invalidated

Your session listener is trying to get an attribute out of the session upon
session creation, the the valid flag has not yet been set.
I believe this was fixed in the CVS tree by now.

you can correspond with me at fhanik -at- apache -dot- org and I can help
you get this straightened out.

Filip

-Original Message-
From: Spiegelberg, Eric [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 14, 2004 10:35 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 5 clustering question...


We have a developed an large scale application that is clustered
using WebLogic. I have been exploring getting the app clustered on Tomcat as
a learning experience and to possibly sway the management away from
WebLogic. I have Tomcat 5.0.19 set up with the latest production version of
Apache using mod_jk.

I have one Tomcat instance configured to use port 8080 and another
on 9090 on a RedHat 9.0 box. I am setting LD_ASSUME_KERNEL to 2.4. No error
messages are displayed during startup.

I have done enough testing to feel confident in the
Apache/jk_mod/tomcat configuration. For example, I can use Tomcat's included
SessionExample to go to host:8080 and enter a session variable, and when I
then go to host:9090 the variable is displayed along with the correct
session id. The session has .worker1 appended to the end of the string. I
can add variables and bounce back and forth (through apache, 8080, and 9090
url's) and all variables are displayed correctly with the same session id.
This indicates to me that the two clusters are aware of each other and are
passing session information back and forth. I can confirm this in the
catalina.out log.

In our app the web.xml contains the  tag and both
Tomcat instances have the useDirtyFlag set to false.

Now, when I log into our app and start driving around I receive
several of the following exception:

Apr 14, 2004 10:15:29 AM org.apache.catalina.cluster.session.DeltaManager
messageReceived
SEVERE: Unable to receive message through TCP channel
java.lang.ClassNotFoundException:
com.mycompany.ourapp.common.model.ReturnPolicy
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:891)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:756)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at
java.io.ObjectInputStream.resolveProxyClass(ObjectInputStream.java:630)
at
java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1469)
at
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1432)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at
org.apache.catalina.cluster.session.DeltaRequest$AttributeInfo.readExternal(
DeltaRequest.java:335)
at
org.apache.catalina.cluster.session.DeltaRequest.readExternal(DeltaRequest.j
ava:247)
at
org.apache.catalina.cluster.session.DeltaManager.loadDeltaRequest(DeltaManag
er.java:420)
at
org.apache.catalina.cluster.session.DeltaManager.messageReceived(DeltaManage
r.java:921)
at
org.apache.catalina.cluster.session.DeltaManager.messageDataReceived(DeltaMa
nager.java:794)
at
org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(SimpleT
cpCluster.java:561)
at
org.apache.catalina.c

Tomcat 5 clustering question...

2004-04-14 Thread Spiegelberg, Eric
We have a developed an large scale application that is clustered
using WebLogic. I have been exploring getting the app clustered on Tomcat as
a learning experience and to possibly sway the management away from
WebLogic. I have Tomcat 5.0.19 set up with the latest production version of
Apache using mod_jk. 

I have one Tomcat instance configured to use port 8080 and another
on 9090 on a RedHat 9.0 box. I am setting LD_ASSUME_KERNEL to 2.4. No error
messages are displayed during startup.

I have done enough testing to feel confident in the
Apache/jk_mod/tomcat configuration. For example, I can use Tomcat's included
SessionExample to go to host:8080 and enter a session variable, and when I
then go to host:9090 the variable is displayed along with the correct
session id. The session has .worker1 appended to the end of the string. I
can add variables and bounce back and forth (through apache, 8080, and 9090
url's) and all variables are displayed correctly with the same session id.
This indicates to me that the two clusters are aware of each other and are
passing session information back and forth. I can confirm this in the
catalina.out log.

In our app the web.xml contains the  tag and both
Tomcat instances have the useDirtyFlag set to false. 

Now, when I log into our app and start driving around I receive
several of the following exception:

Apr 14, 2004 10:15:29 AM org.apache.catalina.cluster.session.DeltaManager
messageReceived
SEVERE: Unable to receive message through TCP channel
java.lang.ClassNotFoundException:
com.mycompany.ourapp.common.model.ReturnPolicy
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:891)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:756)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at
java.io.ObjectInputStream.resolveProxyClass(ObjectInputStream.java:630)
at
java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1469)
at
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1432)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at
org.apache.catalina.cluster.session.DeltaRequest$AttributeInfo.readExternal(
DeltaRequest.java:335)
at
org.apache.catalina.cluster.session.DeltaRequest.readExternal(DeltaRequest.j
ava:247)
at
org.apache.catalina.cluster.session.DeltaManager.loadDeltaRequest(DeltaManag
er.java:420)
at
org.apache.catalina.cluster.session.DeltaManager.messageReceived(DeltaManage
r.java:921)
at
org.apache.catalina.cluster.session.DeltaManager.messageDataReceived(DeltaMa
nager.java:794)
at
org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(SimpleT
cpCluster.java:561)
at
org.apache.catalina.cluster.io.ObjectReader.execute(ObjectReader.java:117)
at
org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplica
tionThread.java:176)
at
org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThrea
d.java:114

I have looked in our deployed .war and that class does exist. There
appears to be no ryme or reason as to when the exception is thrown - it
seems random with no pattern. Can anyone give me more information on what
causes this exception? Any ideas?

Also, when I then shutdown an instance and click on a link within
the app (attempting to cause the Apache to swith over to another worker),
I'm logged out of the app and the following exception is thrown:

Apr 14, 2004 10:16:10 AM org.apache.catalina.cluster.session.DeltaSession
tellNew
SEVERE: Session event listener threw exception
java.lang.IllegalStateException: getAttribute: Session already invalidated
at
org.apache.catalina.cluster.session.DeltaSession.getAttribute(DeltaSession.j
ava:1054)
at
org.apache.catalina.cluster.session.DeltaSessionFacade.getAttribute(DeltaSes
sionFacade.java:157)
at com.mckesson.smo.app.SmoSession.get(SmoSessio

Tomcat 5 Clustering - Loadbalancing

2004-04-02 Thread armalai
Hi.,
   My environements are.,
Windows 2000
Tomcat 5.x + Apache 2.X + Mod_JK2

I have three tomcat instances and Apache server in a single machine..
Clusterring and load balancing is working fine.
But i'm getting this error in Apache error.log file.
1.Can you please check my Apache logs and worker properties file and give me your 
suggestion.
2.My main tomcat instance prints the nomal log information  with the symbol 
warning..why this is happeneing?
3.In tomcat I'm not able to set the docBase value for the context as a Absolute 
path.I'm using like ../webapps/appfolder.
  so i have to copy the appfolder to all instances.
  How do i access the appfolder from common place?

---Tomcat log
Apr 2, 2004 9:09:07 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
--
-Apache log-
[Thu Apr 01 16:54:28 2004] [error] env.createBean2(): Error getting factory for 
[worker.list] (null)
[Thu Apr 01 16:54:28 2004] [error] config.update(): Can't create worker.list
[Thu Apr 01 16:54:28 2004] [notice] Parent: Created child process 2232
[Thu Apr 01 16:54:28 2004] [error] env.createBean2(): Error getting factory for 
[worker.list] (null)
[Thu Apr 01 16:54:28 2004] [error] config.update(): Can't create worker.list
[Thu Apr 01 16:54:28 2004] [notice] Child 2232: Child process is running
[Thu Apr 01 16:54:28 2004] [error] mod_jk child init 1 0
[Thu Apr 01 16:54:28 2004] [notice] Child 2232: Acquired the start mutex.
[Thu Apr 01 16:54:28 2004] [notice] Child 2232: Starting 250 worker threads.
[Thu Apr 01 17:07:32 2004] [error] ajp13.service() error sending, reconnect 
channel.socket:localhost:8019 -1 0 No error
[Thu Apr 01 17:07:33 2004] [error] ajp13.service() error sending, reconnect 
channel.socket:localhost:8019 -1 0 No error
[Thu Apr 01 17:10:45 2004] [error] ajp13.service() error sending, reconnect 
channel.socket:localhost:8019 -1 0 No error
[Thu Apr 01 17:10:46 2004] [error] ajp13.service() error sending, reconnect 
channel.socket:localhost:8009 -1 0 No error
[Thu Apr 01 17:10:46 2004] [error] ajp13.service() error sending, reconnect 
channel.socket:localhost:8009 -1 0 No error
[Thu Apr 01 17:10:59 2004] [error] ajp13.service() error sending, reconnect 
channel.socket:localhost:8019 -1 0 No error
--

--worker.properties--
# workers2.properties
# Define the TCP socket communication channel 
#ps=/
worker.list=tomcat,tomcatA,tomcatB loadbalancer
#worker.tomat.
[channel.socket:localhost:8009]
worker.tomcat.port=8009
worker.tomcat.host=localhost
worker.tomcat.lbfactor=2
#--
#worker.tomat.
[channel.socket:localhost:8019]
worker.tomcatA.port=8019
worker.tomcatA.host=localhost
worker.tomcatA.lbfactor=2
#--
#worker.tomat.
[channel.socket:localhost:8029]
worker.tomcatB.port=8029
worker.tomcatB.host=localhost
worker.tomcatB.lbfactor=2
#--
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat,tomcatA,tomcatB
# Map the Tomcat webapp to the Web server uri space
[uri:/*]
info=Map the entire "examples" webapp
debug=0
# Configure the shared memory file
[shm]
file=C:\$Java\3_AS\Apache2\logs\jk2.shm
size=1048576
debug=0


RE: Tomcat 5 Clustering

2004-04-01 Thread Filip Hanik \(lists\)
1. http://siag.nu/pen/ (works on both windows and unix, you may need cygwin)
2. http://balance.sourceforge.net (unix only)
3. Apache mod_jk/mod_jk2 with load balancing

the TCP based solutions (1&2) will work faster and are easier to install.
mod_jk/2 comes with a different set of features in addition to just the
loadbalancer, so you might want to look into that as well

Filip

-Original Message-
From: armalai [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 01, 2004 9:25 AM
To: Tomcat Users List
Subject: Tomcat 5 Clustering


Hi.,
Environement: Windows 2000, Tomcat 5.X
  I have Two tomcat instances and i enabled cluster settings in the
server.xml.
Looks like both instances working well.I can access my application thru the
ip and assigend port for individual instances.

My question is..

1.How do i configure my instances to access by single url?
so that if one instance failed, cluster will route to another one right.
2.If i can use Apache 2.x for this do i have to change the http connector to
ajp in my tomcat?
3.Suggest me which one will be good for better page transactions.

Thanks.,
MALAI

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.614 / Virus Database: 393 - Release Date: 3/5/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.614 / Virus Database: 393 - Release Date: 3/5/2004


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5 Clustering

2004-04-01 Thread armalai
Hi.,
Environement: Windows 2000, Tomcat 5.X
  I have Two tomcat instances and i enabled cluster settings in the server.xml.
Looks like both instances working well.I can access my application thru the ip and 
assigend port for individual instances.

My question is..

1.How do i configure my instances to access by single url?
so that if one instance failed, cluster will route to another one right.
2.If i can use Apache 2.x for this do i have to change the http connector to ajp in my 
tomcat?
3.Suggest me which one will be good for better page transactions.

Thanks.,
MALAI


Re: Please Help!! Tomcat 5 Clustering

2003-12-22 Thread Filip Hanik
I'm working on a JDK1.3 version of the clustering, hopefully the next stable
release

Filip
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 22, 2003 7:33 AM
Subject: RE: Please Help!! Tomcat 5 Clustering


Yoav,

You've been an incredible help.  Thank you very much.  It seems my only
options are to skip the clustering or move to 1.4 (I don't know how long it
would take Filip to get clustering working on 1.3 but I doubt I have the
time).

Thanks again,

Matt

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Mon 22/12/2003 10:12 AM
To: Tomcat Users List
Cc:
Subject: RE: Please Help!! Tomcat 5 Clustering




Howdy,

>Thank you very much for your response.  Unfortunately we are using jdk
1.3.
>Do you know if it is possible for me to simply add the charsequence
class
>into my jar?  It will be a very big headache to move to 1.4.

I do happen to know that no it's not possible for you to add that class
(it's an interface, and a number of the core JDK classes are retrofitted
to implement it) to your jar.

It might be possible, though Filip would have to chime in and want to do
the work (unless you do it yourself), to make tomcat's clustering code
work on JDK 1.3.

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information.  If you have
received it in error, please notify the sender immediately and delete the
original.  Any other use of the email by you is prohibited.








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Please Help!! Tomcat 5 Clustering

2003-12-22 Thread Shapira, Yoav

Howdy,

>You've been an incredible help.  Thank you very much.  It seems my only
>options are to skip the clustering or move to 1.4 (I don't know how
long it
>would take Filip to get clustering working on 1.3 but I doubt I have
the
>time).

No problem, glad to help.

I wouldn't overestimate the complexity of the patch to the clustering
code: the CharSequence interface isn't earth-shattering, it's methods
are few, simple, and previously available.  I bet a code change to
compile and run under JDK 1.3 wouldn't be that hard.  That said, I
haven't looked at the code, so I can't tell for sure.

I also don't know what your timeline is, i.e. if you can wait for a
patch and a new release.  Alternatively, I don't know (based on your
organization) if you or your client would be willing to run with a
patched, unofficial version of tomcat.

So yeah, the bottom line might be that even though this is not a
complicated patch, you have to move to JDK 1.4.  It should not be a
difficult move though, unless you're doing some crazy XML stuff ;)

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Please Help!! Tomcat 5 Clustering

2003-12-22 Thread matthew . rapoport
Yoav,
 
You've been an incredible help.  Thank you very much.  It seems my only options are to 
skip the clustering or move to 1.4 (I don't know how long it would take Filip to get 
clustering working on 1.3 but I doubt I have the time).
 
Thanks again,
 
Matt

-Original Message- 
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Mon 22/12/2003 10:12 AM 
To: Tomcat Users List 
Cc: 
Subject: RE: Please Help!! Tomcat 5 Clustering




Howdy,

>Thank you very much for your response.  Unfortunately we are using jdk
1.3.
>Do you know if it is possible for me to simply add the charsequence
class
>into my jar?  It will be a very big headache to move to 1.4.

I do happen to know that no it's not possible for you to add that class
(it's an interface, and a number of the core JDK classes are retrofitted
to implement it) to your jar.

It might be possible, though Filip would have to chime in and want to do
the work (unless you do it yourself), to make tomcat's clustering code
work on JDK 1.3.

Yoav Shapira



This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary and/or 
privileged.  This e-mail is intended only for the individual(s) to whom it is 
addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  
If you are not the(an) intended recipient, please immediately delete this e-mail from 
your computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in error, 
please notify the sender immediately and delete the original.  Any other use of the 
email by you is prohibited.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Please Help!! Tomcat 5 Clustering

2003-12-22 Thread Shapira, Yoav

Howdy,
I added a note about the JDK 1.4 requirement to the clustering how-to
page.  It'll show up next time we refresh the site.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]
>Sent: Sunday, December 21, 2003 10:01 PM
>To: [EMAIL PROTECTED]
>Subject: Please Help!! Tomcat 5 Clustering
>
>Hi All,
>
>I am a Tomcat newbie running Tomcat 5 and I would like to implement
>clustering between 2 servers.  I followed the instructions given at
>http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html
><http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html>
>
>When I uncomment the cluster tag in server.xml and the replication
valve
>(as per the instructions) I got the following error upon starting up
>Tomcat.  Does anyone know why???
>
>Thank You,
>
>Matt
>
>[ERROR] Digester - -Begin event threw error
>java/lang/CharSequence>java.lang.NoClassDefFoundError: java/lang/
>CharSequence
>at java.lang.Class.newInstance0(Native Method)
>at java.lang.Class.newInstance(Class.java:232)
>at
>org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.jav
a:25
>3)
>at org.apache.commons.digester.Rule.begin(Rule.java:200)
>at
>org.apache.commons.digester.Digester.startElement(Digester.java:1273)
>at
>org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester
.jav
>a:112)
>at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
>Source)
>at
>org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknow
n
>Source)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(
Unkn
>own Source)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi
spat
>cher.dispatch(Unknown Source)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn
own
>Source)
>at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
>Source)
>at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
>at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
>Source)
>at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
>at org.apache.catalina.startup.Catalina.load(Catalina.java:515)
>at org.apache.catalina.startup.Catalina.load(Catalina.java:553)
>at java.lang.reflect.Method.invoke(Native Method)
>at
org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
>at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397)
>
>
>
>
>This message is for the designated recipient only and may contain
>privileged, proprietary, or otherwise private information.  If you have
>received it in error, please notify the sender immediately and delete
the
>original.  Any other use of the email by you is prohibited.




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Please Help!! Tomcat 5 Clustering

2003-12-22 Thread Shapira, Yoav

Howdy,

>Thank you very much for your response.  Unfortunately we are using jdk
1.3.
>Do you know if it is possible for me to simply add the charsequence
class
>into my jar?  It will be a very big headache to move to 1.4.

I do happen to know that no it's not possible for you to add that class
(it's an interface, and a number of the core JDK classes are retrofitted
to implement it) to your jar.

It might be possible, though Filip would have to chime in and want to do
the work (unless you do it yourself), to make tomcat's clustering code
work on JDK 1.3.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Please Help!! Tomcat 5 Clustering

2003-12-22 Thread matthew . rapoport
Thank you very much for your response.  Unfortunately we are using jdk 1.3.  Do you 
know if it is possible for me to simply add the charsequence class into my jar?  It 
will be a very big headache to move to 1.4.
 
Thanks,
 
Matt

-Original Message- 
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Mon 22/12/2003 9:27 AM 
To: Tomcat Users List 
Cc: 
Subject: RE: Please Help!! Tomcat 5 Clustering




Howdy,
Looks like the Cluster code requires JDK 1.4, as java.lang.CharSequence
is new in JDK 1.4.  Are you running a 1.4 JDK and still getting this
error?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]
>Sent: Sunday, December 21, 2003 10:01 PM
>To: [EMAIL PROTECTED]
>Subject: Please Help!! Tomcat 5 Clustering
>
>Hi All,
>
>I am a Tomcat newbie running Tomcat 5 and I would like to implement
>clustering between 2 servers.  I followed the instructions given at
>http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html
><http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html>
>
>When I uncomment the cluster tag in server.xml and the replication
valve
>(as per the instructions) I got the following error upon starting up
>Tomcat.  Does anyone know why???
>
>Thank You,
>
>Matt
>
>[ERROR] Digester - -Begin event threw error
>java/lang/CharSequence>java.lang.NoClassDefFoundError: java/lang/
>CharSequence
>at java.lang.Class.newInstance0(Native Method)
>at java.lang.Class.newInstance(Class.java:232)
>at
>org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.jav
a:25
>3)
>at org.apache.commons.digester.Rule.begin(Rule.java:200)
>at
>org.apache.commons.digester.Digester.startElement(Digester.java:1273)
>at
>org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester
.jav
>a:112)
>at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
>Source)
>at
>org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknow
n
>Source)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(
Unkn
>own Source)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi
spat
>cher.dispatch(Unknown Source)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn
own
>Source)
>at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
>Source)
>at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
>at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
>Source)
>at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
>at org.apache.catalina.startup.Catalina.load(Catalina.java:515)
>at org.apache.catalina.startup.Catalina.load(Catalina.java:553)
>at java.lang.reflect.Method.invoke(Native Method)
>at
org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
>at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397)
>
>
>
>
>This message is for the designated recipient only and may contain
>privileged, proprietary, or otherwise private information.  If you have
>received it in error, please notify the sender immediately and delete
the
>original.  Any other use of the email by you is prohibited.




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary and/or 
privileged.  This e-mail is intended only for the individual(s) to whom it is 
addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  
If you are not the(an) intended recipient, please immediately delete this e-mail from 
your computer system and notify the sender.  Thank you.


--

RE: Please Help!! Tomcat 5 Clustering

2003-12-22 Thread Shapira, Yoav

Howdy,
Looks like the Cluster code requires JDK 1.4, as java.lang.CharSequence
is new in JDK 1.4.  Are you running a 1.4 JDK and still getting this
error?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]
>Sent: Sunday, December 21, 2003 10:01 PM
>To: [EMAIL PROTECTED]
>Subject: Please Help!! Tomcat 5 Clustering
>
>Hi All,
>
>I am a Tomcat newbie running Tomcat 5 and I would like to implement
>clustering between 2 servers.  I followed the instructions given at
>http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html
><http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html>
>
>When I uncomment the cluster tag in server.xml and the replication
valve
>(as per the instructions) I got the following error upon starting up
>Tomcat.  Does anyone know why???
>
>Thank You,
>
>Matt
>
>[ERROR] Digester - -Begin event threw error
>java/lang/CharSequence>java.lang.NoClassDefFoundError: java/lang/
>CharSequence
>at java.lang.Class.newInstance0(Native Method)
>at java.lang.Class.newInstance(Class.java:232)
>at
>org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.jav
a:25
>3)
>at org.apache.commons.digester.Rule.begin(Rule.java:200)
>at
>org.apache.commons.digester.Digester.startElement(Digester.java:1273)
>at
>org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester
.jav
>a:112)
>at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
>Source)
>at
>org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknow
n
>Source)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(
Unkn
>own Source)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi
spat
>cher.dispatch(Unknown Source)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn
own
>Source)
>at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
>Source)
>at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
>at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
>Source)
>at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
>at org.apache.catalina.startup.Catalina.load(Catalina.java:515)
>at org.apache.catalina.startup.Catalina.load(Catalina.java:553)
>at java.lang.reflect.Method.invoke(Native Method)
>at
org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
>at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397)
>
>
>
>
>This message is for the designated recipient only and may contain
>privileged, proprietary, or otherwise private information.  If you have
>received it in error, please notify the sender immediately and delete
the
>original.  Any other use of the email by you is prohibited.




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Please Help!! Tomcat 5 Clustering

2003-12-21 Thread matthew . rapoport
Hi All,

I am a Tomcat newbie running Tomcat 5 and I would like to implement clustering between 
2 servers.  I followed the instructions given at 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html 
 

When I uncomment the cluster tag in server.xml and the replication valve (as per the 
instructions) I got the following error upon starting up Tomcat.  Does anyone know 
why???

Thank You,

Matt

[ERROR] Digester - -Begin event threw error java.lang.NoClassDefFoundError: java/lang/
CharSequence
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at 
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:253)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at 
org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester.java:112)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.Catalina.load(Catalina.java:515)
at org.apache.catalina.startup.Catalina.load(Catalina.java:553)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397)




This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in error, 
please notify the sender immediately and delete the original.  Any other use of the 
email by you is prohibited.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Tomcat 5 Clustering

2003-12-20 Thread matthew . rapoport
Hi All,

I am running Tomcat 5 and I would like to implement clustering between 2 servers.  I 
followed the instructions given at 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html 
 

When I uncomment the cluster tag in server.xml and the replication valve (as per the 
instructions) I got the following error upon starting up Tomcat.  Does anyone know 
why???

Thank You,

Matt

[ERROR] Digester - -Begin event threw error java.lang.NoClassDefFoundError: java/lang/
CharSequence
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at 
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:253)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at 
org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester.java:112)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.Catalina.load(Catalina.java:515)
at org.apache.catalina.startup.Catalina.load(Catalina.java:553)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397)




This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in error, 
please notify the sender immediately and delete the original.  Any other use of the 
email by you is prohibited.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat 5 Clustering

2003-12-16 Thread Filip Hanik
probably easier if you post it to fhanik at apache dot org

Filip
- Original Message - 
From: "Pitre, Russell" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 16, 2003 12:27 PM
Subject: RE: Tomcat 5 Clustering


Okwill do...should I post them here or offline.Maybe others will
be able to benefit from our conversation


Russ

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 16, 2003 3:17 PM
To: Tomcat Users List
Subject: Re: Tomcat 5 Clustering

hmm, on your console or in your log, are the systems finding each other,
ie, do you have multicast enabled and do the nodes actually connect to
each
other?
send the logs from a clean run, ie stop, delete logs, start, send logs
Filip
- Original Message -
From: "Pitre, Russell" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 16, 2003 12:08 PM
Subject: RE: Tomcat 5 Clustering


Hi Filip-

Sorry, while being caught up in the problem statement..I forgot to
mention that I'm using Microsoft Network Load Balancing services for
load balancing and failover detectionagain my apologies

When I do pull the plugI am redirected to the working node...and
when I try getAttribute("myAttribute") on that same session (never
closed the browser) the session or session attribute  is no longer
obtainable...


Russ





-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 16, 2003 2:13 PM
To: Tomcat Users List
Subject: Re: Tomcat 5 Clustering

download a load balancer

balance.sourceforge.net or a perl balancer called "pen" (google)

the shut down one tomcat, after initial access, the system will fail
over.

pulling the network cable without any other failure has not yet been
handled
as a failure scenario

Filip

- Original Message -
From: "Pitre, Russell" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 16, 2003 10:37 AM
Subject: Tomcat 5 Clustering


Hello All:



Please excuse my ignorance, I'm trying to achieve clustering with Tomcat
5I've read the following in the Tomcat 5 documentation:


=

To run session replication in your Tomcat 5 container, the following
steps should be completed:
-->All your session attributes must implement java.io.Serializable


===



Okay. I've completed all the other steps (uncomment the 
element along with the , and added the  in
web.xml)I'm trying to code a simple object that implements
java.io.Serializable to store in a session and here it is.



package com.shawmut.session;

import java.io.Serializable;



public class SerializeSession implements Serializable {



public static String testString  = "";



public void setString(String stringValue){

this.testString = stringValue;

}

public String getString(){

return this.testString;

}

}



ok.Now I want to put this in the session.



<%

if(session.getAttribute("ss")== null){

SerializeSession ss = new SerializeSession();

ss.setString("Booo! And I created my
session on Tomcat 1 Node");

session.setAttribute("ss", ss);

}

%>









Whats going on here?.I unplug the patch cord ( docs says it's a bad
idea) from one of the boxes and hit a jsp on the working node that does
the following..and the session doesn't carry over to the working
node



<%

if(session.getAttribute("ss")!= null){

SerializeSession ss2 =
(SerializeSession)session.getAttribute("ss");

%>

SESSION:<%=ss2.getString()%>



<%

}

%>







Basically what I'm looking for is an example of serializing session
attributes as noted above Any Help here will be greatly
appreciated..





Russ









-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5 Clustering

2003-12-16 Thread Pitre, Russell
Okwill do...should I post them here or offline.Maybe others will
be able to benefit from our conversation


Russ

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 16, 2003 3:17 PM
To: Tomcat Users List
Subject: Re: Tomcat 5 Clustering

hmm, on your console or in your log, are the systems finding each other,
ie, do you have multicast enabled and do the nodes actually connect to
each
other?
send the logs from a clean run, ie stop, delete logs, start, send logs
Filip
- Original Message -
From: "Pitre, Russell" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 16, 2003 12:08 PM
Subject: RE: Tomcat 5 Clustering


Hi Filip-

Sorry, while being caught up in the problem statement..I forgot to
mention that I'm using Microsoft Network Load Balancing services for
load balancing and failover detectionagain my apologies

When I do pull the plugI am redirected to the working node...and
when I try getAttribute("myAttribute") on that same session (never
closed the browser) the session or session attribute  is no longer
obtainable...


Russ





-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 16, 2003 2:13 PM
To: Tomcat Users List
Subject: Re: Tomcat 5 Clustering

download a load balancer

balance.sourceforge.net or a perl balancer called "pen" (google)

the shut down one tomcat, after initial access, the system will fail
over.

pulling the network cable without any other failure has not yet been
handled
as a failure scenario

Filip

- Original Message -
From: "Pitre, Russell" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 16, 2003 10:37 AM
Subject: Tomcat 5 Clustering


Hello All:



Please excuse my ignorance, I'm trying to achieve clustering with Tomcat
5I've read the following in the Tomcat 5 documentation:


=

To run session replication in your Tomcat 5 container, the following
steps should be completed:
-->All your session attributes must implement java.io.Serializable


===



Okay. I've completed all the other steps (uncomment the 
element along with the , and added the  in
web.xml)I'm trying to code a simple object that implements
java.io.Serializable to store in a session and here it is.



package com.shawmut.session;

import java.io.Serializable;



public class SerializeSession implements Serializable {



public static String testString  = "";



public void setString(String stringValue){

this.testString = stringValue;

}

public String getString(){

return this.testString;

}

}



ok.Now I want to put this in the session.



<%

if(session.getAttribute("ss")== null){

SerializeSession ss = new SerializeSession();

ss.setString("Booo! And I created my
session on Tomcat 1 Node");

session.setAttribute("ss", ss);

}

%>









Whats going on here?.I unplug the patch cord ( docs says it's a bad
idea) from one of the boxes and hit a jsp on the working node that does
the following..and the session doesn't carry over to the working
node



<%

if(session.getAttribute("ss")!= null){

SerializeSession ss2 =
(SerializeSession)session.getAttribute("ss");

%>

SESSION:<%=ss2.getString()%>



<%

}

%>







Basically what I'm looking for is an example of serializing session
attributes as noted above Any Help here will be greatly
appreciated..





Russ









-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 Clustering

2003-12-16 Thread Filip Hanik
hmm, on your console or in your log, are the systems finding each other,
ie, do you have multicast enabled and do the nodes actually connect to each
other?
send the logs from a clean run, ie stop, delete logs, start, send logs
Filip
- Original Message -
From: "Pitre, Russell" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 16, 2003 12:08 PM
Subject: RE: Tomcat 5 Clustering


Hi Filip-

Sorry, while being caught up in the problem statement..I forgot to
mention that I'm using Microsoft Network Load Balancing services for
load balancing and failover detectionagain my apologies

When I do pull the plugI am redirected to the working node...and
when I try getAttribute("myAttribute") on that same session (never
closed the browser) the session or session attribute  is no longer
obtainable...


Russ





-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 16, 2003 2:13 PM
To: Tomcat Users List
Subject: Re: Tomcat 5 Clustering

download a load balancer

balance.sourceforge.net or a perl balancer called "pen" (google)

the shut down one tomcat, after initial access, the system will fail
over.

pulling the network cable without any other failure has not yet been
handled
as a failure scenario

Filip

- Original Message -
From: "Pitre, Russell" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 16, 2003 10:37 AM
Subject: Tomcat 5 Clustering


Hello All:



Please excuse my ignorance, I'm trying to achieve clustering with Tomcat
5I've read the following in the Tomcat 5 documentation:


=

To run session replication in your Tomcat 5 container, the following
steps should be completed:
-->All your session attributes must implement java.io.Serializable


===



Okay. I've completed all the other steps (uncomment the 
element along with the , and added the  in
web.xml)I'm trying to code a simple object that implements
java.io.Serializable to store in a session and here it is.



package com.shawmut.session;

import java.io.Serializable;



public class SerializeSession implements Serializable {



public static String testString  = "";



public void setString(String stringValue){

this.testString = stringValue;

}

public String getString(){

return this.testString;

}

}



ok.Now I want to put this in the session.



<%

if(session.getAttribute("ss")== null){

SerializeSession ss = new SerializeSession();

ss.setString("Booo! And I created my
session on Tomcat 1 Node");

session.setAttribute("ss", ss);

}

%>









Whats going on here?.I unplug the patch cord ( docs says it's a bad
idea) from one of the boxes and hit a jsp on the working node that does
the following..and the session doesn't carry over to the working
node



<%

if(session.getAttribute("ss")!= null){

SerializeSession ss2 =
(SerializeSession)session.getAttribute("ss");

%>

SESSION:<%=ss2.getString()%>



<%

}

%>







Basically what I'm looking for is an example of serializing session
attributes as noted above Any Help here will be greatly
appreciated..





Russ









-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5 Clustering

2003-12-16 Thread Pitre, Russell
Hi Filip-

Sorry, while being caught up in the problem statement..I forgot to
mention that I'm using Microsoft Network Load Balancing services for
load balancing and failover detectionagain my apologies

When I do pull the plugI am redirected to the working node...and
when I try getAttribute("myAttribute") on that same session (never
closed the browser) the session or session attribute  is no longer
obtainable...


Russ





-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 16, 2003 2:13 PM
To: Tomcat Users List
Subject: Re: Tomcat 5 Clustering

download a load balancer

balance.sourceforge.net or a perl balancer called "pen" (google)

the shut down one tomcat, after initial access, the system will fail
over.

pulling the network cable without any other failure has not yet been
handled
as a failure scenario

Filip

- Original Message -
From: "Pitre, Russell" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 16, 2003 10:37 AM
Subject: Tomcat 5 Clustering


Hello All:



Please excuse my ignorance, I'm trying to achieve clustering with Tomcat
5I've read the following in the Tomcat 5 documentation:


=

To run session replication in your Tomcat 5 container, the following
steps should be completed:
-->All your session attributes must implement java.io.Serializable


===



Okay. I've completed all the other steps (uncomment the 
element along with the , and added the  in
web.xml)I'm trying to code a simple object that implements
java.io.Serializable to store in a session and here it is.



package com.shawmut.session;

import java.io.Serializable;



public class SerializeSession implements Serializable {



public static String testString  = "";



public void setString(String stringValue){

this.testString = stringValue;

}

public String getString(){

return this.testString;

}

}



ok.Now I want to put this in the session.



<%

if(session.getAttribute("ss")== null){

SerializeSession ss = new SerializeSession();

ss.setString("Booo! And I created my
session on Tomcat 1 Node");

session.setAttribute("ss", ss);

}

%>









Whats going on here?.I unplug the patch cord ( docs says it's a bad
idea) from one of the boxes and hit a jsp on the working node that does
the following..and the session doesn't carry over to the working
node



<%

if(session.getAttribute("ss")!= null){

SerializeSession ss2 =
(SerializeSession)session.getAttribute("ss");

%>

SESSION:<%=ss2.getString()%>



<%

}

%>







Basically what I'm looking for is an example of serializing session
attributes as noted above Any Help here will be greatly
appreciated..





Russ









-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 Clustering

2003-12-16 Thread Filip Hanik
download a load balancer

balance.sourceforge.net or a perl balancer called "pen" (google)

the shut down one tomcat, after initial access, the system will fail over.

pulling the network cable without any other failure has not yet been handled
as a failure scenario

Filip

- Original Message -
From: "Pitre, Russell" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 16, 2003 10:37 AM
Subject: Tomcat 5 Clustering


Hello All:



Please excuse my ignorance, I'm trying to achieve clustering with Tomcat
5I've read the following in the Tomcat 5 documentation:


=

To run session replication in your Tomcat 5 container, the following
steps should be completed:
-->All your session attributes must implement java.io.Serializable


===



Okay. I've completed all the other steps (uncomment the 
element along with the , and added the  in
web.xml)I'm trying to code a simple object that implements
java.io.Serializable to store in a session and here it is.



package com.shawmut.session;

import java.io.Serializable;



public class SerializeSession implements Serializable {



public static String testString  = "";



public void setString(String stringValue){

this.testString = stringValue;

}

public String getString(){

return this.testString;

}

}



ok.Now I want to put this in the session.



<%

if(session.getAttribute("ss")== null){

SerializeSession ss = new SerializeSession();

ss.setString("Booo! And I created my
session on Tomcat 1 Node");

session.setAttribute("ss", ss);

}

%>









Whats going on here?.I unplug the patch cord ( docs says it's a bad
idea) from one of the boxes and hit a jsp on the working node that does
the following..and the session doesn't carry over to the working
node



<%

if(session.getAttribute("ss")!= null){

SerializeSession ss2 =
(SerializeSession)session.getAttribute("ss");

%>

SESSION:<%=ss2.getString()%>



<%

}

%>







Basically what I'm looking for is an example of serializing session
attributes as noted above Any Help here will be greatly
appreciated..





Russ









-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5 Clustering

2003-12-16 Thread Pitre, Russell
Hello All:

 

Please excuse my ignorance, I'm trying to achieve clustering with Tomcat
5I've read the following in the Tomcat 5 documentation:


=

To run session replication in your Tomcat 5 container, the following
steps should be completed:
-->All your session attributes must implement java.io.Serializable 


===

 

Okay. I've completed all the other steps (uncomment the 
element along with the , and added the  in
web.xml)I'm trying to code a simple object that implements
java.io.Serializable to store in a session and here it is.

 

package com.shawmut.session;

import java.io.Serializable;

 

public class SerializeSession implements Serializable {



public static String testString  = "";

 

public void setString(String stringValue){

this.testString = stringValue;

}

public String getString(){

return this.testString;

}

}

 

ok.Now I want to put this in the session.

 

<%

if(session.getAttribute("ss")== null){

SerializeSession ss = new SerializeSession();

ss.setString("Booo! And I created my
session on Tomcat 1 Node");

session.setAttribute("ss", ss);

}

%>

 

 

 

 

Whats going on here?.I unplug the patch cord ( docs says it's a bad
idea) from one of the boxes and hit a jsp on the working node that does
the following..and the session doesn't carry over to the working
node

 

<%

if(session.getAttribute("ss")!= null){

SerializeSession ss2 =
(SerializeSession)session.getAttribute("ss");

%>

SESSION:<%=ss2.getString()%>

 

<%

}   

%>

 

 

 

Basically what I'm looking for is an example of serializing session
attributes as noted above Any Help here will be greatly
appreciated..

 

 

Russ

 

 

 



RE: Tomcat 5 clustering

2003-10-29 Thread Asif Chowdhary
You also have to think about load balancing along with clustering. Once you have 
clustered you have to distribute the load to different tomcat instances. You can use 
Apache + mod_jk2 connector (load balancing). In the workers2.properties file you can 
define how you want to assign weights to various instances of tomcat.

You will define the application context in workers2.properties file.

Asif

-Original Message-
From: Karthik Duddala [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 11:10 AM
To: Tomcat Users List
Subject: RE: Tomcat 5 clustering







I am new to the whole clustering concept and Tomcat as such, could any of
you be kind enough to tell me how I could go about replicating data in the
application context as well as replicate session data.

Thanks much. Really appreciate all your help.



Karthik Duddala
Developer - Web Team
Commerce Technologies
Ph. 518-886-0700 x. 3881


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5 clustering

2003-10-29 Thread Karthik Duddala





I am new to the whole clustering concept and Tomcat as such, could any of
you be kind enough to tell me how I could go about replicating data in the
application context as well as replicate session data.

Thanks much. Really appreciate all your help.



Karthik Duddala
Developer - Web Team
Commerce Technologies
Ph. 518-886-0700 x. 3881


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 clustering

2003-09-10 Thread Filip Hanik
> 

this is not a requirement until Tomcat 5.

Filip

- Original Message - 
From: "David Rees" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 10, 2003 9:42 AM
Subject: Re: Tomcat 5 clustering


Filip Hanik wrote:

>  should be set in web.xml according to the latest
> servlet spec feel free to contact me with any problems you might
> have, several companies are using Tomcat 4.x replication in
> production already

Filip,

Where is the latest code for Tomcat 4.x session replication?  I would 
like to try it out on some of my test code.

I found this link:
http://www.filip.net/tomcat/tomcat-javagroups.html
Is that the latest?

Do you know what happens when you happen to upgrade the software on one 
JVM and it results in loading new classes that are stored in a sesssion? 
  Currently if you do that with Tomcat and do a context reload, the 
session is evicted, I would think the same thing would happen with 
session replication as well...

Thanks,
Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 clustering

2003-09-10 Thread Filip Hanik
I have written a simple load balancer for Java, but literally, it sucks ass,
but works for testing and demo. find it at http://cvs.apache.org/~fhanik/
link at the bottom

Filip

- Original Message -
From: "Mats Andersson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 10, 2003 7:58 AM
Subject: Re: Tomcat 5 clustering


Thank you for your answers Filip!

I have now successfully tried the cluster configuration in Tomcat5 with
a simple webapp. About the
balance product, I cannot use it because I'm on windows, but thanks
anyway. Maybe my next project
will be running on Linux.

Mats

Filip Hanik wrote:

>for software, balance.sourceforge.net is excellent
>
>for hardware, be prepared to spend some cash
>
>Filip
>
>
>
>>-Original Message-
>>From: Mats Andersson [mailto:[EMAIL PROTECTED]
>>Sent: Wednesday, September 10, 2003 1:50 AM
>>To: Tomcat Users List
>>Subject: Re: Tomcat 5 clustering
>>
>>
>>Can anyone recommend a good solution for an external loadbalancer. I
>>need it to
>>have failover (two physical servers or something) and they must listen
>>on the same
>>IP of course. Another preference is a low price. My actual question is,
>>how do you do these
>>things with Tomcat?
>>
>>Thanks in advance!
>>Mats
>>
>>Ralph Einfeldt wrote:
>>
>>
>>
>>>There are two options:
>>>- Use sticky session.
>>> In this scenario you don't need session sharing to do
>>> load balancing, but it would make the system more fail
>>> safe. (If one tomcat gets out of service, sticky sessions
>>> without session sharing loose all data from the current
>>> sessions on this server)
>>>
>>>- Use no sticky sessions.
>>> In this case session sharing is a must.
>>>
>>>You can have loadbalancing without apache and still use
>>>one domainname. Just use an external loadbalancer.
>>>
>>>
>>>
>>>
>>>
>>>>-Original Message-
>>>>From: Jan Agermose [mailto:[EMAIL PROTECTED]
>>>>Sent: Tuesday, September 09, 2003 3:50 PM
>>>>To: Tomcat Users List
>>>>Subject: Re: Tomcat 5 clustering
>>>>
>>>>
>>>>If you have apache in front of the different tomcat
>>>>instances, apache would route the same browsersession
>>>>to the same tomcatinstance on each request, or
>>>>not? This would make session sharing useless?
>>>>
>>>>
>>>>
>>>>
>>>>
>>>-
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>>
>>>
>>>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 clustering

2003-09-10 Thread Filip Hanik
http://cvs.apache.org/~fhanik/

>Currently if you do that with Tomcat and do a context reload, the
>session is evicted, I would think the same thing would happen with
>session replication as well...

with session replication, all you have to do is to shut one server down,
upgrade it, then restart it, and it will receive all the sessions from
another node.

Filip

- Original Message -
From: "David Rees" <>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 10, 2003 9:42 AM
Subject: Re: Tomcat 5 clustering


Filip Hanik wrote:

>  should be set in web.xml according to the latest
> servlet spec feel free to contact me with any problems you might
> have, several companies are using Tomcat 4.x replication in
> production already

Filip,

Where is the latest code for Tomcat 4.x session replication?  I would
like to try it out on some of my test code.

I found this link:
http://www.filip.net/tomcat/tomcat-javagroups.html
Is that the latest?

Do you know what happens when you happen to upgrade the software on one
JVM and it results in loading new classes that are stored in a sesssion?
  Currently if you do that with Tomcat and do a context reload, the
session is evicted, I would think the same thing would happen with
session replication as well...

Thanks,
Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 clustering

2003-09-10 Thread David Rees
Filip Hanik wrote:

 should be set in web.xml according to the latest
servlet spec feel free to contact me with any problems you might
have, several companies are using Tomcat 4.x replication in
production already
Filip,

Where is the latest code for Tomcat 4.x session replication?  I would 
like to try it out on some of my test code.

I found this link:
http://www.filip.net/tomcat/tomcat-javagroups.html
Is that the latest?
Do you know what happens when you happen to upgrade the software on one 
JVM and it results in loading new classes that are stored in a sesssion? 
 Currently if you do that with Tomcat and do a context reload, the 
session is evicted, I would think the same thing would happen with 
session replication as well...

Thanks,
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 clustering

2003-09-10 Thread David Rees
Mats Andersson wrote:

Can anyone recommend a good solution for an external loadbalancer. I
 need it to have failover (two physical servers or something) and
they must listen on the same IP of course. Another preference is a
low price. My actual question is, how do you do these things with
Tomcat?
You can always use Apache with mod_jk.  That seems to work pretty well.

-Dave

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 clustering

2003-09-10 Thread Mats Andersson
Thank you for your answers Filip!

I have now successfully tried the cluster configuration in Tomcat5 with 
a simple webapp. About the
balance product, I cannot use it because I'm on windows, but thanks 
anyway. Maybe my next project
will be running on Linux.

Mats

Filip Hanik wrote:

for software, balance.sourceforge.net is excellent

for hardware, be prepared to spend some cash

Filip

 

-Original Message-
From: Mats Andersson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 1:50 AM
To: Tomcat Users List
Subject: Re: Tomcat 5 clustering
Can anyone recommend a good solution for an external loadbalancer. I 
need it to
have failover (two physical servers or something) and they must listen 
on the same
IP of course. Another preference is a low price. My actual question is, 
how do you do these
things with Tomcat?

Thanks in advance!
Mats
Ralph Einfeldt wrote:

   

There are two options:
- Use sticky session.
In this scenario you don't need session sharing to do 
load balancing, but it would make the system more fail 
safe. (If one tomcat gets out of service, sticky sessions 
without session sharing loose all data from the current 
sessions on this server)

- Use no sticky sessions.
In this case session sharing is a must.
You can have loadbalancing without apache and still use 
one domainname. Just use an external loadbalancer.



 

-Original Message-
From: Jan Agermose [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 3:50 PM
To: Tomcat Users List
Subject: Re: Tomcat 5 clustering
If you have apache in front of the different tomcat 
instances, apache would route the same browsersession 
to the same tomcatinstance on each request, or
not? This would make session sharing useless?

  

   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: Tomcat 5 clustering

2003-09-10 Thread Remy Maucherat
Filip Hanik wrote:

for software, balance.sourceforge.net is excellent
There are no docs at all, but I was wondering about that project. Does 
it do session affinity ?
Can you give more details since you've been using it ?

--
x
Rémy Maucherat
Senior Developer & Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat 5 clustering

2003-09-10 Thread Filip Hanik
for software, balance.sourceforge.net is excellent

for hardware, be prepared to spend some cash

Filip

> -Original Message-
> From: Mats Andersson [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 10, 2003 1:50 AM
> To: Tomcat Users List
> Subject: Re: Tomcat 5 clustering
> 
> 
> Can anyone recommend a good solution for an external loadbalancer. I 
> need it to
> have failover (two physical servers or something) and they must listen 
> on the same
> IP of course. Another preference is a low price. My actual question is, 
> how do you do these
> things with Tomcat?
> 
> Thanks in advance!
> Mats
> 
> Ralph Einfeldt wrote:
> 
> >There are two options:
> >- Use sticky session.
> >  In this scenario you don't need session sharing to do 
> >  load balancing, but it would make the system more fail 
> >  safe. (If one tomcat gets out of service, sticky sessions 
> >  without session sharing loose all data from the current 
> >  sessions on this server)
> >
> >- Use no sticky sessions.
> >  In this case session sharing is a must.
> >
> >You can have loadbalancing without apache and still use 
> >one domainname. Just use an external loadbalancer.
> >
> >  
> >
> >>-----Original Message-
> >>From: Jan Agermose [mailto:[EMAIL PROTECTED]
> >>Sent: Tuesday, September 09, 2003 3:50 PM
> >>To: Tomcat Users List
> >>Subject: Re: Tomcat 5 clustering
> >>
> >>
> >>If you have apache in front of the different tomcat 
> >>instances, apache would route the same browsersession 
> >>to the same tomcatinstance on each request, or
> >>not? This would make session sharing useless?
> >>
> >>
> >>
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >  
> >
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 clustering

2003-09-10 Thread Mats Andersson
Can anyone recommend a good solution for an external loadbalancer. I 
need it to
have failover (two physical servers or something) and they must listen 
on the same
IP of course. Another preference is a low price. My actual question is, 
how do you do these
things with Tomcat?

Thanks in advance!
Mats
Ralph Einfeldt wrote:

There are two options:
- Use sticky session.
 In this scenario you don't need session sharing to do 
 load balancing, but it would make the system more fail 
 safe. (If one tomcat gets out of service, sticky sessions 
 without session sharing loose all data from the current 
 sessions on this server)

- Use no sticky sessions.
 In this case session sharing is a must.
You can have loadbalancing without apache and still use 
one domainname. Just use an external loadbalancer.

 

-Original Message-
From: Jan Agermose [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 3:50 PM
To: Tomcat Users List
Subject: Re: Tomcat 5 clustering
If you have apache in front of the different tomcat 
instances, apache would route the same browsersession 
to the same tomcatinstance on each request, or
not? This would make session sharing useless?

   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



RE: Tomcat 5 clustering

2003-09-10 Thread Ralph Einfeldt
There are two options:
- Use sticky session.
  In this scenario you don't need session sharing to do 
  load balancing, but it would make the system more fail 
  safe. (If one tomcat gets out of service, sticky sessions 
  without session sharing loose all data from the current 
  sessions on this server)

- Use no sticky sessions.
  In this case session sharing is a must.

You can have loadbalancing without apache and still use 
one domainname. Just use an external loadbalancer.

> -Original Message-
> From: Jan Agermose [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 09, 2003 3:50 PM
> To: Tomcat Users List
> Subject: Re: Tomcat 5 clustering
> 
> 
> If you have apache in front of the different tomcat 
> instances, apache would route the same browsersession 
> to the same tomcatinstance on each request, or
> not? This would make session sharing useless?
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5 clustering

2003-09-09 Thread Filip Hanik
can't answer for how the "stickyness" works in mod_jk, but there are some
docs on it

Filip

> -Original Message-
> From: Jan Agermose [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 09, 2003 11:10 AM
> To: Tomcat Users List
> Subject: Re: Tomcat 5 clustering
>
>
> well yes, thats a point :-) apache will forward a session to a new host if
> the host that first "owned" the session (in a sticky sense) fails? Will
> apache be aware of a tomcat instance getting back online and start reusing
> it for requests? Of cause, I guess... I will have to start looking into
> this - and using it :-)
>
> Jan
>
>
> - Original Message -
> From: "Filip Hanik" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, September 09, 2003 8:01 PM
> Subject: RE: Tomcat 5 clustering
>
>
> > yeah, clustering (session replication) will only gain you fail over and
> high
> > availability, not performance
> >
> > Filip
> >
> > > -Original Message-
> > > From: Jan Agermose [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, September 09, 2003 10:26 AM
> > > To: Tomcat Users List
> > > Subject: Re: Tomcat 5 clustering
> > >
> > >
> > > well I cannot really say I have a problem.. I'm not using clustering -
> yet
> > > :-)
> > >
> > > But I am somewhat interested in the performance of this... What I mean
> is,
> > > if You have sticky session You do not really cain anythink from
> > > ditributing
> > > the session, now do you? That looks like a performance hit
> for nothing?
> > >
> > > And since im not that big a fan of using something like www1, www2 and
> so
> > > on... Am I out of options? How can I take advantage of this???
> > >
> > > I guess my problem is I need some insigt on how to supercharge my
> > > applications :-)
> > >
> > > jan
> > >
> > >
> > > - Original Message -
> > > From: "Filip Hanik" <[EMAIL PROTECTED]>
> > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > Sent: Tuesday, September 09, 2003 6:12 PM
> > > Subject: RE: Tomcat 5 clustering
> > >
> > >
> > > > not sure what your problem is Jan,
> > > > the clustering code is all-to-all node replication, so whether you
> have
> > > > sticky sessions or round robin loadbalancing, it will work
> > > >
> > > > Filip
> > > >
> > > > > -Original Message-
> > > > > From: Jan Agermose [mailto:[EMAIL PROTECTED]
> > > > > Sent: Tuesday, September 09, 2003 6:50 AM
> > > > > To: Tomcat Users List
> > > > > Subject: Re: Tomcat 5 clustering
> > > > >
> > > > >
> > > > > ok but how would you use it...
> > > > >
> > > > > If you have apache in front of the different tomcat instances,
> > > > > apache would
> > > > > route the same browsersession to the same tomcatinstance on each
> > > > > request, or
> > > > > not? This would make session sharing useless?
> > > > >
> > > > > And if there's no webserver in front you need different
> domainnames -
> > > lige
> > > > > www, www1, www2 ??? or?? different domainnames suck :-D
> > > > >
> > > > > Jan
> > > > >
> > > > >
> > > > >
> > > > > - Original Message -
> > > > > From: <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Tuesday, September 09, 2003 3:36 PM
> > > > > Subject: Re: Tomcat 5 clustering
> > > > >
> > > > >
> > > > > > > Jan Agermose wrote:
> > > > > > >
> > > > > > >> I'm not using version 5 but was looking for
> information on what
> > > > > > >> clustering capabilities that where build into tomcat
> 5 - but I
> > > cannot
> > > > > > >> find anything on the webpage... looking in the wrong
> places :-)
> > > > > > >>
> > > > > > >> Could you offer any links? Is it simply a distributed session
> > > > > > >> implementation or?!
> > > &g

Re: Tomcat 5 clustering

2003-09-09 Thread Jan Agermose
well yes, thats a point :-) apache will forward a session to a new host if
the host that first "owned" the session (in a sticky sense) fails? Will
apache be aware of a tomcat instance getting back online and start reusing
it for requests? Of cause, I guess... I will have to start looking into
this - and using it :-)

Jan


- Original Message - 
From: "Filip Hanik" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 09, 2003 8:01 PM
Subject: RE: Tomcat 5 clustering


> yeah, clustering (session replication) will only gain you fail over and
high
> availability, not performance
>
> Filip
>
> > -Original Message-
> > From: Jan Agermose [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, September 09, 2003 10:26 AM
> > To: Tomcat Users List
> > Subject: Re: Tomcat 5 clustering
> >
> >
> > well I cannot really say I have a problem.. I'm not using clustering -
yet
> > :-)
> >
> > But I am somewhat interested in the performance of this... What I mean
is,
> > if You have sticky session You do not really cain anythink from
> > ditributing
> > the session, now do you? That looks like a performance hit for nothing?
> >
> > And since im not that big a fan of using something like www1, www2 and
so
> > on... Am I out of options? How can I take advantage of this???
> >
> > I guess my problem is I need some insigt on how to supercharge my
> > applications :-)
> >
> > jan
> >
> >
> > - Original Message -
> > From: "Filip Hanik" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, September 09, 2003 6:12 PM
> > Subject: RE: Tomcat 5 clustering
> >
> >
> > > not sure what your problem is Jan,
> > > the clustering code is all-to-all node replication, so whether you
have
> > > sticky sessions or round robin loadbalancing, it will work
> > >
> > > Filip
> > >
> > > > -Original Message-
> > > > From: Jan Agermose [mailto:[EMAIL PROTECTED]
> > > > Sent: Tuesday, September 09, 2003 6:50 AM
> > > > To: Tomcat Users List
> > > > Subject: Re: Tomcat 5 clustering
> > > >
> > > >
> > > > ok but how would you use it...
> > > >
> > > > If you have apache in front of the different tomcat instances,
> > > > apache would
> > > > route the same browsersession to the same tomcatinstance on each
> > > > request, or
> > > > not? This would make session sharing useless?
> > > >
> > > > And if there's no webserver in front you need different
domainnames -
> > lige
> > > > www, www1, www2 ??? or?? different domainnames suck :-D
> > > >
> > > > Jan
> > > >
> > > >
> > > >
> > > > - Original Message -
> > > > From: <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, September 09, 2003 3:36 PM
> > > > Subject: Re: Tomcat 5 clustering
> > > >
> > > >
> > > > > > Jan Agermose wrote:
> > > > > >
> > > > > >> I'm not using version 5 but was looking for information on what
> > > > > >> clustering capabilities that where build into tomcat 5 - but I
> > cannot
> > > > > >> find anything on the webpage... looking in the wrong places :-)
> > > > > >>
> > > > > >> Could you offer any links? Is it simply a distributed session
> > > > > >> implementation or?!
> > > > > >
> > > > > > I don't know much about it. Basically, it's a simple
> > multicast based
> > > > > > session replication implementation, written by Filip
> > Hanik (you may
> > > > > > remember his TC 4 clustering article). There are indeed no docs
> > about
> > > > > > that at the moment.
> > > > > >
> > > > > Remy is right... (of course :) )
> > > > > Tomcat 4.1 backport consists of a single patch as a jar file,
> > > > it uses the
> > > > > universal good library for replication (the same as Jboss
> > uses for EJB
> > > > > clustering)..Works well but requires a little knowledge of
> > > > networking (UDP
> > > > > & 

RE: Tomcat 5 clustering

2003-09-09 Thread Filip Hanik
yeah, clustering (session replication) will only gain you fail over and high
availability, not performance

Filip

> -Original Message-
> From: Jan Agermose [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 09, 2003 10:26 AM
> To: Tomcat Users List
> Subject: Re: Tomcat 5 clustering
>
>
> well I cannot really say I have a problem.. I'm not using clustering - yet
> :-)
>
> But I am somewhat interested in the performance of this... What I mean is,
> if You have sticky session You do not really cain anythink from
> ditributing
> the session, now do you? That looks like a performance hit for nothing?
>
> And since im not that big a fan of using something like www1, www2 and so
> on... Am I out of options? How can I take advantage of this???
>
> I guess my problem is I need some insigt on how to supercharge my
> applications :-)
>
> jan
>
>
> - Original Message -
> From: "Filip Hanik" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, September 09, 2003 6:12 PM
> Subject: RE: Tomcat 5 clustering
>
>
> > not sure what your problem is Jan,
> > the clustering code is all-to-all node replication, so whether you have
> > sticky sessions or round robin loadbalancing, it will work
> >
> > Filip
> >
> > > -Original Message-
> > > From: Jan Agermose [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, September 09, 2003 6:50 AM
> > > To: Tomcat Users List
> > > Subject: Re: Tomcat 5 clustering
> > >
> > >
> > > ok but how would you use it...
> > >
> > > If you have apache in front of the different tomcat instances,
> > > apache would
> > > route the same browsersession to the same tomcatinstance on each
> > > request, or
> > > not? This would make session sharing useless?
> > >
> > > And if there's no webserver in front you need different domainnames -
> lige
> > > www, www1, www2 ??? or?? different domainnames suck :-D
> > >
> > > Jan
> > >
> > >
> > >
> > > - Original Message -
> > > From: <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, September 09, 2003 3:36 PM
> > > Subject: Re: Tomcat 5 clustering
> > >
> > >
> > > > > Jan Agermose wrote:
> > > > >
> > > > >> I'm not using version 5 but was looking for information on what
> > > > >> clustering capabilities that where build into tomcat 5 - but I
> cannot
> > > > >> find anything on the webpage... looking in the wrong places :-)
> > > > >>
> > > > >> Could you offer any links? Is it simply a distributed session
> > > > >> implementation or?!
> > > > >
> > > > > I don't know much about it. Basically, it's a simple
> multicast based
> > > > > session replication implementation, written by Filip
> Hanik (you may
> > > > > remember his TC 4 clustering article). There are indeed no docs
> about
> > > > > that at the moment.
> > > > >
> > > > Remy is right... (of course :) )
> > > > Tomcat 4.1 backport consists of a single patch as a jar file,
> > > it uses the
> > > > universal good library for replication (the same as Jboss
> uses for EJB
> > > > clustering)..Works well but requires a little knowledge of
> > > networking (UDP
> > > > & so on)...
> > > > > For more complete clustering, there's JB, of course :)
> > > > :)
> > > >
> > > >
> > > >
> > > >
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 clustering

2003-09-09 Thread Jan Agermose
well I cannot really say I have a problem.. I'm not using clustering - yet
:-)

But I am somewhat interested in the performance of this... What I mean is,
if You have sticky session You do not really cain anythink from ditributing
the session, now do you? That looks like a performance hit for nothing?

And since im not that big a fan of using something like www1, www2 and so
on... Am I out of options? How can I take advantage of this???

I guess my problem is I need some insigt on how to supercharge my
applications :-)

jan


- Original Message - 
From: "Filip Hanik" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 09, 2003 6:12 PM
Subject: RE: Tomcat 5 clustering


> not sure what your problem is Jan,
> the clustering code is all-to-all node replication, so whether you have
> sticky sessions or round robin loadbalancing, it will work
>
> Filip
>
> > -Original Message-
> > From: Jan Agermose [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, September 09, 2003 6:50 AM
> > To: Tomcat Users List
> > Subject: Re: Tomcat 5 clustering
> >
> >
> > ok but how would you use it...
> >
> > If you have apache in front of the different tomcat instances,
> > apache would
> > route the same browsersession to the same tomcatinstance on each
> > request, or
> > not? This would make session sharing useless?
> >
> > And if there's no webserver in front you need different domainnames -
lige
> > www, www1, www2 ??? or?? different domainnames suck :-D
> >
> > Jan
> >
> >
> >
> > - Original Message -
> > From: <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, September 09, 2003 3:36 PM
> > Subject: Re: Tomcat 5 clustering
> >
> >
> > > > Jan Agermose wrote:
> > > >
> > > >> I'm not using version 5 but was looking for information on what
> > > >> clustering capabilities that where build into tomcat 5 - but I
cannot
> > > >> find anything on the webpage... looking in the wrong places :-)
> > > >>
> > > >> Could you offer any links? Is it simply a distributed session
> > > >> implementation or?!
> > > >
> > > > I don't know much about it. Basically, it's a simple multicast based
> > > > session replication implementation, written by Filip Hanik (you may
> > > > remember his TC 4 clustering article). There are indeed no docs
about
> > > > that at the moment.
> > > >
> > > Remy is right... (of course :) )
> > > Tomcat 4.1 backport consists of a single patch as a jar file,
> > it uses the
> > > universal good library for replication (the same as Jboss uses for EJB
> > > clustering)..Works well but requires a little knowledge of
> > networking (UDP
> > > & so on)...
> > > > For more complete clustering, there's JB, of course :)
> > > :)
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 clustering

2003-09-09 Thread Susie Cody
please take me off this list.

- Original Message -
From: "Filip Hanik" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 09, 2003 11:10 AM
Subject: RE: Tomcat 5 clustering


>  should be set in web.xml according to the latest servlet
> spec
> feel free to contact me with any problems you might have, several
companies
> are using Tomcat 4.x replication in production already
>
> Filip
>
> > -Original Message-
> > From: Jan Agermose [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, September 09, 2003 6:05 AM
> > To: Tomcat Users List
> > Subject: Re: Tomcat 5 clustering
> >
> >
> > I'm not using version 5 but was looking for information on what
clustering
> > capabilities that where build into tomcat 5 - but I cannot find
> > anything on
> > the webpage... looking in the wrong places :-)
> >
> > Could you offer any links? Is it simply a distributed session
> > implementation
> > or?!
> >
> >
> >
> >
> > - Original Message -
> > From: "Remy Maucherat" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, September 09, 2003 2:55 PM
> > Subject: Re: Tomcat 5 clustering
> >
> >
> > > Cendil wrote:
> > >
> > > > Setting distributable="true" on the Context element in server.xml
> > > > didn't work, but I noticed I had missed out the distributable
element
> > > > in the web.xml. Added is, and all works fine.
> > >
> > > Sorry, the code had changed since last time I did anything for that
> > > feature (maybe 6 months ago). Anyway, it would be interesting to hear
if
> > > this feature works well enough in the real world.
> > >
> > > --
> > > x
> > > Rémy Maucherat
> > > Senior Developer & Consultant
> > > JBoss Group (Europe) SàRL
> > > x
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5 clustering

2003-09-09 Thread Filip Hanik
web.xml must contain  according to spec

Filip

> -Original Message-
> From: Cendil [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 09, 2003 2:26 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 5 clustering
>
>
> I am trying to get clustering working with Tomcat 5.0.9 and am
> finding a few problems.
>
> I have uncommented the cluster section and the recommended valve to filter
> requests for static content, so the cluster section in the host
> section of server.xml looks like this:
>
>name="TestCluster"
>   debug="10"
>
> serviceclass="org.apache.catalina.cluster.mcast.McastService"
>   mcastAddr="228.0.0.4"
>   mcastPort="45564"
>   mcastFrequency="500"
>   mcastDropTime="3000"
>   tcpThreadCount="2"
>   tcpListenAddress="auto"
>   tcpListenPort="4001"
>   tcpSelectorTimeout="100"
>   printToScreen="false"
>   expireSessionsOnShutdown="false"
>   useDirtyFlag="true"
>   replicationMode="synchronous"
> />
>
> And I have changed the listen port in the second member to be
> 4002. On start-up,
> the following INFOs appear in catalina.out:
>
> [InMemoryReplicationManager] Starting clustering manager...:/reptest
> [InMemoryReplicationManager] Starting... no cluster associated with this
> context:/reptest
>
> I am testing using the SessionExample servlet that ships with tomcat. Both
> members join the cluster and data is replicated. However, when
> data is received, the following WARNING is logged in the
> receiving cluster member
> and the session is not replicated properly:
>
> org.apache.catalina.cluster.tcp.SimpleTcpCluster messageDataReceived
> WARNING: Context manager doesn't exist:/reptest
>
> Any ideas on how to solve this?
>
> Regards,
> Cendil
>
>
> -
> Sign up for ICQmail at http://www.icq.com/icqmail/signup.html
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5 clustering

2003-09-09 Thread Filip Hanik
not sure what your problem is Jan,
the clustering code is all-to-all node replication, so whether you have
sticky sessions or round robin loadbalancing, it will work

Filip

> -Original Message-
> From: Jan Agermose [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 09, 2003 6:50 AM
> To: Tomcat Users List
> Subject: Re: Tomcat 5 clustering
>
>
> ok but how would you use it...
>
> If you have apache in front of the different tomcat instances,
> apache would
> route the same browsersession to the same tomcatinstance on each
> request, or
> not? This would make session sharing useless?
>
> And if there's no webserver in front you need different domainnames - lige
> www, www1, www2 ??? or?? different domainnames suck :-D
>
> Jan
>
>
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, September 09, 2003 3:36 PM
> Subject: Re: Tomcat 5 clustering
>
>
> > > Jan Agermose wrote:
> > >
> > >> I'm not using version 5 but was looking for information on what
> > >> clustering capabilities that where build into tomcat 5 - but I cannot
> > >> find anything on the webpage... looking in the wrong places :-)
> > >>
> > >> Could you offer any links? Is it simply a distributed session
> > >> implementation or?!
> > >
> > > I don't know much about it. Basically, it's a simple multicast based
> > > session replication implementation, written by Filip Hanik (you may
> > > remember his TC 4 clustering article). There are indeed no docs about
> > > that at the moment.
> > >
> > Remy is right... (of course :) )
> > Tomcat 4.1 backport consists of a single patch as a jar file,
> it uses the
> > universal good library for replication (the same as Jboss uses for EJB
> > clustering)..Works well but requires a little knowledge of
> networking (UDP
> > & so on)...
> > > For more complete clustering, there's JB, of course :)
> > :)
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5 clustering

2003-09-09 Thread Filip Hanik
 should be set in web.xml according to the latest servlet
spec
feel free to contact me with any problems you might have, several companies
are using Tomcat 4.x replication in production already

Filip

> -Original Message-
> From: Jan Agermose [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 09, 2003 6:05 AM
> To: Tomcat Users List
> Subject: Re: Tomcat 5 clustering
>
>
> I'm not using version 5 but was looking for information on what clustering
> capabilities that where build into tomcat 5 - but I cannot find
> anything on
> the webpage... looking in the wrong places :-)
>
> Could you offer any links? Is it simply a distributed session
> implementation
> or?!
>
>
>
>
> - Original Message -
> From: "Remy Maucherat" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, September 09, 2003 2:55 PM
> Subject: Re: Tomcat 5 clustering
>
>
> > Cendil wrote:
> >
> > > Setting distributable="true" on the Context element in server.xml
> > > didn't work, but I noticed I had missed out the distributable element
> > > in the web.xml. Added is, and all works fine.
> >
> > Sorry, the code had changed since last time I did anything for that
> > feature (maybe 6 months ago). Anyway, it would be interesting to hear if
> > this feature works well enough in the real world.
> >
> > --
> > x
> > Rémy Maucherat
> > Senior Developer & Consultant
> > JBoss Group (Europe) SàRL
> > x
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 clustering

2003-09-09 Thread Jan Agermose
ok but how would you use it...

If you have apache in front of the different tomcat instances, apache would
route the same browsersession to the same tomcatinstance on each request, or
not? This would make session sharing useless?

And if there's no webserver in front you need different domainnames - lige
www, www1, www2 ??? or?? different domainnames suck :-D

Jan



- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 09, 2003 3:36 PM
Subject: Re: Tomcat 5 clustering


> > Jan Agermose wrote:
> >
> >> I'm not using version 5 but was looking for information on what
> >> clustering capabilities that where build into tomcat 5 - but I cannot
> >> find anything on the webpage... looking in the wrong places :-)
> >>
> >> Could you offer any links? Is it simply a distributed session
> >> implementation or?!
> >
> > I don't know much about it. Basically, it's a simple multicast based
> > session replication implementation, written by Filip Hanik (you may
> > remember his TC 4 clustering article). There are indeed no docs about
> > that at the moment.
> >
> Remy is right... (of course :) )
> Tomcat 4.1 backport consists of a single patch as a jar file, it uses the
> universal good library for replication (the same as Jboss uses for EJB
> clustering)..Works well but requires a little knowledge of networking (UDP
> & so on)...
> > For more complete clustering, there's JB, of course :)
> :)
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 clustering

2003-09-09 Thread jmoliere
> Jan Agermose wrote:
>
>> I'm not using version 5 but was looking for information on what
>> clustering capabilities that where build into tomcat 5 - but I cannot
>> find anything on the webpage... looking in the wrong places :-)
>>
>> Could you offer any links? Is it simply a distributed session
>> implementation or?!
>
> I don't know much about it. Basically, it's a simple multicast based
> session replication implementation, written by Filip Hanik (you may
> remember his TC 4 clustering article). There are indeed no docs about
> that at the moment.
>
Remy is right... (of course :) )
Tomcat 4.1 backport consists of a single patch as a jar file, it uses the
universal good library for replication (the same as Jboss uses for EJB
clustering)..Works well but requires a little knowledge of networking (UDP
& so on)...
> For more complete clustering, there's JB, of course :)
:)



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 clustering

2003-09-09 Thread Remy Maucherat
Jan Agermose wrote:

I'm not using version 5 but was looking for information on what clustering
capabilities that where build into tomcat 5 - but I cannot find anything on
the webpage... looking in the wrong places :-)
Could you offer any links? Is it simply a distributed session implementation
or?!
I don't know much about it. Basically, it's a simple multicast based 
session replication implementation, written by Filip Hanik (you may 
remember his TC 4 clustering article). There are indeed no docs about 
that at the moment.

For more complete clustering, there's JB, of course :)

--
x
Rémy Maucherat
Senior Developer & Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 clustering

2003-09-09 Thread Jan Agermose
I'm not using version 5 but was looking for information on what clustering
capabilities that where build into tomcat 5 - but I cannot find anything on
the webpage... looking in the wrong places :-)

Could you offer any links? Is it simply a distributed session implementation
or?!




- Original Message - 
From: "Remy Maucherat" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 09, 2003 2:55 PM
Subject: Re: Tomcat 5 clustering


> Cendil wrote:
>
> > Setting distributable="true" on the Context element in server.xml
> > didn't work, but I noticed I had missed out the distributable element
> > in the web.xml. Added is, and all works fine.
>
> Sorry, the code had changed since last time I did anything for that
> feature (maybe 6 months ago). Anyway, it would be interesting to hear if
> this feature works well enough in the real world.
>
> -- 
> x
> Rémy Maucherat
> Senior Developer & Consultant
> JBoss Group (Europe) SàRL
> x
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 clustering

2003-09-09 Thread Remy Maucherat
Cendil wrote:

Setting distributable="true" on the Context element in server.xml
didn't work, but I noticed I had missed out the distributable element
in the web.xml. Added is, and all works fine.
Sorry, the code had changed since last time I did anything for that 
feature (maybe 6 months ago). Anyway, it would be interesting to hear if 
this feature works well enough in the real world.

--
x
Rémy Maucherat
Senior Developer & Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 clustering

2003-09-09 Thread Cendil
Setting distributable="true" on the Context element in server.xml
didn't work, but I noticed I had missed out the distributable element
in the web.xml. Added is, and all works fine.

Thanks,
Cendil

On Tue, 09 Sep 2003 13:29:05 +0200, Remy Maucherat wrote:

> 
> This is mostly a cosmetic issue. You should set distributable="true" on 
> your Context elements.
> This should be cleaner, and will be improved in future releases.



-
Sign up for ICQmail at http://www.icq.com/icqmail/signup.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5 clustering

2003-09-09 Thread Cendil
I am trying to get clustering working with Tomcat 5 and am finding a few problems.

I have uncommented the cluster section and the recommended valve to filter requests 
for static content, so the cluster section in the host
section of server.xml looks like this:



And I have changed the listen port in the second member to be 4002. On start-up, the 
following INFOs appear in catalina.out:

[InMemoryReplicationManager] Starting clustering manager...:/reptest
[InMemoryReplicationManager] Starting... no cluster associated with this 
context:/reptest

I am testing using the SessionExample servlet that ships with tomcat. Both members 
join the cluster and data is replicated. However, when
data is received, the following WARNING is logged in the receiving cluster member and 
the session is not replicated properly:

org.apache.catalina.cluster.tcp.SimpleTcpCluster messageDataReceived
WARNING: Context manager doesn't exist:/reptest

Any ideas on how to solve this?

Regards,
Cendil



-
Sign up for ICQmail at http://www.icq.com/icqmail/signup.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5 clustering

2003-09-09 Thread Remy Maucherat
Cendil wrote:
I am trying to get clustering working with Tomcat 5.0.9 and am finding a few problems.

I have uncommented the cluster section and the recommended valve to filter
requests for static content, so the cluster section in the host
section of server.xml looks like this:

And I have changed the listen port in the second member to be 4002. On start-up,
the following INFOs appear in catalina.out:
[InMemoryReplicationManager] Starting clustering manager...:/reptest
[InMemoryReplicationManager] Starting... no cluster associated with this
context:/reptest
I am testing using the SessionExample servlet that ships with tomcat. Both
members join the cluster and data is replicated. However, when
data is received, the following WARNING is logged in the receiving cluster member
and the session is not replicated properly:
org.apache.catalina.cluster.tcp.SimpleTcpCluster messageDataReceived
WARNING: Context manager doesn't exist:/reptest
Any ideas on how to solve this?
This is mostly a cosmetic issue. You should set distributable="true" on 
your Context elements.
This should be cleaner, and will be improved in future releases.

BTW, that clustering support is brand new code, and hasn't been tested 
well. You can report bugs as usual (use the Catalina:Cluster category).

--
x
Rémy Maucherat
Senior Developer & Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat 5 clustering

2003-09-09 Thread Cendil
I am trying to get clustering working with Tomcat 5.0.9 and am finding a few problems.

I have uncommented the cluster section and the recommended valve to filter
requests for static content, so the cluster section in the host
section of server.xml looks like this:



And I have changed the listen port in the second member to be 4002. On start-up,
the following INFOs appear in catalina.out:

[InMemoryReplicationManager] Starting clustering manager...:/reptest
[InMemoryReplicationManager] Starting... no cluster associated with this
context:/reptest

I am testing using the SessionExample servlet that ships with tomcat. Both
members join the cluster and data is replicated. However, when
data is received, the following WARNING is logged in the receiving cluster member
and the session is not replicated properly:

org.apache.catalina.cluster.tcp.SimpleTcpCluster messageDataReceived
WARNING: Context manager doesn't exist:/reptest

Any ideas on how to solve this?

Regards,
Cendil



-
Sign up for ICQmail at http://www.icq.com/icqmail/signup.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]