Re: RES: Problems with gzip compression with Apache/Tomcat cluster and Firefox

2005-09-22 Thread Tim Funk
You need mod_gzip or mod_deflate(?) if your using apache in front of tomcat 
(via jk)


-Tim

Acácio Furtado Costa wrote:

Hi

We're having problems to configure gzip using TC559/Apache Cluster...

We moved the compression=on and others gzip declarations from connector 80 to 8009 
in all Tomcat Servers but it seems that Apache isn't serving gzipped html...

Do we also need to make any gzip configurations (mod_gzip?) in the Apache Server itself? 



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



RES: Problems with gzip compression with Apache/Tomcat cluster and Firefox

2005-09-21 Thread Acácio Furtado Costa
Hi

We're having problems to configure gzip using TC559/Apache Cluster...

We moved the compression=on and others gzip declarations from connector 80 
to 8009 in all Tomcat Servers but it seems that Apache isn't serving 
gzipped html...

Do we also need to make any gzip configurations (mod_gzip?) in the Apache 
Server itself? 

Thanks in advance!

Acacio Furtado Costa
Pesquisa e Tecnologia

GIA - Magnesita S/A
((0xx31) 3368-1349
*  [EMAIL PROTECTED]


-Mensagem original-
De: B.J. Guillot [mailto:[EMAIL PROTECTED] 
Enviada em: sexta-feira, 20 de maio de 2005 13:15
Para: tomcat-user@jakarta.apache.org
Assunto: Problems with gzip compression with Apache/Tomcat cluster and Firefox

We have recently been experimenting with enabling gzip/deflate compression via 
our Apache/Tomcat cluster, but have encountered some problems with the way the 
compression works with the Firebox browser.

 

When Firefox brings up a compressed page for the first time, it looks fine.
If they reload a static html page, bizarre things start to happen.  In some 
cases, garbage just gets displayed on screen (looks like the actual gzip 
encoded stream), and other times Firefox displays a dialog box asking if you 
want to download the html files.  When IE is used, it works fine.

 

Some background: Running two-node Tomcat 5.5.4 cluster using JK2 2.0.4 protocol 
to communicate back to Apache2 2.0.52 for load balancing.  Browsers tried were 
Firefox 1.0.3 and Internet Explorer 6.0.

 

If I use Tomcat's gzip compression alone with Firefox, it works fine.  It's 
only when we through in Apache and JK2 into the mix with the cluster that 
Firefox displays charged.  It seems to be an issue related to the way that 
compressed pages get cached.

 

I'm not sure if the problem lies with Tomcat, Apache, JK2, or Firefox itself.  
Can anyone provide some pointers?  Thanks.

 

Regards,

B.J. Guillot

 


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



Re: Fault Tolerance in Tomcat Cluster

2005-08-14 Thread Peter Rossbach
This is information is wrong, tomcat =5.0.19 and 5.5 have a cluster 
implementation with

fail over mechanism when use mod_jk or other loadbalancer modules.

Peter

samuel cheung schrieb:


Hi,


From this article

http://www.onjava.com/pub/a/onjava/2004/03/31/clustering.html?page=2,
it said Tomcat 5 does not provide a built-in fail over mechanism to
detect when a cluster member crashes.

Can someone tell me if Tomcat 5.5 provides fail over detection in
tomcat cluster?

Thank you.
Sam

-
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]



Fault Tolerance in Tomcat Cluster

2005-08-10 Thread samuel cheung
Hi,

From this article
http://www.onjava.com/pub/a/onjava/2004/03/31/clustering.html?page=2,
 it said Tomcat 5 does not provide a built-in fail over mechanism to
detect when a cluster member crashes.

Can someone tell me if Tomcat 5.5 provides fail over detection in
tomcat cluster?

Thank you.
Sam

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




[OT] RE: DNS Request distribution and TCP NAT distribution For Tomcat Cluster

2005-05-26 Thread Peter Crowther
[Marked off-topic as this now has nothing to do with Tomcat.]

 From: Steve Kirk [mailto:[EMAIL PROTECTED] 
 Can I ask how sure you felt of what you
 say here please:

Uhhh... how about 'the little pixies told me, and I believe everything
they say'? :-)  It's from a combination of knowing two folks who used to
run an ISP's DNS services to get details of the timeouts, plus a little
bit of digging into the format of SOA and A records.  In other words:
it's my opinion, do not take it as canon!  I'll try to explain my
reasoning below.

 I tried to research it
 but could not get to the bottom of it with any real info from 
 ISPs (the
 problem is that they seem to do their own thing to various 
 extents).

That is *exactly* the problem.  In essence, one cannot rely on some
aspects of the DNS specification in the real world, as real-world ISPs
hack with their software to improve performance for their environment in
ways that break the spec.  An example: I've taken cache expiry times on
a zone down to 5 minutes, several days before I knew I needed to move a
service to a new IP address; changed the DNS; and sure enough, some ISPs
were still handing out the old address 20 hours later because they
weren't respecting the stated expiry times and were substituting their
own, and the old service was still getting hits.

 I have set up roundrobin DNS for an ecommerce site in the 
 past without any
 complaints from users, and the  balance of load between a 
 pair of clustered servers seemed pretty even.

Good to know that it can work in the real world.  I can make all the
theoretical points I want, but the hard data in your statement is
probably worth more than the rest of this email.

 I would expect any DNS server run by an ISP
 (such as AOL) to receive the zone records from SOA intact, i.e. these
 major dns servers should know about all rr Ips for a given 
 dns name, and
 would therefore be able to RR distribute them to lower-tier 
 DNS servers.

Your expectation is incorrect, I think - even the large DNS servers make
standard requests for A records for the given FQDN, and cache the
result.  If the result contains a set of IP addresses in a particular
order, then that's what is obtained.  To my knowledge (my reasoning
falls down if this is not the case, so this is the bit to check!)
neither the returned A records themselves nor the returned SOA record
contain any indication that they should be handed out in a round-robin
fashion; and the SOA record would not typically be requested by another
server.

 I
 would have thought that the level at which DNS servers do not 
 pick up the
 fact that there is a RR DNS entry is where they do not do a 
 zone transfer
 from a primary DNS server - they simply act as a client and 
 cache what they
 get as a response, so they are unaware that there even are 
 more than one IP.

Even high-level DNS servers don't do zone transfers unless they're
secondaries for the zone.  And, even then, the information about whether
or not to use round-robin is an option set for the zone, not something
that appears in the SOA record for immediate use by the secondary.
Also, remember that many zones are configured to refuse zone transfer
requests from addresses that are not configured as secondaries.

 So overall I guess I'm saying I'd be surprised if AOL's DNS 
 servers only
 cached one entry of a RR set for a DNS name.  What are your thoughts?

I've revised my position slightly.  I think they'll cache the list in a
particular order, rather than a single entry; but the ordering of that
list will be fixed as they won't know to serve it in round-robin
fashion.  If you can confirm or challenge that position, I'd be
interested!

- Peter

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



RE: [OT] RE: DNS Request distribution and TCP NAT distribution For Tomcat Cluster

2005-05-26 Thread Steve Kirk

Thanks Peter, interesting.  Your experience of it sounds similar to other
experiences I've had when changing from one ISP to another (there seems to
be a cutover time of up to 3 days where some 3rd party ISPs clearly still
cached and served the old IP for our domain name).  It was because of this
that I investigated more at the time, but as you say, it's each ISP to their
own practice.

  I would expect any DNS server run by an ISP
  (such as AOL) to receive the zone records from SOA intact, 
  i.e. these
  major dns servers should know about all rr Ips for a given 
  dns name, and
  would therefore be able to RR distribute them to lower-tier 
  DNS servers.
 
 Your expectation is incorrect, I think - even the large DNS 
 servers make
 standard requests for A records for the given FQDN, and cache the
 result.  

Yes you're probably right there now I think about it.  I think these are
referred to as caching servers as opposed to secondary.  It's the
secondaries that receive the zone transfers.

Having said that, I'd have thought that a large ISP such as AOL would have
secondaries, (inaccesible by joe public), but would also have caching
servers, which are the ones they make public.  Since they typically have
several caching DNS servers, in theory there is a good chance that each of
them will get a different one of the RR Ips from their secondary server, so
in theory the RR goal is often achieved?  For example I just used DOS
nslookup to query my ISPs 2 main dns servers for www.microsoft.com - they
each returned a different address, although repeatedly querying each one
returns the same answer every time.  If I go through a local caching DNS on
my LAN, that returns a third address for MS - again, the same one every
time.

 If the result contains a set of IP addresses in a particular
 order, then that's what is obtained.  To my knowledge (my reasoning
 falls down if this is not the case, so this is the bit to check!)
 neither the returned A records themselves nor the returned SOA record
 contain any indication that they should be handed out in a round-robin
 fashion; and the SOA record would not typically be requested 
 by another
 server.

AFAIK that is correct, the DNS protocol does not say anything about how DNS
servers should respond to clients when there are multiple Ips registered in
DNS for a host.  Likewise if the DNS server only returns one IP all the
time, the client protocol provides no way for the client to say give me the
next one or give me number 3 or give me them all.  So some caching DNS
servers will always return the first one in the list, others will order Ips
according to their own rule (which meets the spec) but then always serve the
first one in that order.  And others will cycle through them in turn (which
is RR).  Basically, it's internal feature of the DNS server to decide how
it treats hostnames for which is has more than one IP.  

Of these 3 basic approaches, the first gives no RR, the second is slightly
better, the 3rd is the best.  Of course they are all only rudimentary load
balancing methods, and of course even the 3rd falls down if ISPs with
millions of users happen to cache a single IP for a site, as you say. 

Someone please correct me if any of this is wrong, as I'd like to understand
this area better :)

PS this has rekindled my interest so I just googled to refresh my mind on
the basics, this seems a useful page that explains what we are talking about
above.
http://www.onjava.com/pub/a/onjava/2001/09/26/load.html 



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



RE: [OT] RE: DNS Request distribution and TCP NAT distribution For Tomcat Cluster

2005-05-26 Thread Peter Crowther
 From: Steve Kirk [mailto:[EMAIL PROTECTED] 
 Thanks Peter, interesting.

Internet issues in the large tend to be - you get emergent behaviour
that is often unexpected :-).

 I think these are
 referred to as caching servers as opposed to secondary.  It's the
 secondaries that receive the zone transfers.

Yes.  Note that these roles are per-zone; a given DNS server may act as
a primary or secondary for some zones, and as a caching server for
others.

 Having said that, I'd have thought that a large ISP such as 
 AOL would have
 secondaries, (inaccesible by joe public), but would also have caching
 servers, which are the ones they make public.

It would be difficult to persuade those secondaries to be effective -
for what zones are they secondaries?  Let's say AOL want to act as a
secondary for foo.com.  How do AOL contact the owners of foo.com in
order to request that their secondary server is added to the list of
allowed IPs for zone transfers?  Other than that, AOL could then make
use of those servers as forwarders from their caching servers, I accept.

 Since they typically have
 several caching DNS servers, in theory there is a good chance 
 that each of
 them will get a different one of the RR Ips from their 
 secondary server, so
 in theory the RR goal is often achieved?

Assuming they are independent and not configured to use the same
forwarders, yes.  You might be surprised how few DNS servers an
organisation needs, though - Demon (my home ISP, and not a small one)
has two, and could probably get away with one except for redundancy.
I've not seen an ISP setup document yet that says to use primary and
secondary DNS of ns47.isp.net and ns32.isp.net - they're almost all ns0
and ns1 or ns1 and ns2, indicating that there are probably very few in
the organisation.

 For example I just used DOS
 nslookup to query my ISPs 2 main dns servers for 
 www.microsoft.com - they
 each returned a different address, although repeatedly 
 querying each one
 returns the same answer every time.  If I go through a local 
 caching DNS on
 my LAN, that returns a third address for MS - again, the same 
 one every time.

Yup.  So anyone using your ISP's DNS servers will get one of two IPs for
www.microsoft.com at present, out of the however many they have.  Lumpy
load balancing in action :-).

You likely haven't set up your own caching DNS to forward requests to
your ISP's DNS servers; otherwise you'd have had one of the same
answers.

 Basically, it's internal feature of the DNS server 
 to decide how
 it treats hostnames for which is has more than one IP.

Indeed.

 PS this has rekindled my interest so I just googled to 
 refresh my mind on
 the basics, this seems a useful page that explains what we 
 are talking about above.
 http://www.onjava.com/pub/a/onjava/2001/09/26/load.html 

Yes, that seems like a reaonable summary, although it doesn't really go
into the caching effects we're discussing here.

- Peter

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



RE: [OT] RE: DNS Request distribution and TCP NAT distribution For Tomcat Cluster

2005-05-26 Thread Steve Kirk

 Yup.  So anyone using your ISP's DNS servers will get one of 
 two IPs for
 www.microsoft.com at present, out of the however many they 
 have.  Lumpy
 load balancing in action :-).

Yes true, hadn't thought of it like that.  Where a site has more Ips for a
host than an ISP has DNS servers, this is going to lead to lumpiness.

I guess this is one of the key reasons why RR DNS is only ever a poor man's
load balancer.  OK-ish if you have 2 Ips, gets worse if you have more.

 You likely haven't set up your own caching DNS to forward requests to
 your ISP's DNS servers; otherwise you'd have had one of the same
 answers.

Funnily enough I have, and I use Demon too.  I think my local DNS has maybe
kept an MS entry cached and it's refresh TTL is out of sync with the demon
DNS caches.  But what you say is right - if I restart that local DNS, it
will then get a fresh MS entry from one of the 2 cached at the Demon
servers.  In fact I just have, and it did.

Thanks again, that's clarified a few things I was a bit fuzzy on.

Sorry John for the slight off-topic diversion but I hope this diversion on
RR DNS might have been of interest to you too.



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



DNS Request distribution and TCP NAT distribution For Tomcat Cluster

2005-05-25 Thread John MccLain
I was looking at the book, 'Tomcat: the definitive guide' last night, and
the clustering chapter talked about
load balancing via DNS Request distribution or TCP NAT distribution. Could
someone explain these to me a little better in relation to Tomcat in a
microsoft architecture? most of that book is based on Unix. My questions are
as follows - mostly they are just clarification of the mechanism:

1) for DNS Request Distribution - I dont understand. The browser sends a URL
to the DNS, the DNS responds back with an IP address. But what if at that IP
address, you have a web server listening on port 80? If Tomcat is at that
address also, Tomcat would have to listen on another port. Can the DNS
distribute back to the browser the IP Address AND  the Tomcat port so the
browser connects to Tomcat on a non port 80 port? Also, is there a way to
setup the DNS to Round Robin or check server load on the servers in the
Tomcat cluster so it knows which Tomcat server ip:port to send back. OR does
this whole thing imply that you have an IP for each web server (IIS), and
each web server is tied to each server in the Tomcat cluster via a jk2
redirector?

2)TCP NAT distribution - Does this mean that when the browser connects to
the IP address, that that connection is intercepted and the request is
distributed to a server in the Tomcat cluster? If this is the case, then
what does the interception? and how do you configure that thing to use a
specific algorithm (server load, Round Robin, etc..) to choose which server
to forward the request to? can it forward to an IP:PORT or does it have to
forward to an IP

John McClain
Senior Software Engineer
TCS Healthcare
[EMAIL PROTECTED]
(530)886-1700x235
Skepticism is the first step toward truth


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



RE: DNS Request distribution and TCP NAT distribution For Tomcat Cluster

2005-05-25 Thread Peter Crowther
 From: John MccLain [mailto:[EMAIL PROTECTED] 
 1) for DNS Request Distribution - I dont understand. The 
 browser sends a URL
 to the DNS, the DNS responds back with an IP address. But 
 what if at that IP
 address, you have a web server listening on port 80?

The browser talks to that Web server.

 If 
 Tomcat is at that
 address also, Tomcat would have to listen on another port. Can the DNS
 distribute back to the browser the IP Address AND  the Tomcat 
 port so the
 browser connects to Tomcat on a non port 80 port?

Only if your original URL uses the name:port notation - there is nothing
in this scheme to prevent that.

 Also, is there a way to
 setup the DNS to Round Robin or check server load on the 
 servers in the
 Tomcat cluster so it knows which Tomcat server ip:port to 
 send back.

No standard way afaik.  Worse, downstream DNS servers may (often do)
cache the returned IPs for up to a day despite any cache expiry you put
on them.  If (say) the AOL DNS servers all get the same IP address in
their cache, all your AOL visitors will visit the same IP address.

DNS is a very lumpy way of doing load balancing.

 OR does
 this whole thing imply that you have an IP for each web 
 server (IIS)

IP address yes; IIS depends on whether you want IIS or Tomcat at the
business end of the cluster.

 and
 each web server is tied to each server in the Tomcat cluster via a jk2
 redirector?

If you wish to use that architecture, yes.

 2)TCP NAT distribution - Does this mean that when the browser 
 connects to
 the IP address, that that connection is intercepted and the request is
 distributed to a server in the Tomcat cluster?

Yes.

 If this is the case, then
 what does the interception?

Generically, a router that has this capability.  It's that router that
also does the NATing.  Many mid- to high-end hardware routers and some
software routing packages can do this.

 and how do you configure that thing to use a
 specific algorithm (server load, Round Robin, etc..) to 
 choose which server
 to forward the request to?

That is router-specific.  There is no standard (afaik) for the servers
to return load information, so you're stuck with proprietary solutions
*or* the router doesn't load-balance.

 can it forward to an IP:PORT or does it have to
 forward to an IP

That is router-specific.  Given that the capability typically exists on
mid- to high-end routers, most will also have the capability to change
the internal port that is in use.

- Peter

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



RE: DNS Request distribution and TCP NAT distribution For Tomcat Cluster

2005-05-25 Thread Steve Kirk
Peter,

I agree that

 DNS is a very lumpy way of doing load balancing. 

But your comments interested me.  Can I ask how sure you felt of what you
say here please: 

 No standard way afaik.  Worse, downstream DNS servers may (often do)
 cache the returned IPs for up to a day despite any cache expiry you put
 on them.  If (say) the AOL DNS servers all get the same IP address in
 their cache, all your AOL visitors will visit the same IP address.

I'm not for a minute suggesting that it is wrong :) and wouldn't dream of
doing so, because I don't know all the facts myself.  I tried to research it
but could not get to the bottom of it with any real info from ISPs (the
problem is that they seem to do their own thing to various extents).  I'm
just interested in comparing experiences/opinions.

I have set up roundrobin DNS for an ecommerce site in the past without any
complaints from users, and the  balance of load between a pair of clustered
servers seemed pretty even.  I would expect any DNS server run by an ISP
(such as AOL) to receive the zone records from SOA intact, i.e. these
major dns servers should know about all rr Ips for a given dns name, and
would therefore be able to RR distribute them to lower-tier DNS servers.  I
would have thought that the level at which DNS servers do not pick up the
fact that there is a RR DNS entry is where they do not do a zone transfer
from a primary DNS server - they simply act as a client and cache what they
get as a response, so they are unaware that there even are more than one IP.
I'm speculating that these minor DNS servers belong to small ISPs, or
private companies running their own DNS in-house?

So overall I guess I'm saying I'd be surprised if AOL's DNS servers only
cached one entry of a RR set for a DNS name.  What are your thoughts?

 -Original Message-
 From: Peter Crowther [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday 25 May 2005 17:15
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: RE: DNS Request distribution and TCP NAT 
 distribution For Tomcat Cluster
 
 
  From: John MccLain [mailto:[EMAIL PROTECTED] 
  1) for DNS Request Distribution - I dont understand. The 
  browser sends a URL
  to the DNS, the DNS responds back with an IP address. But 
  what if at that IP
  address, you have a web server listening on port 80?
 
 The browser talks to that Web server.
 
  If 
  Tomcat is at that
  address also, Tomcat would have to listen on another port. 
 Can the DNS
  distribute back to the browser the IP Address AND  the Tomcat 
  port so the
  browser connects to Tomcat on a non port 80 port?
 
 Only if your original URL uses the name:port notation - there 
 is nothing
 in this scheme to prevent that.
 
  Also, is there a way to
  setup the DNS to Round Robin or check server load on the 
  servers in the
  Tomcat cluster so it knows which Tomcat server ip:port to 
  send back.
 
 No standard way afaik.  Worse, downstream DNS servers may (often do)
 cache the returned IPs for up to a day despite any cache 
 expiry you put
 on them.  If (say) the AOL DNS servers all get the same IP address in
 their cache, all your AOL visitors will visit the same IP address.
 
 DNS is a very lumpy way of doing load balancing.
 
  OR does
  this whole thing imply that you have an IP for each web 
  server (IIS)
 
 IP address yes; IIS depends on whether you want IIS or Tomcat at the
 business end of the cluster.
 
  and
  each web server is tied to each server in the Tomcat 
 cluster via a jk2
  redirector?
 
 If you wish to use that architecture, yes.
 
  2)TCP NAT distribution - Does this mean that when the browser 
  connects to
  the IP address, that that connection is intercepted and the 
 request is
  distributed to a server in the Tomcat cluster?
 
 Yes.
 
  If this is the case, then
  what does the interception?
 
 Generically, a router that has this capability.  It's that router that
 also does the NATing.  Many mid- to high-end hardware routers and some
 software routing packages can do this.
 
  and how do you configure that thing to use a
  specific algorithm (server load, Round Robin, etc..) to 
  choose which server
  to forward the request to?
 
 That is router-specific.  There is no standard (afaik) for the servers
 to return load information, so you're stuck with proprietary solutions
 *or* the router doesn't load-balance.
 
  can it forward to an IP:PORT or does it have to
  forward to an IP
 
 That is router-specific.  Given that the capability typically 
 exists on
 mid- to high-end routers, most will also have the capability to change
 the internal port that is in use.
 
   - Peter
 
 -
 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]



Problems with gzip compression with Apache/Tomcat cluster and Firefox

2005-05-20 Thread B.J. Guillot
We have recently been experimenting with enabling gzip/deflate compression
via our Apache/Tomcat cluster, but have encountered some problems with the
way the compression works with the Firebox browser.

 

When Firefox brings up a compressed page for the first time, it looks fine.
If they reload a static html page, bizarre things start to happen.  In some
cases, garbage just gets displayed on screen (looks like the actual gzip
encoded stream), and other times Firefox displays a dialog box asking if you
want to download the html files.  When IE is used, it works fine.

 

Some background: Running two-node Tomcat 5.5.4 cluster using JK2 2.0.4
protocol to communicate back to Apache2 2.0.52 for load balancing.  Browsers
tried were Firefox 1.0.3 and Internet Explorer 6.0.

 

If I use Tomcat's gzip compression alone with Firefox, it works fine.  It's
only when we through in Apache and JK2 into the mix with the cluster that
Firefox displays charged.  It seems to be an issue related to the way that
compressed pages get cached.

 

I'm not sure if the problem lies with Tomcat, Apache, JK2, or Firefox
itself.  Can anyone provide some pointers?  Thanks.

 

Regards,

B.J. Guillot

 



RE: Tomcat Cluster + File Sharing

2005-04-12 Thread Michael Marrotte
Am I posting this question to the wrong groups or a little too impatient?
Any feedback is greatly appreciated.

-Original Message-
From: Michael Marrotte [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 10:01 AM
To: tomcat-dev@jakarta.apache.org
Subject: Tomcat Cluster + File Sharing

My post to the user list didn't get any response.  I'm thinking the
developers might provide a little more feedback.  I'm just looking for a
sanity check.  I'd like to cluster multiple Tomcat instances to share the
same file system (a NetApp).  I'm thinking something like a master/slaves
type architecture where the master deploys wars compiles JSP, etc and the
slaves just read and execute.  I'm picturing the architecture implemented by
the use of two server.xml files (e.g. masterServer.xml and slaveServer.xml).
However, before I dig too deep into it, I would just like to get any
feedback on the idea.  Any info is greatly appreciated; at the least maybe
point me to some docs that discuss the idea.

 

Thanks,

 

--Mike M. 



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



Re: Tomcat Cluster + File Sharing

2005-04-12 Thread QM
On Tue, Apr 12, 2005 at 04:41:54PM -0400, Michael Marrotte wrote:
: Am I posting this question to the wrong groups or a little too impatient?

1/ cross-posting to both tomcat-dev@ and tomcat-user@ is considered
a breach of etiquette

2/ perhaps people don't know the answer, or have no thoughts on your
situation

3/ perhaps people think your idea is interesting, but want you to take
the hit for the RD

4/ If you're worried about JSP compilation, just JSP precompilation

5/ Based on my own experience, I prefer to make app servers as
independent as possible.  Give each one its own WAR file, such that when
the netapp has problems your app stays afloat.

-QM


: -Original Message-
: From: Michael Marrotte [mailto:[EMAIL PROTECTED] 
: Sent: Tuesday, April 12, 2005 10:01 AM
: To: tomcat-dev@jakarta.apache.org
: Subject: Tomcat Cluster + File Sharing
: 
: My post to the user list didn't get any response.  I'm thinking the
: developers might provide a little more feedback.  I'm just looking for a
: sanity check.  I'd like to cluster multiple Tomcat instances to share the
: same file system (a NetApp).  I'm thinking something like a master/slaves
: type architecture where the master deploys wars compiles JSP, etc and the
: slaves just read and execute.  I'm picturing the architecture implemented by
: the use of two server.xml files (e.g. masterServer.xml and slaveServer.xml).
: However, before I dig too deep into it, I would just like to get any
: feedback on the idea.  Any info is greatly appreciated; at the least maybe
: point me to some docs that discuss the idea.

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



Re: Tomcat Cluster + File Sharing

2005-04-12 Thread Peter Rossbach
Hey,

5/ Based on my own experience, I prefer to make app servers as
independent as possible.  Give each one its own WAR file, such that when
the netapp has problems your app stays afloat.

This also my experience and I can't believe that JSP classs file sharing 
work well. It exists today no coordination
between the different tomcat instances jsp compilation units.

Peter
QM schrieb:
On Tue, Apr 12, 2005 at 04:41:54PM -0400, Michael Marrotte wrote:
: Am I posting this question to the wrong groups or a little too impatient?
1/ cross-posting to both tomcat-dev@ and tomcat-user@ is considered
a breach of etiquette
2/ perhaps people don't know the answer, or have no thoughts on your
situation
3/ perhaps people think your idea is interesting, but want you to take
the hit for the RD
4/ If you're worried about JSP compilation, just JSP precompilation
5/ Based on my own experience, I prefer to make app servers as
independent as possible.  Give each one its own WAR file, such that when
the netapp has problems your app stays afloat.
-QM
: -Original Message-
: From: Michael Marrotte [mailto:[EMAIL PROTECTED] 
: Sent: Tuesday, April 12, 2005 10:01 AM
: To: tomcat-dev@jakarta.apache.org
: Subject: Tomcat Cluster + File Sharing
: 
: My post to the user list didn't get any response.  I'm thinking the
: developers might provide a little more feedback.  I'm just looking for a
: sanity check.  I'd like to cluster multiple Tomcat instances to share the
: same file system (a NetApp).  I'm thinking something like a master/slaves
: type architecture where the master deploys wars compiles JSP, etc and the
: slaves just read and execute.  I'm picturing the architecture implemented by
: the use of two server.xml files (e.g. masterServer.xml and slaveServer.xml).
: However, before I dig too deep into it, I would just like to get any
: feedback on the idea.  Any info is greatly appreciated; at the least maybe
: point me to some docs that discuss the idea.

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

 


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


Tomcat Cluster Sharing File System (NetApp)

2005-04-11 Thread Michael Marrotte
In the midst of architecting a new system and considering clustering Tomcat
servers to share the same files from a NetApp mount point.  Specifically,
configuring multiple instances (server.xml) of Tomcat to share the same
/usr/local/tomcat, webapps, etc.  Does Catalina support this type (e.g.
master/slaves file share) of architecture?  Has anyone implemented this that
can comment on any issues?  I was wondering how things like autodeploy and
JSP compile would be coordinated between multiple instances.  I'm thinking
that each instance has it's own server.xml that controls that, but would
like to get a sanity check.

 

Any help is greatly appreciated.

 

Thanks,

 

--Mike M.



RE: Tomcat Cluster

2005-03-01 Thread Randall Svancara
Apparently this was too verbose for anyone to read.  I simply just don't
understand why each tomcat instance is failing to recognize any other
instance in the cluster.  Multicast messages are being broadcasted.  Is
there any configuration parameter I can turn on that will verify that
each tomcat instance can see the other instances???

Thanks,

Randall


 

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 23, 2005 9:44 AM
To: Tomcat Users List
Subject: Tomcat Cluster 

I have attempted to configure a tomcat cluster using version 5.5.7 of
tomcat.  
I have configured a simple tcp cluster in the server.xml.  I have two
tomcat instances installed on two different Linux servers (Fedora core
3, IPTAPLES is turned off, there is not firewall).  
I have apache and mod_jk set up on a third server.  Multicast is
enabled!!!  
When I start up each tomcat instance I receive the following message in
the catalina.out file.

--
Feb 23, 2005 9:21:49 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Cluster is about to start
Feb 23, 2005 9:21:49 AM
org.apache.catalina.cluster.mcast.McastServiceImpl setupSocket
INFO: Setting multihome multicast interface to:/10.111.22.163 Feb 23,
2005 9:21:49 AM org.apache.catalina.cluster.mcast.McastService
start
INFO: Sleeping for 2000 secs to establish cluster membership Feb 23,
2005 9:21:51 AM org.apache.catalina.cluster.deploy.FarmWarDeployer start
INFO: Cluster FarmWarDeployer started.
Feb 23, 2005 9:21:51 AM org.apache.catalina.cluster.session.DeltaManager
start
INFO: Starting clustering manager...:/testapp Feb 23, 2005 9:21:51 AM
org.apache.catalina.cluster.session.DeltaManager
start
INFO: Manager[/testapp], skipping state transfer. No members active in
cluster group.
-

The important thing to note here is that in the last line, I see
INFO: Manager[/testapp], skipping state transfer. No members active in
cluster group.
At first I was thinking that multicast was not working properly.
However, I was researching the
Tomcat mailing list and found another thread discussing the same issue.
I tried to use the tool,
tomcat-replication.jar located on the CVS for tomcat.  I can see the
multicast sessions being generated between both servers using this tool.
I also started up ethereal, the packet sniffer.  I noticed that both
servers are generating multicast packets.

However after careful analysis of the packet information, I noticed that
my servers were looking for 127.0.0.1/4001 for the receiver port.
So I set the tcpListenAddress from auto to 10.111.22.163  This
seemed to fix the problem with the multicast packets sending out the
incorrect listener addresses.  However, I am still getting the same
error...

INFO: Manager[/testapp], skipping state transfer. No members active in
cluster group.

So here are my questions:
1. Is this really an error, or is session replication working and I am
not testing it properly?  

2.What is the proper way to test that session replication is working
properly?  Can anyone provide me with code that works.  I am currently
using a bean that I declare with jsp:usebean
scope=session.Is this wrong, should I use
request.getAttribute(), request.setAttribute()instead.

3.Can session replication replicate things like a class that I implement
as java.io.serializable?


Thanks in advance,

Randall



Cluster configuration from server.xml:

Cluster
className=org.apache.catalina.cluster.tcp.SimpleTcpCluster
 
managerClassName=org.apache.catalina.cluster.session.DeltaManager
 expireSessionsOnShutdown=false
 useDirtyFlag=true
 notifyListenersOnReplication=true

Membership
 
className=org.apache.catalina.cluster.mcast.McastService
mcastAddr=224.0.0.5
mcastPort=45564
mcastFrequency=500
mcastDropTime=3000
mcastBindAddress=10.111.22.163/

Receiver
 
className=org.apache.catalina.cluster.tcp.ReplicationListener
tcpListenAddress=10.111.22.163
tcpListenPort=4001
tcpSelectorTimeout=100
tcpThreadCount=6/

Sender
 
className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
replicationMode=pooled
ackTimeout=15000/

Valve
className=org.apache.catalina.cluster.tcp.ReplicationValve
 
filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;
/

Deployer
className=org.apache.catalina.cluster.deploy.FarmWarDeployer
  tempDir=/tmp/war-temp/
  deployDir=/tmp/war-deploy/
  watchDir=/tmp/war-listen/
  watchEnabled=false/
/Cluster




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

RE: Tomcat Cluster

2005-03-01 Thread Richard Mixon (qwest)
Randall,

Below is the clustering section of my server.xml running under SuSE
Linux (SLES9). Things to check I can think of:

1. Is your server multi-homed (more than one network adapter)? If so you
must (at least from my experience) specify both mcastBindAddr and
tcpListendAddress as shown below. In my case I'm using a dedicated
adapter to connect the cluster over the private address space
192.168.11.x. Obviously the values are different for the Tomcat instance
on each server.
2. If after reviewing this it still does not work you can test that
multicasting is really working by using the utilities included in the
JGroups jars. See:
  http://www.jgroups.org/javagroupsnew/docs/newuser/node15.html#ItDoesnt
Work

HTH - Richard

  SNIP
  Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster
   managerClassName=org.apache.catalina.cluster.session.DeltaMa
nager
   expireSessionsOnShutdown=false
   useDirtyFlag=true
   notifyListenersOnReplication=true

  Membership
  className=org.apache.catalina.cluster.mcast.McastService
  mcastAddr=228.0.0.4
  mcastPort=45564
  mcastBindAddr=192.168.11.3
  mcastFrequency=500
  mcastDropTime=3000/

  Receiver
  className=org.apache.catalina.cluster.tcp.ReplicationListener

  tcpListenAddress=192.168.11.3
  tcpListenPort=4001
  tcpSelectorTimeout=100
  tcpThreadCount=6/

  Sender
  className=org.apache.catalina.cluster.tcp.ReplicationTransmit
ter
  replicationMode=pooled
  ackTimeout=15000/

  Valve
className=org.apache.catalina.cluster.tcp.ReplicationValve
 filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\
.css;.*\.txt;/

  Deployer
className=org.apache.catalina.cluster.deploy.FarmWarDeployer
tempDir=/tmp/war-temp/
deployDir=/home/tomcat1/jakarta-tomcat-5.5.7/webapps
watchDir=/home/tomcat1/jakarta-tomcat-5.5.7-deployer/bu
ild/webapp
watchEnabled=false/
  /Cluster
  SNIP

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 01, 2005 8:47 AM
To: Tomcat Users List
Subject: RE: Tomcat Cluster


Apparently this was too verbose for anyone to read.  I simply just don't
understand why each tomcat instance is failing to recognize any other
instance in the cluster.  Multicast messages are being broadcasted.  Is
there any configuration parameter I can turn on that will verify that
each tomcat instance can see the other instances???

Thanks,

Randall




-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 23, 2005 9:44 AM
To: Tomcat Users List
Subject: Tomcat Cluster

I have attempted to configure a tomcat cluster using version 5.5.7 of
tomcat.
I have configured a simple tcp cluster in the server.xml.  I have two
tomcat instances installed on two different Linux servers (Fedora core
3, IPTAPLES is turned off, there is not firewall).
I have apache and mod_jk set up on a third server.  Multicast is
enabled!!!
When I start up each tomcat instance I receive the following message in
the catalina.out file.

--
Feb 23, 2005 9:21:49 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Cluster is about to start
Feb 23, 2005 9:21:49 AM
org.apache.catalina.cluster.mcast.McastServiceImpl setupSocket
INFO: Setting multihome multicast interface to:/10.111.22.163 Feb 23,
2005 9:21:49 AM org.apache.catalina.cluster.mcast.McastService
start
INFO: Sleeping for 2000 secs to establish cluster membership Feb 23,
2005 9:21:51 AM org.apache.catalina.cluster.deploy.FarmWarDeployer start
INFO: Cluster FarmWarDeployer started.
Feb 23, 2005 9:21:51 AM org.apache.catalina.cluster.session.DeltaManager
start
INFO: Starting clustering manager...:/testapp Feb 23, 2005 9:21:51 AM
org.apache.catalina.cluster.session.DeltaManager
start
INFO: Manager[/testapp], skipping state transfer. No members active in
cluster group.
-

The important thing to note here is that in the last line, I see
INFO: Manager[/testapp], skipping state transfer. No members active in
cluster group.
At first I was thinking that multicast was not working properly.
However, I was researching the
Tomcat mailing list and found another thread discussing the same issue.
I tried to use the tool,
tomcat-replication.jar located on the CVS for tomcat.  I can see the
multicast sessions being generated between both servers using this tool.
I also started up ethereal, the packet sniffer.  I noticed that both
servers are generating multicast packets.

However after careful analysis of the packet information, I noticed that
my servers were looking for 127.0.0.1/4001 for the receiver port.
So I set the tcpListenAddress from auto to 10.111.22.163  This
seemed to fix the problem with the multicast packets sending out the
incorrect listener addresses.  However, I am still getting the same
error

RE: Tomcat Cluster

2005-03-01 Thread Randall Svancara
I used the tools that I downloaded from javagroups as described and I
can send messages back and forth over multicast on  224.0.0.4 on port
45564 just fine.  I am using the private address space of 10.111.22.x.
My servers both contain one network card and each server defined as
device eth0.  Networking is working fine on each machine as I can ping
to anywhere in the world.  The only thing I can deduce is that I have a
configuration issue that I need to figure out.

Just a quick check list

1. Uncomment cluster elements in server.xml
2. Uncomment the replication valve in server.xml.I am assuming this
is the 
   valve that is listed in the cluster element in the server.xml.
3. Set all of you session attributes to implement java.io.seriazable
4. Tomcat instances are not on the same machine, so the tcpListenPort
can be the same?
5. My web xml is set to distributable for my testapp web application.


Possible problems that I have come up with include:

Explicitly defining mcastBindAddress=10.111.22.167 when it is not
necessary.
Explicitly defining tcpListenAddress=10.111.22.167 when it is not
necessary.
I did not uncomment the correct valve??

Any thoughts/opinions on the matter would be appreciated.

Randall



-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 01, 2005 9:16 AM
To: Tomcat Users List
Subject: RE: Tomcat Cluster 

Randall,

Below is the clustering section of my server.xml running under SuSE
Linux (SLES9). Things to check I can think of:

1. Is your server multi-homed (more than one network adapter)? If so you
must (at least from my experience) specify both mcastBindAddr and
tcpListendAddress as shown below. In my case I'm using a dedicated
adapter to connect the cluster over the private address space
192.168.11.x. Obviously the values are different for the Tomcat instance
on each server.
2. If after reviewing this it still does not work you can test that
multicasting is really working by using the utilities included in the
JGroups jars. See:
  http://www.jgroups.org/javagroupsnew/docs/newuser/node15.html#ItDoesnt
Work

HTH - Richard

  SNIP
  Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster
   managerClassName=org.apache.catalina.cluster.session.DeltaMa
nager
   expireSessionsOnShutdown=false
   useDirtyFlag=true
   notifyListenersOnReplication=true

  Membership
  className=org.apache.catalina.cluster.mcast.McastService
  mcastAddr=228.0.0.4
  mcastPort=45564

  mcastBindAddr=192.168.11.3
  mcastFrequency=500
  mcastDropTime=3000/

  Receiver
  className=org.apache.catalina.cluster.tcp.ReplicationListener

  tcpListenAddress=192.168.11.3
  tcpListenPort=4001
  tcpSelectorTimeout=100
  tcpThreadCount=6/

  Sender
  className=org.apache.catalina.cluster.tcp.ReplicationTransmit
ter
  replicationMode=pooled
  ackTimeout=15000/

  Valve
className=org.apache.catalina.cluster.tcp.ReplicationValve
 filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\
.css;.*\.txt;/

  Deployer
className=org.apache.catalina.cluster.deploy.FarmWarDeployer
tempDir=/tmp/war-temp/
deployDir=/home/tomcat1/jakarta-tomcat-5.5.7/webapps
watchDir=/home/tomcat1/jakarta-tomcat-5.5.7-deployer/bu
ild/webapp
watchEnabled=false/
  /Cluster
  SNIP

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 01, 2005 8:47 AM
To: Tomcat Users List
Subject: RE: Tomcat Cluster


Apparently this was too verbose for anyone to read.  I simply just don't
understand why each tomcat instance is failing to recognize any other
instance in the cluster.  Multicast messages are being broadcasted.  Is
there any configuration parameter I can turn on that will verify that
each tomcat instance can see the other instances???

Thanks,

Randall




-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 23, 2005 9:44 AM
To: Tomcat Users List
Subject: Tomcat Cluster

I have attempted to configure a tomcat cluster using version 5.5.7 of
tomcat.
I have configured a simple tcp cluster in the server.xml.  I have two
tomcat instances installed on two different Linux servers (Fedora core
3, IPTAPLES is turned off, there is not firewall).
I have apache and mod_jk set up on a third server.  Multicast is
enabled!!!
When I start up each tomcat instance I receive the following message in
the catalina.out file.

--
Feb 23, 2005 9:21:49 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Cluster is about to start
Feb 23, 2005 9:21:49 AM
org.apache.catalina.cluster.mcast.McastServiceImpl setupSocket
INFO: Setting multihome multicast interface to:/10.111.22.163 Feb 23,
2005 9:21:49 AM org.apache.catalina.cluster.mcast.McastService
start
INFO

RE: Tomcat Cluster

2005-03-01 Thread Randall Svancara
Ok, I figured this out.  Just so everyone knows in tomcat 5.5.7, the
cluster multicast functionality is a little flaky (no offense to the
developers who spent long hours figuring this stuff out).  IF YOU DO NOT
HAVE A MULTIHOMED NETWORK, YOU DO NOT NEED TO SPECIFY THE PARAMETER
mcastBindAddress=10.111.22.167.  I have found that this only confuses
the instances joining the cluster and as a result, multicast does not
work properly.  So long story short, do not specify
mcastBindAddress=10.111.22.167 if you do not absolutely have to

Randall



-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 01, 2005 12:12 PM
To: Tomcat Users List
Subject: RE: Tomcat Cluster 

I used the tools that I downloaded from javagroups as described and I
can send messages back and forth over multicast on  224.0.0.4 on port
45564 just fine.  I am using the private address space of 10.111.22.x.
My servers both contain one network card and each server defined as
device eth0.  Networking is working fine on each machine as I can ping
to anywhere in the world.  The only thing I can deduce is that I have a
configuration issue that I need to figure out.

Just a quick check list

1. Uncomment cluster elements in server.xml 2. Uncomment the replication
valve in server.xml.I am assuming this is the 
   valve that is listed in the cluster element in the server.xml.
3. Set all of you session attributes to implement java.io.seriazable 4.
Tomcat instances are not on the same machine, so the tcpListenPort can
be the same?
5. My web xml is set to distributable for my testapp web application.


Possible problems that I have come up with include:

Explicitly defining mcastBindAddress=10.111.22.167 when it is not
necessary.
Explicitly defining tcpListenAddress=10.111.22.167 when it is not
necessary.
I did not uncomment the correct valve??

Any thoughts/opinions on the matter would be appreciated.

Randall



-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 01, 2005 9:16 AM
To: Tomcat Users List
Subject: RE: Tomcat Cluster 

Randall,

Below is the clustering section of my server.xml running under SuSE
Linux (SLES9). Things to check I can think of:

1. Is your server multi-homed (more than one network adapter)? If so you
must (at least from my experience) specify both mcastBindAddr and
tcpListendAddress as shown below. In my case I'm using a dedicated
adapter to connect the cluster over the private address space
192.168.11.x. Obviously the values are different for the Tomcat instance
on each server.
2. If after reviewing this it still does not work you can test that
multicasting is really working by using the utilities included in the
JGroups jars. See:
  http://www.jgroups.org/javagroupsnew/docs/newuser/node15.html#ItDoesnt
Work

HTH - Richard

  SNIP
  Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster
   managerClassName=org.apache.catalina.cluster.session.DeltaMa
nager
   expireSessionsOnShutdown=false
   useDirtyFlag=true
   notifyListenersOnReplication=true

  Membership
  className=org.apache.catalina.cluster.mcast.McastService
  mcastAddr=228.0.0.4
  mcastPort=45564

  mcastBindAddr=192.168.11.3
  mcastFrequency=500
  mcastDropTime=3000/

  Receiver
  className=org.apache.catalina.cluster.tcp.ReplicationListener

  tcpListenAddress=192.168.11.3
  tcpListenPort=4001
  tcpSelectorTimeout=100
  tcpThreadCount=6/

  Sender
  className=org.apache.catalina.cluster.tcp.ReplicationTransmit
ter
  replicationMode=pooled
  ackTimeout=15000/

  Valve
className=org.apache.catalina.cluster.tcp.ReplicationValve
 filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\
.css;.*\.txt;/

  Deployer
className=org.apache.catalina.cluster.deploy.FarmWarDeployer
tempDir=/tmp/war-temp/
deployDir=/home/tomcat1/jakarta-tomcat-5.5.7/webapps
watchDir=/home/tomcat1/jakarta-tomcat-5.5.7-deployer/bu
ild/webapp
watchEnabled=false/
  /Cluster
  SNIP

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 01, 2005 8:47 AM
To: Tomcat Users List
Subject: RE: Tomcat Cluster


Apparently this was too verbose for anyone to read.  I simply just don't
understand why each tomcat instance is failing to recognize any other
instance in the cluster.  Multicast messages are being broadcasted.  Is
there any configuration parameter I can turn on that will verify that
each tomcat instance can see the other instances???

Thanks,

Randall




-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 23, 2005 9:44 AM
To: Tomcat Users List
Subject: Tomcat Cluster

I have attempted to configure a tomcat cluster using version 5.5.7 of
tomcat.
I

Tomcat Cluster

2005-02-23 Thread Randall Svancara
I have attempted to configure a tomcat cluster using version 5.5.7 of
tomcat.  
I have configured a simple tcp cluster in the server.xml.  I have two 
tomcat instances installed on two different Linux servers 
(Fedora core 3, IPTAPLES is turned off, there is not firewall).  
I have apache and mod_jk set up on a third server.  Multicast is
enabled!!!  
When I start up each tomcat instance I receive the following message in
the catalina.out file.

--
Feb 23, 2005 9:21:49 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Cluster is about to start
Feb 23, 2005 9:21:49 AM
org.apache.catalina.cluster.mcast.McastServiceImpl setupSocket
INFO: Setting multihome multicast interface to:/10.111.22.163
Feb 23, 2005 9:21:49 AM org.apache.catalina.cluster.mcast.McastService
start
INFO: Sleeping for 2000 secs to establish cluster membership
Feb 23, 2005 9:21:51 AM
org.apache.catalina.cluster.deploy.FarmWarDeployer start
INFO: Cluster FarmWarDeployer started.
Feb 23, 2005 9:21:51 AM org.apache.catalina.cluster.session.DeltaManager
start
INFO: Starting clustering manager...:/testapp
Feb 23, 2005 9:21:51 AM org.apache.catalina.cluster.session.DeltaManager
start
INFO: Manager[/testapp], skipping state transfer. No members active in
cluster group.
-

The important thing to note here is that in the last line, I see 
INFO: Manager[/testapp], skipping state transfer. No members active in
cluster group.
At first I was thinking that multicast was not working properly.
However, I was researching the
Tomcat mailing list and found another thread discussing the same issue.
I tried to use the tool,
tomcat-replication.jar located on the CVS for tomcat.  I can see the
multicast sessions being generated between
both servers using this tool.  I also started up ethereal, the packet
sniffer.  I noticed that both servers are generating multicast packets.

However after careful analysis of the packet information, I noticed that
my servers were looking for 127.0.0.1/4001 for the receiver port.
So I set the tcpListenAddress from auto to 10.111.22.163  This
seemed to fix the problem with the multicast packets sending out
the incorrect listener addresses.  However, I am still getting the same
error...

INFO: Manager[/testapp], skipping state transfer. No members active in
cluster group.

So here are my questions:
1. Is this really an error, or is session replication working and I am
not testing it properly?  

2.What is the proper way to test that session replication is working
properly?  Can anyone provide me with code that works.  I am currently
using a
bean that I declare with jsp:usebean scope=session.Is this
wrong, should I use request.getAttribute(),
request.setAttribute()instead.

3.Can session replication replicate things like a class that I implement
as java.io.serializable?


Thanks in advance,

Randall



Cluster configuration from server.xml:

Cluster
className=org.apache.catalina.cluster.tcp.SimpleTcpCluster
 
managerClassName=org.apache.catalina.cluster.session.DeltaManager
 expireSessionsOnShutdown=false
 useDirtyFlag=true
 notifyListenersOnReplication=true

Membership
 
className=org.apache.catalina.cluster.mcast.McastService
mcastAddr=224.0.0.5
mcastPort=45564
mcastFrequency=500
mcastDropTime=3000
mcastBindAddress=10.111.22.163/

Receiver
 
className=org.apache.catalina.cluster.tcp.ReplicationListener
tcpListenAddress=10.111.22.163
tcpListenPort=4001
tcpSelectorTimeout=100
tcpThreadCount=6/

Sender
 
className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
replicationMode=pooled
ackTimeout=15000/

Valve
className=org.apache.catalina.cluster.tcp.ReplicationValve
 
filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;
/

Deployer
className=org.apache.catalina.cluster.deploy.FarmWarDeployer
  tempDir=/tmp/war-temp/
  deployDir=/tmp/war-deploy/
  watchDir=/tmp/war-listen/
  watchEnabled=false/
/Cluster




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



RE: HttpSession Replication in Tomcat Cluster not working with EJ B's!

2004-04-05 Thread Suraj Prabhu
Filip,

You were right. It's works with the handle. Thanx for all the co-operation. 

cheers
Suraj

-Original Message-
From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 27, 2004 5:51 AM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJ B's!


I think you need to store the EJBHandle, not the actual bean that you are
referencing.
is that what you are doing?
Filip

-Original Message-
From: Suraj Prabhu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 4:20 AM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJ B's!


Andy,

I agree with your point about a SFSB being an extension of a client. But
then, if I store the 'state' alone in the httpsession and update the state
by using a new SFSB everytime, the whole concept of SFSB's are lost. I would
rather use a stateless session bean and use httpsession for persisting my
conversational state. (I know this line of thinking against use of SFSB has
been advocated many a times and is a different discussion altogether)

I beleive what ur suggesting to be a workaround and is not an acceptable
solution. My design requirement requires a SFSB and I need servlets to
invoke my SFSB. I will also need to cluster the TC5 servers. Passing the
reference within the servlet and between method calls is the only way to
hold a handle and interact with a single instance of a SFSB.

If I use a JBOSS 3.2.3 server which comes bundled with TC then JBOSS takes
care of my httpSession sharing between the various JBOSS servers in the
cluster. (JBOSS has a different mechanism for httpSession sharing). But I
would like to have a multitier cluster with seperate TC clusters and
seperate JBOSS clusters. So the end question would be if TC 5.0.18 has the
capability to handle such a scenario or not.

cheers
Suraj



-Original Message-
From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 4:42 PM
To: '[EMAIL PROTECTED]'
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJ B's!


Think of a stateful session bean as an extension of the client. By
storing the remote reference inside your session, you are attempting to
persist your Client extension across 2 different clients (2 different
tomcat instances). I don't think this is a sensible idea, and I'm not
sure it's even allowed.

I would advise you not to store remote references inside your session
objects. Try storing just the current 'state' inside the session. Use a
ServiceLocator to get an instance of the session bean each time you need
it, using the current session to populate the state. This may work
better for you.

Regards,
Andy


-Original Message-
From: Suraj Prabhu
To: [EMAIL PROTECTED]
Sent: 19/03/2004 07:34
Subject: HttpSession Replication in Tomcat Cluster not working with
EJB's!

Hi everybody,


I am trying to cluster Tomcat Servers ver 5.0.18 (Two servers) and my
application servlets are accessing Stateful session beans. Typically,
the first invocation of the servlet gets the Remote of the SFSB and
stores it into the session. The other Tomcat's in the cluster throw up
an error ClassNotFoundException while loading persisted sessions. I
have the same war file deployed in all the Tomcats and the Tomcats in
turn talk to the same app server (JBOSS 3.2.3). I am attaching my
configuration and log outputs of both the servers. Would like to know if
this is a bug/limitation or is there a solution to it.

Cheers
Suraj

--
This is the log file o/p of the first server (which the client actually
is accessing):

INFO: Jk running ID=0 time=0/16  config=C:\Tomcat5\conf\jk2.properties
Mar 18, 2004 4:25:40 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5297 ms
Mar 18, 2004 4:26:20 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.9:4001
,10.5.18.9,4001, alive=16]


This is the log file o/p of the second server (which starts up and joins
the cluster after a session has been created in the first server)

Mar 18, 2004 4:25:12 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 
Mar 18, 2004 4:25:12 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1125 ms
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.18
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Cluster is about to start
Mar 18, 2004 4:25:12 PM

RE: HttpSession Replication in Tomcat Cluster not working with EJB's!

2004-04-05 Thread Filip Hanik \(lists\)
good stuff, thanks for replying, that helps with the archives

-Original Message-
From: Suraj Prabhu [mailto:[EMAIL PROTECTED]
Sent: Monday, April 05, 2004 1:27 AM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJ B's!


Filip,

You were right. It's works with the handle. Thanx for all the co-operation.

cheers
Suraj

-Original Message-
From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 27, 2004 5:51 AM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJ B's!


I think you need to store the EJBHandle, not the actual bean that you are
referencing.
is that what you are doing?
Filip

-Original Message-
From: Suraj Prabhu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 4:20 AM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJ B's!


Andy,

I agree with your point about a SFSB being an extension of a client. But
then, if I store the 'state' alone in the httpsession and update the state
by using a new SFSB everytime, the whole concept of SFSB's are lost. I would
rather use a stateless session bean and use httpsession for persisting my
conversational state. (I know this line of thinking against use of SFSB has
been advocated many a times and is a different discussion altogether)

I beleive what ur suggesting to be a workaround and is not an acceptable
solution. My design requirement requires a SFSB and I need servlets to
invoke my SFSB. I will also need to cluster the TC5 servers. Passing the
reference within the servlet and between method calls is the only way to
hold a handle and interact with a single instance of a SFSB.

If I use a JBOSS 3.2.3 server which comes bundled with TC then JBOSS takes
care of my httpSession sharing between the various JBOSS servers in the
cluster. (JBOSS has a different mechanism for httpSession sharing). But I
would like to have a multitier cluster with seperate TC clusters and
seperate JBOSS clusters. So the end question would be if TC 5.0.18 has the
capability to handle such a scenario or not.

cheers
Suraj



-Original Message-
From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 4:42 PM
To: '[EMAIL PROTECTED]'
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJ B's!


Think of a stateful session bean as an extension of the client. By
storing the remote reference inside your session, you are attempting to
persist your Client extension across 2 different clients (2 different
tomcat instances). I don't think this is a sensible idea, and I'm not
sure it's even allowed.

I would advise you not to store remote references inside your session
objects. Try storing just the current 'state' inside the session. Use a
ServiceLocator to get an instance of the session bean each time you need
it, using the current session to populate the state. This may work
better for you.

Regards,
Andy


-Original Message-
From: Suraj Prabhu
To: [EMAIL PROTECTED]
Sent: 19/03/2004 07:34
Subject: HttpSession Replication in Tomcat Cluster not working with
EJB's!

Hi everybody,


I am trying to cluster Tomcat Servers ver 5.0.18 (Two servers) and my
application servlets are accessing Stateful session beans. Typically,
the first invocation of the servlet gets the Remote of the SFSB and
stores it into the session. The other Tomcat's in the cluster throw up
an error ClassNotFoundException while loading persisted sessions. I
have the same war file deployed in all the Tomcats and the Tomcats in
turn talk to the same app server (JBOSS 3.2.3). I am attaching my
configuration and log outputs of both the servers. Would like to know if
this is a bug/limitation or is there a solution to it.

Cheers
Suraj

--
This is the log file o/p of the first server (which the client actually
is accessing):

INFO: Jk running ID=0 time=0/16  config=C:\Tomcat5\conf\jk2.properties
Mar 18, 2004 4:25:40 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5297 ms
Mar 18, 2004 4:26:20 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.9:4001
,10.5.18.9,4001, alive=16]


This is the log file o/p of the second server (which starts up and joins
the cluster after a session has been created in the first server)

Mar 18, 2004 4:25:12 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 
Mar 18, 2004 4:25:12 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1125 ms
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine

Re: apache + 2 tomcat cluster memory problem

2004-03-28 Thread Asim Alp
Thanks Filip.  I only found the thread of mails starting March 17 with  
the title Horrible memory leak in tomcat 5.0.19  If this is indeed  
the mails you advised me to look at, here is what I found out:

Our setup differs in a way that we are using mod_jk 1.2.5 instead of  
2.0.2.  So mod_jk 1.2.5 + Tomcat 5.0.19 has a memory leak problem as  
well.  This suggests that maybe the problem is with Tomcat 5.0.19 (?)   
Appearantly someone else (Robert Kruger) had exactly the same problem  
and it was solved when they downgraded to Tomcat 5.0.18.  We cannot do  
that either because of a bug fix regarding session states in 5.0.18.  I  
don't mind using mod_jk 2.0.2 as long as it solves our problem; however  
there already seems to be a memory leak with the mod_jk 2.0.2 + tomcat  
5.0.19 combination as well.

In Robert's email, he predicts that maybe the problem is related to JMX  
registration issue described in  
http://www.mail-archive.com/[EMAIL PROTECTED]/ 
msg53035.html.  I'll reply to his email to see if it was indeed the  
problem.

What's the next step?

Thanks,

Asim

On Mar 28, 2004, at 12:39 AM, Filip Hanik ((lists)) wrote:

there was an earlier email about a mem leak in the connector for  
mod_jk,
please go through the last weeks emails and let us know what you find  
out.

Filip

-Original Message-
From: Asim Alp [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 27, 2004 7:55 PM
To: Tomcat Users List
Subject: apache + 2 tomcat cluster memory problem
Hello everyone,

I have 2 Tomcats (both 5.0.19) running on two separate machines.  One
machine also has Apache 2.0.49 installed on it for load balancing.
Apache communicates with tomcat1 thru port 11005 and tomcat2 thru
12005.  tomcat1 and Apache are on the same machine.  Apache is set to
forward /* to the load balancer (and then to Tomcats).  We have over a
hundred virtual hosts on our tomcats, so we don't want to worry about
configuring Apache virtual hosts to serve the images and all the other
files (that's why we forward /*, not just /*.jsp and /servlet/*).  Both
tomcats also have their http connector ports listening to port 8080 on
their individual machines.  We're using mod_jk_1.2.5_2.0.47.dll for
Apache to Tomcat communication...  Both our tomcats are running with
the -Xms128m -Xmx256m options.
With this configuration everything works perfect for about an hour,
then our tomcats run out of memory...
When we turn off clustering, and run a single Tomcat on port 80 (of
course by shutting down Apache Httpd), we don't have any memory
problems at all (for now, we're planning to use clustering to avoid
down time, one server is actually enough to handle all the traffic).
Does anyone have any idea why we'd run out of memory when our tomcats
are talking to Apache through mod_jk?
Thanks,

Asim

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
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]


apache + 2 tomcat cluster memory problem

2004-03-27 Thread Asim Alp
Hello everyone,

I have 2 Tomcats (both 5.0.19) running on two separate machines.  One 
machine also has Apache 2.0.49 installed on it for load balancing.  
Apache communicates with tomcat1 thru port 11005 and tomcat2 thru 
12005.  tomcat1 and Apache are on the same machine.  Apache is set to 
forward /* to the load balancer (and then to Tomcats).  We have over a 
hundred virtual hosts on our tomcats, so we don't want to worry about 
configuring Apache virtual hosts to serve the images and all the other 
files (that's why we forward /*, not just /*.jsp and /servlet/*).  Both 
tomcats also have their http connector ports listening to port 8080 on 
their individual machines.  We're using mod_jk_1.2.5_2.0.47.dll for 
Apache to Tomcat communication...  Both our tomcats are running with 
the -Xms128m -Xmx256m options.

With this configuration everything works perfect for about an hour, 
then our tomcats run out of memory...

When we turn off clustering, and run a single Tomcat on port 80 (of 
course by shutting down Apache Httpd), we don't have any memory 
problems at all (for now, we're planning to use clustering to avoid 
down time, one server is actually enough to handle all the traffic).

Does anyone have any idea why we'd run out of memory when our tomcats 
are talking to Apache through mod_jk?

Thanks,

Asim

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


RE: apache + 2 tomcat cluster memory problem

2004-03-27 Thread Filip Hanik \(lists\)
there was an earlier email about a mem leak in the connector for mod_jk,
please go through the last weeks emails and let us know what you find out.

Filip

-Original Message-
From: Asim Alp [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 27, 2004 7:55 PM
To: Tomcat Users List
Subject: apache + 2 tomcat cluster memory problem


Hello everyone,

I have 2 Tomcats (both 5.0.19) running on two separate machines.  One
machine also has Apache 2.0.49 installed on it for load balancing.
Apache communicates with tomcat1 thru port 11005 and tomcat2 thru
12005.  tomcat1 and Apache are on the same machine.  Apache is set to
forward /* to the load balancer (and then to Tomcats).  We have over a
hundred virtual hosts on our tomcats, so we don't want to worry about
configuring Apache virtual hosts to serve the images and all the other
files (that's why we forward /*, not just /*.jsp and /servlet/*).  Both
tomcats also have their http connector ports listening to port 8080 on
their individual machines.  We're using mod_jk_1.2.5_2.0.47.dll for
Apache to Tomcat communication...  Both our tomcats are running with
the -Xms128m -Xmx256m options.

With this configuration everything works perfect for about an hour,
then our tomcats run out of memory...

When we turn off clustering, and run a single Tomcat on port 80 (of
course by shutting down Apache Httpd), we don't have any memory
problems at all (for now, we're planning to use clustering to avoid
down time, one server is actually enough to handle all the traffic).

Does anyone have any idea why we'd run out of memory when our tomcats
are talking to Apache through mod_jk?

Thanks,

Asim


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
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]



RE: HttpSession Replication in Tomcat Cluster not working with EJ B's!

2004-03-26 Thread Filip Hanik \(lists\)
I think you need to store the EJBHandle, not the actual bean that you are
referencing.
is that what you are doing?
Filip

-Original Message-
From: Suraj Prabhu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 4:20 AM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJ B's!


Andy,

I agree with your point about a SFSB being an extension of a client. But
then, if I store the 'state' alone in the httpsession and update the state
by using a new SFSB everytime, the whole concept of SFSB's are lost. I would
rather use a stateless session bean and use httpsession for persisting my
conversational state. (I know this line of thinking against use of SFSB has
been advocated many a times and is a different discussion altogether)

I beleive what ur suggesting to be a workaround and is not an acceptable
solution. My design requirement requires a SFSB and I need servlets to
invoke my SFSB. I will also need to cluster the TC5 servers. Passing the
reference within the servlet and between method calls is the only way to
hold a handle and interact with a single instance of a SFSB.

If I use a JBOSS 3.2.3 server which comes bundled with TC then JBOSS takes
care of my httpSession sharing between the various JBOSS servers in the
cluster. (JBOSS has a different mechanism for httpSession sharing). But I
would like to have a multitier cluster with seperate TC clusters and
seperate JBOSS clusters. So the end question would be if TC 5.0.18 has the
capability to handle such a scenario or not.

cheers
Suraj



-Original Message-
From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 4:42 PM
To: '[EMAIL PROTECTED]'
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJ B's!


Think of a stateful session bean as an extension of the client. By
storing the remote reference inside your session, you are attempting to
persist your Client extension across 2 different clients (2 different
tomcat instances). I don't think this is a sensible idea, and I'm not
sure it's even allowed.

I would advise you not to store remote references inside your session
objects. Try storing just the current 'state' inside the session. Use a
ServiceLocator to get an instance of the session bean each time you need
it, using the current session to populate the state. This may work
better for you.

Regards,
Andy


-Original Message-
From: Suraj Prabhu
To: [EMAIL PROTECTED]
Sent: 19/03/2004 07:34
Subject: HttpSession Replication in Tomcat Cluster not working with
EJB's!

Hi everybody,


I am trying to cluster Tomcat Servers ver 5.0.18 (Two servers) and my
application servlets are accessing Stateful session beans. Typically,
the first invocation of the servlet gets the Remote of the SFSB and
stores it into the session. The other Tomcat's in the cluster throw up
an error ClassNotFoundException while loading persisted sessions. I
have the same war file deployed in all the Tomcats and the Tomcats in
turn talk to the same app server (JBOSS 3.2.3). I am attaching my
configuration and log outputs of both the servers. Would like to know if
this is a bug/limitation or is there a solution to it.

Cheers
Suraj

--
This is the log file o/p of the first server (which the client actually
is accessing):

INFO: Jk running ID=0 time=0/16  config=C:\Tomcat5\conf\jk2.properties
Mar 18, 2004 4:25:40 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5297 ms
Mar 18, 2004 4:26:20 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.9:4001
,10.5.18.9,4001, alive=16]


This is the log file o/p of the second server (which starts up and joins
the cluster after a session has been created in the first server)

Mar 18, 2004 4:25:12 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 
Mar 18, 2004 4:25:12 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1125 ms
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.18
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Cluster is about to start
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Sleeping for 2000 secs to establish cluster membership
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.27:400
1,10.5.18.27,4001, alive=45657]
Mar 18, 2004 4:25

RE: HttpSession Replication in Tomcat Cluster not working with EJ B's!

2004-03-24 Thread Suraj Prabhu
Andy,

I agree with your point about a SFSB being an extension of a client. But then, if I 
store the 'state' alone in the httpsession and update the state by using a new SFSB 
everytime, the whole concept of SFSB's are lost. I would rather use a stateless 
session bean and use httpsession for persisting my conversational state. (I know this 
line of thinking against use of SFSB has been advocated many a times and is a 
different discussion altogether)

I beleive what ur suggesting to be a workaround and is not an acceptable solution. My 
design requirement requires a SFSB and I need servlets to invoke my SFSB. I will also 
need to cluster the TC5 servers. Passing the reference within the servlet and between 
method calls is the only way to hold a handle and interact with a single instance of a 
SFSB.

If I use a JBOSS 3.2.3 server which comes bundled with TC then JBOSS takes care of my 
httpSession sharing between the various JBOSS servers in the cluster. (JBOSS has a 
different mechanism for httpSession sharing). But I would like to have a multitier 
cluster with seperate TC clusters and seperate JBOSS clusters. So the end question 
would be if TC 5.0.18 has the capability to handle such a scenario or not.

cheers
Suraj



-Original Message-
From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 4:42 PM
To: '[EMAIL PROTECTED]'
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJ B's!


Think of a stateful session bean as an extension of the client. By
storing the remote reference inside your session, you are attempting to
persist your Client extension across 2 different clients (2 different
tomcat instances). I don't think this is a sensible idea, and I'm not
sure it's even allowed.

I would advise you not to store remote references inside your session
objects. Try storing just the current 'state' inside the session. Use a
ServiceLocator to get an instance of the session bean each time you need
it, using the current session to populate the state. This may work
better for you.

Regards,
Andy


-Original Message-
From: Suraj Prabhu
To: [EMAIL PROTECTED]
Sent: 19/03/2004 07:34
Subject: HttpSession Replication in Tomcat Cluster not working with
EJB's!

Hi everybody,


I am trying to cluster Tomcat Servers ver 5.0.18 (Two servers) and my
application servlets are accessing Stateful session beans. Typically,
the first invocation of the servlet gets the Remote of the SFSB and
stores it into the session. The other Tomcat's in the cluster throw up
an error ClassNotFoundException while loading persisted sessions. I
have the same war file deployed in all the Tomcats and the Tomcats in
turn talk to the same app server (JBOSS 3.2.3). I am attaching my
configuration and log outputs of both the servers. Would like to know if
this is a bug/limitation or is there a solution to it.

Cheers
Suraj 

--
This is the log file o/p of the first server (which the client actually
is accessing):

INFO: Jk running ID=0 time=0/16  config=C:\Tomcat5\conf\jk2.properties
Mar 18, 2004 4:25:40 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5297 ms
Mar 18, 2004 4:26:20 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.9:4001
,10.5.18.9,4001, alive=16]


This is the log file o/p of the second server (which starts up and joins
the cluster after a session has been created in the first server)

Mar 18, 2004 4:25:12 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 
Mar 18, 2004 4:25:12 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1125 ms
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.18
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Cluster is about to start
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Sleeping for 2000 secs to establish cluster membership
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.27:400
1,10.5.18.27,4001, alive=45657]
Mar 18, 2004 4:25:14 PM org.apache.catalina.core.StandardHost
getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx ) 
Mar 18, 2004 4:25:14 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Tomcat5\conf\Catalina\localhost\admin.xml
Mar 18, 2004 4:25:15 PM

RE: HttpSession Replication in Tomcat Cluster not working with EJ B's!

2004-03-22 Thread Bodycombe, Andrew
Think of a stateful session bean as an extension of the client. By
storing the remote reference inside your session, you are attempting to
persist your Client extension across 2 different clients (2 different
tomcat instances). I don't think this is a sensible idea, and I'm not
sure it's even allowed.

I would advise you not to store remote references inside your session
objects. Try storing just the current 'state' inside the session. Use a
ServiceLocator to get an instance of the session bean each time you need
it, using the current session to populate the state. This may work
better for you.

Regards,
Andy


-Original Message-
From: Suraj Prabhu
To: [EMAIL PROTECTED]
Sent: 19/03/2004 07:34
Subject: HttpSession Replication in Tomcat Cluster not working with
EJB's!

Hi everybody,


I am trying to cluster Tomcat Servers ver 5.0.18 (Two servers) and my
application servlets are accessing Stateful session beans. Typically,
the first invocation of the servlet gets the Remote of the SFSB and
stores it into the session. The other Tomcat's in the cluster throw up
an error ClassNotFoundException while loading persisted sessions. I
have the same war file deployed in all the Tomcats and the Tomcats in
turn talk to the same app server (JBOSS 3.2.3). I am attaching my
configuration and log outputs of both the servers. Would like to know if
this is a bug/limitation or is there a solution to it.

Cheers
Suraj 

--
This is the log file o/p of the first server (which the client actually
is accessing):

INFO: Jk running ID=0 time=0/16  config=C:\Tomcat5\conf\jk2.properties
Mar 18, 2004 4:25:40 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5297 ms
Mar 18, 2004 4:26:20 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.9:4001
,10.5.18.9,4001, alive=16]


This is the log file o/p of the second server (which starts up and joins
the cluster after a session has been created in the first server)

Mar 18, 2004 4:25:12 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 
Mar 18, 2004 4:25:12 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1125 ms
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.18
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Cluster is about to start
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Sleeping for 2000 secs to establish cluster membership
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.27:400
1,10.5.18.27,4001, alive=45657]
Mar 18, 2004 4:25:14 PM org.apache.catalina.core.StandardHost
getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx ) 
Mar 18, 2004 4:25:14 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Tomcat5\conf\Catalina\localhost\admin.xml
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
Mar 18, 2004 4:25:16 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Tomcat5\conf\Catalina\localhost\balancer.xml
Mar 18, 2004 4:25:16 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Tomcat5\conf\Catalina\localhost\manager.xml
Mar 18, 2004 4:25:16 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /TestWeb from URL
file:C:/Tomcat5/webapps/TestWeb
Mar 18, 2004 4:25:17 PM org.apache.catalina.cluster.session.DeltaManager
start
INFO: Starting clustering manager...:/TestWeb
Mar 18, 2004 4:25:17 PM org.apache.catalina.cluster.session.DeltaManager
doLoad
SEVERE: ClassNotFoundException while loading persisted sessions:
java.lang.ClassNotFoundException: chnhr.EmployeeEditorSB
java.lang.ClassNotFoundException: chnhr.EmployeeEditorSB
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo

RE: HttpSession Replication in Tomcat Cluster not working with EJB's!

2004-03-20 Thread Filip Hanik \(lists\)
yes please, that would be helpful, what version of tomcat?

-Original Message-
From: Suraj Prabhu [mailto:[EMAIL PROTECTED]
Sent: Friday, March 19, 2004 11:49 PM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJB's!


Filip,

Would you like me to fwd the war file???

Cheers
Suraj

-Original Message-
From: Suraj Prabhu
Sent: Saturday, March 20, 2004 1:12 PM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJB's!


it's in a chnr.jar file inside my TestWeb.war

-Original Message-
From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 20, 2004 1:10 PM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJB's!


where is the class chnhr.EmployeeEditorSB stored?

-Original Message-
From: Suraj Prabhu [mailto:[EMAIL PROTECTED]
Sent: Friday, March 19, 2004 11:26 PM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJB's!


Filip,

Yes this class is on all the servers. Checked it up, no version clash
either.

Cheers.
Suraj

-Original Message-
From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 20, 2004 12:10 AM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJB's!


are you sure this class is on all the servers?

Filip

-Original Message-
From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED]
Sent: Friday, March 19, 2004 10:31 AM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJB's!


where is the class chnhr.EmployeeEditorSB stored?

Filip

-Original Message-
From: Suraj Prabhu [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 18, 2004 11:34 PM
To: [EMAIL PROTECTED]
Subject: HttpSession Replication in Tomcat Cluster not working with
EJB's!


Hi everybody,


I am trying to cluster Tomcat Servers ver 5.0.18 (Two servers) and my
application servlets are accessing Stateful session beans. Typically, the
first invocation of the servlet gets the Remote of the SFSB and stores it
into the session. The other Tomcat's in the cluster throw up an error
ClassNotFoundException while loading persisted sessions. I have the same
war file deployed in all the Tomcats and the Tomcats in turn talk to the
same app server (JBOSS 3.2.3). I am attaching my configuration and log
outputs of both the servers. Would like to know if this is a bug/limitation
or is there a solution to it.

Cheers
Suraj

--
This is the log file o/p of the first server (which the client actually is
accessing):

INFO: Jk running ID=0 time=0/16  config=C:\Tomcat5\conf\jk2.properties
Mar 18, 2004 4:25:40 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5297 ms
Mar 18, 2004 4:26:20 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.9:4001,10.
5.18.9,4001, alive=16]


This is the log file o/p of the second server (which starts up and joins the
cluster after a session has been created in the first server)

Mar 18, 2004 4:25:12 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 
Mar 18, 2004 4:25:12 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1125 ms
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.18
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Cluster is about to start
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Sleeping for 2000 secs to establish cluster membership
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.27:4001,10
.5.18.27,4001, alive=45657]
Mar 18, 2004 4:25:14 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Mar 18, 2004 4:25:14 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Tomcat5\conf\Catalina\localhost\admin.xml
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Mar 18, 2004 4:25:15 PM

RE: HttpSession Replication in Tomcat Cluster not working with EJB's!

2004-03-19 Thread Filip Hanik \(lists\)
where is the class chnhr.EmployeeEditorSB stored?

Filip

-Original Message-
From: Suraj Prabhu [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 18, 2004 11:34 PM
To: [EMAIL PROTECTED]
Subject: HttpSession Replication in Tomcat Cluster not working with
EJB's!


Hi everybody,


I am trying to cluster Tomcat Servers ver 5.0.18 (Two servers) and my
application servlets are accessing Stateful session beans. Typically, the
first invocation of the servlet gets the Remote of the SFSB and stores it
into the session. The other Tomcat's in the cluster throw up an error
ClassNotFoundException while loading persisted sessions. I have the same
war file deployed in all the Tomcats and the Tomcats in turn talk to the
same app server (JBOSS 3.2.3). I am attaching my configuration and log
outputs of both the servers. Would like to know if this is a bug/limitation
or is there a solution to it.

Cheers
Suraj

--
This is the log file o/p of the first server (which the client actually is
accessing):

INFO: Jk running ID=0 time=0/16  config=C:\Tomcat5\conf\jk2.properties
Mar 18, 2004 4:25:40 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5297 ms
Mar 18, 2004 4:26:20 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.9:4001,10.
5.18.9,4001, alive=16]


This is the log file o/p of the second server (which starts up and joins the
cluster after a session has been created in the first server)

Mar 18, 2004 4:25:12 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 
Mar 18, 2004 4:25:12 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1125 ms
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.18
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Cluster is about to start
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Sleeping for 2000 secs to establish cluster membership
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.27:4001,10
.5.18.27,4001, alive=45657]
Mar 18, 2004 4:25:14 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Mar 18, 2004 4:25:14 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Tomcat5\conf\Catalina\localhost\admin.xml
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
returnNull=true
Mar 18, 2004 4:25:16 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Tomcat5\conf\Catalina\localhost\balancer.xml
Mar 18, 2004 4:25:16 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Tomcat5\conf\Catalina\localhost\manager.xml
Mar 18, 2004 4:25:16 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /TestWeb from URL
file:C:/Tomcat5/webapps/TestWeb
Mar 18, 2004 4:25:17 PM org.apache.catalina.cluster.session.DeltaManager
start
INFO: Starting clustering manager...:/TestWeb
Mar 18, 2004 4:25:17 PM org.apache.catalina.cluster.session.DeltaManager
doLoad
SEVERE: ClassNotFoundException while loading persisted sessions:
java.lang.ClassNotFoundException: chnhr.EmployeeEditorSB
java.lang.ClassNotFoundException: chnhr.EmployeeEditorSB
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

RE: HttpSession Replication in Tomcat Cluster not working with EJB's!

2004-03-19 Thread Filip Hanik \(lists\)
are you sure this class is on all the servers?

Filip

-Original Message-
From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED]
Sent: Friday, March 19, 2004 10:31 AM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJB's!


where is the class chnhr.EmployeeEditorSB stored?

Filip

-Original Message-
From: Suraj Prabhu [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 18, 2004 11:34 PM
To: [EMAIL PROTECTED]
Subject: HttpSession Replication in Tomcat Cluster not working with
EJB's!


Hi everybody,


I am trying to cluster Tomcat Servers ver 5.0.18 (Two servers) and my
application servlets are accessing Stateful session beans. Typically, the
first invocation of the servlet gets the Remote of the SFSB and stores it
into the session. The other Tomcat's in the cluster throw up an error
ClassNotFoundException while loading persisted sessions. I have the same
war file deployed in all the Tomcats and the Tomcats in turn talk to the
same app server (JBOSS 3.2.3). I am attaching my configuration and log
outputs of both the servers. Would like to know if this is a bug/limitation
or is there a solution to it.

Cheers
Suraj

--
This is the log file o/p of the first server (which the client actually is
accessing):

INFO: Jk running ID=0 time=0/16  config=C:\Tomcat5\conf\jk2.properties
Mar 18, 2004 4:25:40 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5297 ms
Mar 18, 2004 4:26:20 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.9:4001,10.
5.18.9,4001, alive=16]


This is the log file o/p of the second server (which starts up and joins the
cluster after a session has been created in the first server)

Mar 18, 2004 4:25:12 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 
Mar 18, 2004 4:25:12 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1125 ms
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.18
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Cluster is about to start
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Sleeping for 2000 secs to establish cluster membership
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.27:4001,10
.5.18.27,4001, alive=45657]
Mar 18, 2004 4:25:14 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Mar 18, 2004 4:25:14 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Tomcat5\conf\Catalina\localhost\admin.xml
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
returnNull=true
Mar 18, 2004 4:25:16 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Tomcat5\conf\Catalina\localhost\balancer.xml
Mar 18, 2004 4:25:16 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Tomcat5\conf\Catalina\localhost\manager.xml
Mar 18, 2004 4:25:16 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /TestWeb from URL
file:C:/Tomcat5/webapps/TestWeb
Mar 18, 2004 4:25:17 PM org.apache.catalina.cluster.session.DeltaManager
start
INFO: Starting clustering manager...:/TestWeb
Mar 18, 2004 4:25:17 PM org.apache.catalina.cluster.session.DeltaManager
doLoad
SEVERE: ClassNotFoundException while loading persisted sessions:
java.lang.ClassNotFoundException: chnhr.EmployeeEditorSB
java.lang.ClassNotFoundException: chnhr.EmployeeEditorSB
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

RE: HttpSession Replication in Tomcat Cluster not working with EJB's!

2004-03-19 Thread Suraj Prabhu
Filip,

Yes this class is on all the servers. Checked it up, no version clash either.

Cheers.
Suraj

-Original Message-
From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 20, 2004 12:10 AM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJB's!


are you sure this class is on all the servers?

Filip

-Original Message-
From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED]
Sent: Friday, March 19, 2004 10:31 AM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJB's!


where is the class chnhr.EmployeeEditorSB stored?

Filip

-Original Message-
From: Suraj Prabhu [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 18, 2004 11:34 PM
To: [EMAIL PROTECTED]
Subject: HttpSession Replication in Tomcat Cluster not working with
EJB's!


Hi everybody,


I am trying to cluster Tomcat Servers ver 5.0.18 (Two servers) and my
application servlets are accessing Stateful session beans. Typically, the
first invocation of the servlet gets the Remote of the SFSB and stores it
into the session. The other Tomcat's in the cluster throw up an error
ClassNotFoundException while loading persisted sessions. I have the same
war file deployed in all the Tomcats and the Tomcats in turn talk to the
same app server (JBOSS 3.2.3). I am attaching my configuration and log
outputs of both the servers. Would like to know if this is a bug/limitation
or is there a solution to it.

Cheers
Suraj

--
This is the log file o/p of the first server (which the client actually is
accessing):

INFO: Jk running ID=0 time=0/16  config=C:\Tomcat5\conf\jk2.properties
Mar 18, 2004 4:25:40 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5297 ms
Mar 18, 2004 4:26:20 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.9:4001,10.
5.18.9,4001, alive=16]


This is the log file o/p of the second server (which starts up and joins the
cluster after a session has been created in the first server)

Mar 18, 2004 4:25:12 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 
Mar 18, 2004 4:25:12 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1125 ms
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.18
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Cluster is about to start
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Sleeping for 2000 secs to establish cluster membership
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.27:4001,10
.5.18.27,4001, alive=45657]
Mar 18, 2004 4:25:14 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Mar 18, 2004 4:25:14 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Tomcat5\conf\Catalina\localhost\admin.xml
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
returnNull=true
Mar 18, 2004 4:25:16 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Tomcat5\conf\Catalina\localhost\balancer.xml
Mar 18, 2004 4:25:16 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Tomcat5\conf\Catalina\localhost\manager.xml
Mar 18, 2004 4:25:16 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /TestWeb from URL
file:C:/Tomcat5/webapps/TestWeb
Mar 18, 2004 4:25:17 PM org.apache.catalina.cluster.session.DeltaManager
start
INFO: Starting clustering manager...:/TestWeb
Mar 18, 2004 4:25:17 PM org.apache.catalina.cluster.session.DeltaManager
doLoad
SEVERE: ClassNotFoundException while loading persisted sessions:
java.lang.ClassNotFoundException: chnhr.EmployeeEditorSB
java.lang.ClassNotFoundException: chnhr.EmployeeEditorSB

RE: HttpSession Replication in Tomcat Cluster not working with EJB's!

2004-03-19 Thread Filip Hanik \(lists\)
where is the class chnhr.EmployeeEditorSB stored?

-Original Message-
From: Suraj Prabhu [mailto:[EMAIL PROTECTED]
Sent: Friday, March 19, 2004 11:26 PM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJB's!


Filip,

Yes this class is on all the servers. Checked it up, no version clash
either.

Cheers.
Suraj

-Original Message-
From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 20, 2004 12:10 AM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJB's!


are you sure this class is on all the servers?

Filip

-Original Message-
From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED]
Sent: Friday, March 19, 2004 10:31 AM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJB's!


where is the class chnhr.EmployeeEditorSB stored?

Filip

-Original Message-
From: Suraj Prabhu [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 18, 2004 11:34 PM
To: [EMAIL PROTECTED]
Subject: HttpSession Replication in Tomcat Cluster not working with
EJB's!


Hi everybody,


I am trying to cluster Tomcat Servers ver 5.0.18 (Two servers) and my
application servlets are accessing Stateful session beans. Typically, the
first invocation of the servlet gets the Remote of the SFSB and stores it
into the session. The other Tomcat's in the cluster throw up an error
ClassNotFoundException while loading persisted sessions. I have the same
war file deployed in all the Tomcats and the Tomcats in turn talk to the
same app server (JBOSS 3.2.3). I am attaching my configuration and log
outputs of both the servers. Would like to know if this is a bug/limitation
or is there a solution to it.

Cheers
Suraj

--
This is the log file o/p of the first server (which the client actually is
accessing):

INFO: Jk running ID=0 time=0/16  config=C:\Tomcat5\conf\jk2.properties
Mar 18, 2004 4:25:40 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5297 ms
Mar 18, 2004 4:26:20 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.9:4001,10.
5.18.9,4001, alive=16]


This is the log file o/p of the second server (which starts up and joins the
cluster after a session has been created in the first server)

Mar 18, 2004 4:25:12 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 
Mar 18, 2004 4:25:12 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1125 ms
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.18
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Cluster is about to start
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Sleeping for 2000 secs to establish cluster membership
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.27:4001,10
.5.18.27,4001, alive=45657]
Mar 18, 2004 4:25:14 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Mar 18, 2004 4:25:14 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Tomcat5\conf\Catalina\localhost\admin.xml
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
returnNull=true
Mar 18, 2004 4:25:16 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Tomcat5\conf\Catalina\localhost\balancer.xml
Mar 18, 2004 4:25:16 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Tomcat5\conf\Catalina\localhost\manager.xml
Mar 18, 2004 4:25:16 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /TestWeb from URL
file:C:/Tomcat5/webapps/TestWeb
Mar 18, 2004 4:25:17 PM org.apache.catalina.cluster.session.DeltaManager
start
INFO: Starting clustering manager...:/TestWeb
Mar

RE: HttpSession Replication in Tomcat Cluster not working with EJB's!

2004-03-19 Thread Suraj Prabhu
it's in a chnr.jar file inside my TestWeb.war

-Original Message-
From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 20, 2004 1:10 PM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJB's!


where is the class chnhr.EmployeeEditorSB stored?

-Original Message-
From: Suraj Prabhu [mailto:[EMAIL PROTECTED]
Sent: Friday, March 19, 2004 11:26 PM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJB's!


Filip,

Yes this class is on all the servers. Checked it up, no version clash
either.

Cheers.
Suraj

-Original Message-
From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 20, 2004 12:10 AM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJB's!


are you sure this class is on all the servers?

Filip

-Original Message-
From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED]
Sent: Friday, March 19, 2004 10:31 AM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJB's!


where is the class chnhr.EmployeeEditorSB stored?

Filip

-Original Message-
From: Suraj Prabhu [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 18, 2004 11:34 PM
To: [EMAIL PROTECTED]
Subject: HttpSession Replication in Tomcat Cluster not working with
EJB's!


Hi everybody,


I am trying to cluster Tomcat Servers ver 5.0.18 (Two servers) and my
application servlets are accessing Stateful session beans. Typically, the
first invocation of the servlet gets the Remote of the SFSB and stores it
into the session. The other Tomcat's in the cluster throw up an error
ClassNotFoundException while loading persisted sessions. I have the same
war file deployed in all the Tomcats and the Tomcats in turn talk to the
same app server (JBOSS 3.2.3). I am attaching my configuration and log
outputs of both the servers. Would like to know if this is a bug/limitation
or is there a solution to it.

Cheers
Suraj

--
This is the log file o/p of the first server (which the client actually is
accessing):

INFO: Jk running ID=0 time=0/16  config=C:\Tomcat5\conf\jk2.properties
Mar 18, 2004 4:25:40 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5297 ms
Mar 18, 2004 4:26:20 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.9:4001,10.
5.18.9,4001, alive=16]


This is the log file o/p of the second server (which starts up and joins the
cluster after a session has been created in the first server)

Mar 18, 2004 4:25:12 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 
Mar 18, 2004 4:25:12 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1125 ms
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.18
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Cluster is about to start
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Sleeping for 2000 secs to establish cluster membership
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.27:4001,10
.5.18.27,4001, alive=45657]
Mar 18, 2004 4:25:14 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Mar 18, 2004 4:25:14 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Tomcat5\conf\Catalina\localhost\admin.xml
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
returnNull=true
Mar 18, 2004 4:25:16 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Tomcat5\conf\Catalina\localhost\balancer.xml
Mar 18, 2004 4:25:16 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Tomcat5\conf\Catalina\localhost\manager.xml
Mar 18, 2004 4:25:16 PM

RE: HttpSession Replication in Tomcat Cluster not working with EJB's!

2004-03-19 Thread Suraj Prabhu
Filip,

Would you like me to fwd the war file???

Cheers
Suraj

-Original Message-
From: Suraj Prabhu 
Sent: Saturday, March 20, 2004 1:12 PM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJB's!


it's in a chnr.jar file inside my TestWeb.war

-Original Message-
From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 20, 2004 1:10 PM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJB's!


where is the class chnhr.EmployeeEditorSB stored?

-Original Message-
From: Suraj Prabhu [mailto:[EMAIL PROTECTED]
Sent: Friday, March 19, 2004 11:26 PM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJB's!


Filip,

Yes this class is on all the servers. Checked it up, no version clash
either.

Cheers.
Suraj

-Original Message-
From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 20, 2004 12:10 AM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJB's!


are you sure this class is on all the servers?

Filip

-Original Message-
From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED]
Sent: Friday, March 19, 2004 10:31 AM
To: Tomcat Users List
Subject: RE: HttpSession Replication in Tomcat Cluster not working with
EJB's!


where is the class chnhr.EmployeeEditorSB stored?

Filip

-Original Message-
From: Suraj Prabhu [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 18, 2004 11:34 PM
To: [EMAIL PROTECTED]
Subject: HttpSession Replication in Tomcat Cluster not working with
EJB's!


Hi everybody,


I am trying to cluster Tomcat Servers ver 5.0.18 (Two servers) and my
application servlets are accessing Stateful session beans. Typically, the
first invocation of the servlet gets the Remote of the SFSB and stores it
into the session. The other Tomcat's in the cluster throw up an error
ClassNotFoundException while loading persisted sessions. I have the same
war file deployed in all the Tomcats and the Tomcats in turn talk to the
same app server (JBOSS 3.2.3). I am attaching my configuration and log
outputs of both the servers. Would like to know if this is a bug/limitation
or is there a solution to it.

Cheers
Suraj

--
This is the log file o/p of the first server (which the client actually is
accessing):

INFO: Jk running ID=0 time=0/16  config=C:\Tomcat5\conf\jk2.properties
Mar 18, 2004 4:25:40 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5297 ms
Mar 18, 2004 4:26:20 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.9:4001,10.
5.18.9,4001, alive=16]


This is the log file o/p of the second server (which starts up and joins the
cluster after a session has been created in the first server)

Mar 18, 2004 4:25:12 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 
Mar 18, 2004 4:25:12 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1125 ms
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.18
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Cluster is about to start
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Sleeping for 2000 secs to establish cluster membership
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.27:4001,10
.5.18.27,4001, alive=45657]
Mar 18, 2004 4:25:14 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Mar 18, 2004 4:25:14 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Tomcat5\conf\Catalina\localhost\admin.xml
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
returnNull=true
Mar 18, 2004 4:25:16 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\Tomcat5

HttpSession Replication in Tomcat Cluster not working with EJB's!

2004-03-18 Thread Suraj Prabhu
Hi everybody,


I am trying to cluster Tomcat Servers ver 5.0.18 (Two servers) and my application 
servlets are accessing Stateful session beans. Typically, the first invocation of the 
servlet gets the Remote of the SFSB and stores it into the session. The other Tomcat's 
in the cluster throw up an error ClassNotFoundException while loading persisted 
sessions. I have the same war file deployed in all the Tomcats and the Tomcats in 
turn talk to the same app server (JBOSS 3.2.3). I am attaching my configuration and 
log outputs of both the servers. Would like to know if this is a bug/limitation or is 
there a solution to it.

Cheers
Suraj 

--
This is the log file o/p of the first server (which the client actually is accessing):

INFO: Jk running ID=0 time=0/16  config=C:\Tomcat5\conf\jk2.properties
Mar 18, 2004 4:25:40 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5297 ms
Mar 18, 2004 4:26:20 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded
INFO: Replication member 
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.9:4001,10.5.18.9,4001,
 alive=16]


This is the log file o/p of the second server (which starts up and joins the cluster 
after a session has been created in the first server)

Mar 18, 2004 4:25:12 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 
Mar 18, 2004 4:25:12 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1125 ms
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.18
Mar 18, 2004 4:25:12 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster start
INFO: Cluster is about to start
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster start
INFO: Sleeping for 2000 secs to establish cluster membership
Mar 18, 2004 4:25:12 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded
INFO: Replication member 
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.5.18.27:4001,10.5.18.27,4001,
 alive=45657]
Mar 18, 2004 4:25:14 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx ) 
Mar 18, 2004 4:25:14 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL 
file:C:\Tomcat5\conf\Catalina\localhost\admin.xml
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources init
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources init
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
Mar 18, 2004 4:25:15 PM org.apache.struts.util.PropertyMessageResources init
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', 
returnNull=true
Mar 18, 2004 4:25:16 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL 
file:C:\Tomcat5\conf\Catalina\localhost\balancer.xml
Mar 18, 2004 4:25:16 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL 
file:C:\Tomcat5\conf\Catalina\localhost\manager.xml
Mar 18, 2004 4:25:16 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /TestWeb from URL 
file:C:/Tomcat5/webapps/TestWeb
Mar 18, 2004 4:25:17 PM org.apache.catalina.cluster.session.DeltaManager start
INFO: Starting clustering manager...:/TestWeb
Mar 18, 2004 4:25:17 PM org.apache.catalina.cluster.session.DeltaManager doLoad
SEVERE: ClassNotFoundException while loading persisted sessions: 
java.lang.ClassNotFoundException: chnhr.EmployeeEditorSB
java.lang.ClassNotFoundException: chnhr.EmployeeEditorSB
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.readObject(ObjectInputStream.java:324)
 

Tomcat Cluster and Load Balancer

2004-01-19 Thread Allistair Crossley
Hi Guys,

Could anyone recommend a good place to start for setting up a Tomcat cluster on the 
same server? I also need a good/free load balancer that can integrate with this 
cluster. I understand Tomcat 5 can be clustered with a load balancer but have never 
done anything like it and would appreciate some newbie cluster pointers.

At present we are running Tomcat 5.0.16 as a Windows 2000 service which is fed by IIS 
5 via the JK2 ISAPI filter. How would I get IIS to talk to a load balancer and then to 
a Tomcat cluster?

Also the server has 2 x 1.5Ghz CPUs, 2GB RAM if this is useful information to this 
topic.

I'd be obliged if anybody could spare some time to advise on this.

Many thanks indeed.


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Servlet context in tomcat cluster.

2003-11-03 Thread Shapira, Yoav

Howdy,
The same code putting the object in the context will execute on all
machines in the cluster.  So while it won't be the same ServletContext
object (it'd be a different memory address in a different JVM instance),
the context will have the same attributes because your code executing in
the cluster is consistent.

If you mean to do something where client1 goes into tomcat1, puts object
in context, and that object is now present in all contexts in the
cluster, you're on your own.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 1:07 AM
To: Tomcat Users List
Subject: Servlet context in tomcat cluster.

Hi,
I need a quick answer. In Tomcat clustered environment(I dont know the
configuration) is it possible to access the same servlet context on
different machines from jsp and servlets. Is there any special coding
required to do this. I wnat to put an object in the servlet context
which
is
to be accessed by servlets and jsps.

Antony Paul.

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




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]



Servlet context in tomcat cluster.

2003-11-02 Thread Antony Paul
Hi,
I need a quick answer. In Tomcat clustered environment(I dont know the
configuration) is it possible to access the same servlet context on
different machines from jsp and servlets. Is there any special coding
required to do this. I wnat to put an object in the servlet context which is
to be accessed by servlets and jsps.

Antony Paul.

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



RE: Tomcat cluster tuning

2003-09-12 Thread Ralph Einfeldt
Sorry can't give a recommendation.

We had different results even for (nearly) the same
software for different sites. For one site the IBM JDK 
worked best, for the other Sun's.

Any given result may be wothless with the next version 
of either jdk. (Even with just changes in the minor 
revision)

You have to test that
- in your environment
- with your application
- with the expected behaviour of the users

Even small changes in one of these setting can change 
the result which jdk is better for you. (At least that's 
our experience)

 -Original Message-
 From: Cristopher Daniluk [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 11, 2003 7:04 PM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat cluster tuning
 
 
 Are there any recommendations for what JVM would work best?
 
 We're not doing anything fancy, so presumably any VM that works well
 with tomcat would work well for us. Are there any sites that 
 talk about
 the different JVM tuning options that affect Tomcat? I 
 haven't seen that
 many.
 

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



Tomcat cluster tuning

2003-09-11 Thread Cristopher Daniluk
We are runing a cluster of 3 apache servers and 2 tomcat servers
connected via AJP w/Oracle on backend.

The cluster has been performing very well but we've had a recent load
spike that's causing the tomcat servers to start swapping pretty
hardcore despite JVM limitations.

What is the -Xmx option limiting? Threads? Defined services? Instances
of Tomcat?

I would've thought that it would limit the entire tomcat instance, but
we have been far exceeding the 768mb limit we set.

We're connecting to Oracle on the back end via the JDBC thin client.
When the site starts swapping, performance on Oracle queries goes
exponentially downhill. A non-db page takes about 1 second to load
before swapping, vs 5 seconds to load when its swapping. On the other
hand, a db intensive page takes about 5 seconds to load normally, vs
about 40-50 seconds when it begins to swap. That number begins to crawl
quickly up until it exceeds the 5 minute max execution time and Tomcat
cuts the request off.

The servers are basically identically configured P1.8ghz machines with
1gb ram each. The connector line from server.xml is:

  Connector
className=org.apache.coyote.tomcat4.CoyoteConnector
port=8009 minProcessors=5 maxProcessors=100
enableLookups=true redirectPort=8443
acceptCount=100 debug=0 connectionTimeout=-1
 
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
/

And we're running Apache 2.0.47 w/mod_jk1 and AJP1.3. the
workers.properties is set to nonweighted balancing.

Are there any options to tune tomcat to reduce memory footpritn and to
let it queue more? We were initially running more maxProcessors but I
turned it down hoping to alleviate the congestion. Tried turning it up
thinking maybe the accept queue was the problem too, but that made it
worse.

Thanks,

Cris



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



RE: Tomcat cluster tuning

2003-09-11 Thread Ralph Einfeldt
mx is limiting the heap of a java process.

In other words:
It limits the total heap for one tomcat instance.

The total memory can be much higher:

- stacksize per thread
  Some vm's let you set these values (-Xss).
  If you have some hundred of threads that can make up some memory.

- static memory (like string constants, the code, ...)
  That pretty much defined at compile time.

- and may be further sorts of memories that depend on 
  the vendor and version of the jdk.

Regarding your config:

You can try to play with the combination of
maxProcessors
connectionTimeout
acceptCount

I'm not shure how the accepted but not processed 
request are handled (wether they are queued in one
thread, or if each has it's own thread)

There isn't much more you can change in tomcat.
The best recommendation I have is to find out where 
the memory comes from and either to cure the cause or
find out that you have to live with that memory usage
and spend more memory.

 -Original Message-
 From: Cristopher Daniluk [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 11, 2003 5:33 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat cluster tuning
 
 
 
 What is the -Xmx option limiting? Threads? Defined services? Instances
 of Tomcat?
 
 I would've thought that it would limit the entire tomcat instance, but
 we have been far exceeding the 768mb limit we set.
 
 
   Connector
 className=org.apache.coyote.tomcat4.CoyoteConnector
 port=8009 minProcessors=5 maxProcessors=100
 enableLookups=true redirectPort=8443
 acceptCount=100 debug=0 connectionTimeout=-1
  
 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
 /
 

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



RE: Tomcat cluster tuning

2003-09-11 Thread Cristopher Daniluk
Are there any recommendations for what JVM would work best?

We're not doing anything fancy, so presumably any VM that works well
with tomcat would work well for us. Are there any sites that talk about
the different JVM tuning options that affect Tomcat? I haven't seen that
many.

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 11, 2003 12:46 PM
To: Tomcat Users List
Subject: RE: Tomcat cluster tuning


mx is limiting the heap of a java process.

In other words:
It limits the total heap for one tomcat instance.

The total memory can be much higher:

- stacksize per thread
  Some vm's let you set these values (-Xss).
  If you have some hundred of threads that can make up some memory.

- static memory (like string constants, the code, ...)
  That pretty much defined at compile time.

- and may be further sorts of memories that depend on 
  the vendor and version of the jdk.

Regarding your config:

You can try to play with the combination of
   maxProcessors
   connectionTimeout
   acceptCount

I'm not shure how the accepted but not processed 
request are handled (wether they are queued in one
thread, or if each has it's own thread)

There isn't much more you can change in tomcat.
The best recommendation I have is to find out where 
the memory comes from and either to cure the cause or
find out that you have to live with that memory usage
and spend more memory.

 -Original Message-
 From: Cristopher Daniluk [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 11, 2003 5:33 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat cluster tuning
 
 
 
 What is the -Xmx option limiting? Threads? Defined services? 
Instances 
 of Tomcat?
 
 I would've thought that it would limit the entire tomcat 
instance, but 
 we have been far exceeding the 768mb limit we set.
 
 
   Connector 
 className=org.apache.coyote.tomcat4.CoyoteConnector
 port=8009 minProcessors=5 maxProcessors=100
 enableLookups=true redirectPort=8443
 acceptCount=100 debug=0 connectionTimeout=-1
  
 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
 /
 

-
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: RE: File replication (Tomcat cluster ?)

2003-07-17 Thread Nicolas LANTERNIER
For the deployment, there's no problem,

But my application allow users to upload files in Tomcat, so I need a
synchronisation between my 2 tomcat

-Message d'origine-
De : David Rees [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 16 juillet 2003 20:34
À : Tomcat Users List
Objet : Re: RE: File replication (Tomcat cluster ?)


Simon Pabst said:

 Or you just set up a script/cronjob to do an rsync or scp/rcp between the
 two local directories.

 Don't think Tomcat itself has anything which makes that possible (correct
 me if i'm wrong), maybe Tomcat 5 will.

This is the method I would suggest using.  Besides this, you can change
your deployment procedures to deploy on all servers instead of just one.

-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: File replication (Tomcat cluster ?)

2003-07-17 Thread David Rees
Nicolas LANTERNIER wrote:
For the deployment, there's no problem,

But my application allow users to upload files in Tomcat, so I need a
synchronisation between my 2 tomcat
Then your best bet is either use NFS orother shared filesystem (which 
IMO somewhat defeats the purpose of clustering Tomcat unless your goals 
are to only spread out the workload) or to implement the file 
distribution in your application itself or rsync or some other mechanism 
as someone else suggested.

-Dave

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


Tomcat Integration with Apache (Tomcat cluster)

2003-07-17 Thread Dasun Buddhika Ratnayake
Hi all,

I'm searching for the best way to Integrate tomcat with apache.
is it using mod_jk or mod_webapp, or anyother method.

regards
Dasun

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



Re: Tomcat Integration with Apache (Tomcat cluster)

2003-07-17 Thread Juan Nin
From: Dasun Buddhika Ratnayake [EMAIL PROTECTED]

 I'm searching for the best way to Integrate tomcat with apache.
 is it using mod_jk or mod_webapp, or anyother method.

use mod_jk
mod_webapp is deprecated

regards,

Juan


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



Re: Tomcat Integration with Apache (Tomcat cluster)

2003-07-17 Thread Simon Pabst
Use Apache 2 with worker mpm if you want round robin to work with mod_jk1/2 
sticky session.
Use mod_jk 1 or 2 as connector.

See
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html
http://www.johnturner.com/howto/apache-tomcat-howto.html
http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Jk2Connector
At 14:35 17.07.2003 +0600, you wrote:
Hi all,

I'm searching for the best way to Integrate tomcat with apache.
is it using mod_jk or mod_webapp, or anyother method.
regards
Dasun
-
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]


File replication (Tomcat cluster ?)

2003-07-16 Thread Nicolas LANTERNIER
Hello,

I have two Tomcat Servers working in session cluster and I need to replicate
the content of the Webapp directory.

Is it possible ? and how to configure it ?

 ... Sorry for my poor english
___
 Nicou


Re: File replication (Tomcat cluster ?)

2003-07-16 Thread David Rees
Nicolas LANTERNIER wrote:
I have two Tomcat Servers working in session cluster and I need to replicate
the content of the Webapp directory.
Is it possible ? and how to configure it ?
This is not something that Tomcat will handle.  You will need to setup 
your own replication of the document root.

-Dave

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


Re: File replication (Tomcat cluster ?)

2003-07-16 Thread Simon Pabst
Normally there's no need for replicating your webapp,
just put it somewhere outside the tomcat directories and point the 
application contexts in both tomcats to that directory (with absolute 
pathnames)

At 17:13 16.07.2003 +0200, you wrote:
Hello,

I have two Tomcat Servers working in session cluster and I need to replicate
the content of the Webapp directory.
Is it possible ? and how to configure it ?

 ... Sorry for my poor english
___
 Nicou


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


Re: RE: File replication (Tomcat cluster ?)

2003-07-16 Thread Simon Pabst
Oh, didn't realize you're on different servers,
too much thinking in our own setup, sry ;-)

Hmm NFS has its own file caches so you could do that,
besides Tomcat caches stuff in its own local work directory and Ram.

Or you just set up a script/cronjob to do an rsync or scp/rcp between the two local 
directories.

Don't think Tomcat itself has anything which makes that possible (correct me if i'm 
wrong), maybe Tomcat 5 will.



Tomcat Users List [EMAIL PROTECTED] schrieb am 16.07.03 18:39:51:
 
 So I should share the same directory for the Tomcat Servers, with nfs ?
 
 Is It a Good Solution for High Load environment ?
 
 -Message d'origine-
 De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Envoye : mercredi 16 juillet 2003 18:22
 A : Tomcat Users List
 Objet : Re: File replication (Tomcat cluster ?)
 
 
 Normally there's no need for replicating your webapp,
 just put it somewhere outside the tomcat directories and point the
 application contexts in both tomcats to that directory (with absolute
 pathnames)
 
 At 17:13 16.07.2003 +0200, you wrote:
 Hello,
 
 I have two Tomcat Servers working in session cluster and I need to
 replicate
 the content of the Webapp directory.
 
 Is it possible ? and how to configure it ?
 
   ... Sorry for my poor english
 ___
   Nicou
 
 
 -
 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]
 

-- 
Simon Pabst

E-Mail: [EMAIL PROTECTED]


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



Re: RE: File replication (Tomcat cluster ?)

2003-07-16 Thread David Rees
Simon Pabst said:

 Or you just set up a script/cronjob to do an rsync or scp/rcp between the
 two local directories.

 Don't think Tomcat itself has anything which makes that possible (correct
 me if i'm wrong), maybe Tomcat 5 will.

This is the method I would suggest using.  Besides this, you can change
your deployment procedures to deploy on all servers instead of just one.

-Dave

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



TOMCAT cluster ... request info

2003-07-11 Thread Tascino Antonio
Hi all,  
  
 we need to replicate HTTP session between TOMCAT istance/cluster on Win2000
(and in the next-time on Tru64 5.1B).  
  
We have TOMCAT v.4.0.6 (but we can change it).  
  
We have done some test with procedure suggest on TheServerSide.COM site -
http://www.theserverside.com/resources/article.jsp?l=Tomcatbut, but we have
some problems when try to use TOMCAT session example : 
---
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.
exception 
java.lang.NullPointerException
at
org.apache.catalina.session.InMemoryReplicationManager.createSession(InMemor
yReplicationManager.java:212)
at
org.apache.catalina.session.InMemoryReplicationManager.createSession(InMemor
yReplicationManager.java:242)
at
org.apache.catalina.connector.HttpRequestBase.doGetSession(HttpRequestBase.j
ava:1134)

-
  
Do you have a suggestion about this ? What's tomcat's module to use ? any
servlets examples ? What's the better TOMCAT version ?  
  
Thanks in advance.  
  
Best Regards  
 Tony


Re: TOMCAT cluster ... request info

2003-07-11 Thread Simon Pabst
I'd try a more recent version of the session replication stuff, which will 
be used in tomcat 5 also (think it uses a similar codebase like that 
javagroups stuff):
http://cvs.apache.org/~fhanik/index.html

However there's an obstacle (true for that older version too)
Make sure all your session attributes implement java.io.Serializable
else Session replication (and your webapp) won't work
At 17:00 11.07.2003 +0200, you wrote:
Hi all,

 we need to replicate HTTP session between TOMCAT istance/cluster on Win2000
(and in the next-time on Tru64 5.1B).
We have TOMCAT v.4.0.6 (but we can change it).

We have done some test with procedure suggest on TheServerSide.COM site -
http://www.theserverside.com/resources/article.jsp?l=Tomcatbut, but we have
some problems when try to use TOMCAT session example :
---
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
at
org.apache.catalina.session.InMemoryReplicationManager.createSession(InMemor
yReplicationManager.java:212)
at
org.apache.catalina.session.InMemoryReplicationManager.createSession(InMemor
yReplicationManager.java:242)
at
org.apache.catalina.connector.HttpRequestBase.doGetSession(HttpRequestBase.j
ava:1134)

-
Do you have a suggestion about this ? What's tomcat's module to use ? any
servlets examples ? What's the better TOMCAT version ?
Thanks in advance.

Best Regards
 Tony


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


Deserializing data objects using InMemoryReplicationManager on Tomcat cluster

2003-06-13 Thread STEVESCHIERHOLZ
I have noticed when using the InMemoryReplicationManager for web
applications on a Tomcat cluster that you will encounter a
ClassNotFoundException when trying to deserialize the session contents of
serialized data objects specific to the web application (i.e. a given web
application may have an Employee class that is stored in the session).
Although this ClassNotFoundException is thrown by the
InMemoryReplicationManager, it appears that the class actually is
deserialized and replicated across the nodes of the cluster.

My question is if this is an accurate assertion despite the
ClassNotFoundException?  Also, why is there a ClassNotFoundException being
thrown?  Is this because the InMemoryReplicationManager does not use the Web
Application Class Loader, Shared Class Loader, etc.?


RE: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster

2003-06-13 Thread Filip Hanik
I haven't seen this problem,
where is your Employee class file sitting?

Filip

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 13, 2003 8:24 AM
 To: [EMAIL PROTECTED]
 Subject: Deserializing data objects using InMemoryReplicationManager on
 Tomcat cluster


 I have noticed when using the InMemoryReplicationManager for web
 applications on a Tomcat cluster that you will encounter a
 ClassNotFoundException when trying to deserialize the session contents of
 serialized data objects specific to the web application (i.e. a given web
 application may have an Employee class that is stored in the session).
 Although this ClassNotFoundException is thrown by the
 InMemoryReplicationManager, it appears that the class actually is
 deserialized and replicated across the nodes of the cluster.

 My question is if this is an accurate assertion despite the
 ClassNotFoundException?  Also, why is there a ClassNotFoundException being
 thrown?  Is this because the InMemoryReplicationManager does not
 use the Web
 Application Class Loader, Shared Class Loader, etc.?



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



RE: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster

2003-06-13 Thread STEVESCHIERHOLZ
WEB-INF/classes/some.package.Employee

If this Employee object is put in the session and then replicated across the
nodes for the given web application, the other nodes will have
ClassNotFoundExceptions when the InMemoryReplicationManager goes to
deserialize the session contents.  I see this exception in catalina.out when
the debug level for the InMemoryReplicationManager is set to 10.  

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2003 11:01 AM
To: Tomcat Users List
Subject: RE: Deserializing data objects using InMemoryReplicationManager on
Tomcat cluster


I haven't seen this problem,
where is your Employee class file sitting?

Filip

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 13, 2003 8:24 AM
 To: [EMAIL PROTECTED]
 Subject: Deserializing data objects using InMemoryReplicationManager 
 on Tomcat cluster


 I have noticed when using the InMemoryReplicationManager for web 
 applications on a Tomcat cluster that you will encounter a 
 ClassNotFoundException when trying to deserialize the session contents 
 of serialized data objects specific to the web application (i.e. a 
 given web application may have an Employee class that is stored in the 
 session). Although this ClassNotFoundException is thrown by the 
 InMemoryReplicationManager, it appears that the class actually is 
 deserialized and replicated across the nodes of the cluster.

 My question is if this is an accurate assertion despite the 
 ClassNotFoundException?  Also, why is there a ClassNotFoundException 
 being thrown?  Is this because the InMemoryReplicationManager does not 
 use the Web Application Class Loader, Shared Class Loader, etc.?



-
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: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster

2003-06-13 Thread Filip Hanik
it should be in

WEB-INF/classes/some/package/Employee.class is that what you meant?

never had this problem myself, what version of Tomcat? also, can you send
the log trace for this

Filip

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 13, 2003 9:10 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Deserializing data objects using InMemoryReplicationManager
 on Tomcat cluster


 WEB-INF/classes/some.package.Employee

 If this Employee object is put in the session and then replicated
 across the
 nodes for the given web application, the other nodes will have
 ClassNotFoundExceptions when the InMemoryReplicationManager goes to
 deserialize the session contents.  I see this exception in
 catalina.out when
 the debug level for the InMemoryReplicationManager is set to 10.

 -Original Message-
 From: Filip Hanik [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 13, 2003 11:01 AM
 To: Tomcat Users List
 Subject: RE: Deserializing data objects using
 InMemoryReplicationManager on
 Tomcat cluster


 I haven't seen this problem,
 where is your Employee class file sitting?

 Filip

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 13, 2003 8:24 AM
  To: [EMAIL PROTECTED]
  Subject: Deserializing data objects using InMemoryReplicationManager
  on Tomcat cluster
 
 
  I have noticed when using the InMemoryReplicationManager for web
  applications on a Tomcat cluster that you will encounter a
  ClassNotFoundException when trying to deserialize the session contents
  of serialized data objects specific to the web application (i.e. a
  given web application may have an Employee class that is stored in the
  session). Although this ClassNotFoundException is thrown by the
  InMemoryReplicationManager, it appears that the class actually is
  deserialized and replicated across the nodes of the cluster.
 
  My question is if this is an accurate assertion despite the
  ClassNotFoundException?  Also, why is there a ClassNotFoundException
  being thrown?  Is this because the InMemoryReplicationManager does not
  use the Web Application Class Loader, Shared Class Loader, etc.?
 


 -
 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: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster

2003-06-13 Thread STEVESCHIERHOLZ
Sorry, I meant / not .

I have this running on a two node cluster, and even though the logs show
this message on both nodes in catalina.out, I know that the data is
replicating.  I can shutdown one node, and the session data has persisted on
the other.

Here is the log message:

[InMemoryReplicationManager] Failed to deserialize the session!
java.lang.ClassNotFoundException:
[Lnet.afni.webdevelopment.peoplesoftbonus.data.BonusSearchData;
at org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown
Source)
at org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown
Source)
at
org.apache.catalina.session.ReplicationStream.resolveClass(ReplicationStream
.java:124)
at
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
at
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1560)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1271)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at org.apache.catalina.session.StandardSession.readObject(Unknown
Source)
at
org.apache.catalina.session.StandardSession.readObjectData(Unknown Source)
at
org.apache.catalina.session.ReplicatedSession.readObjectData(ReplicatedSessi
on.java:334)
at
org.apache.catalina.session.InMemoryReplicationManager.readSession(InMemoryR
eplicationManager.java:529)
at
org.apache.catalina.session.InMemoryReplicationManager.messageReceived(InMem
oryReplicationManager.java:831)
at
org.apache.catalina.session.InMemoryReplicationManager.messageDataReceived(I
nMemoryReplicationManager.java:915)
at
org.apache.catalina.cluster.ObjectReader.append(ObjectReader.java:45)
at
org.apache.catalina.cluster.WorkerThread.drainChannel(WorkerThread.java:121)
at
org.apache.catalina.cluster.WorkerThread.run(WorkerThread.java:60)
[InMemoryReplicationManager] Unable to receive message through TCP channel
java.lang.NullPointerException
at
org.apache.catalina.session.InMemoryReplicationManager.messageReceived(InMem
oryReplicationManager.java:832)
at
org.apache.catalina.session.InMemoryReplicationManager.messageDataReceived(I
nMemoryReplicationManager.java:915)
at
org.apache.catalina.cluster.ObjectReader.append(ObjectReader.java:45)
at
org.apache.catalina.cluster.WorkerThread.drainChannel(WorkerThread.java:121)
at
org.apache.catalina.cluster.WorkerThread.run(WorkerThread.java:60)





-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2003 11:13 AM
To: Tomcat Users List
Subject: RE: Deserializing data objects using InMemoryReplicationManager on
Tomcat cluster


it should be in

WEB-INF/classes/some/package/Employee.class is that what you meant?

never had this problem myself, what version of Tomcat? also, can you send
the log trace for this

Filip

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 13, 2003 9:10 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Deserializing data objects using 
 InMemoryReplicationManager on Tomcat cluster


 WEB-INF/classes/some.package.Employee

 If this Employee object is put in the session and then replicated 
 across the nodes for the given web application, the other nodes will 
 have ClassNotFoundExceptions when the InMemoryReplicationManager goes 
 to deserialize the session contents.  I see this exception in
 catalina.out when
 the debug level for the InMemoryReplicationManager is set to 10.

 -Original Message-
 From: Filip Hanik [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 13, 2003 11:01 AM
 To: Tomcat Users List
 Subject: RE: Deserializing data objects using 
 InMemoryReplicationManager on Tomcat cluster


 I haven't seen this problem,
 where is your Employee class file sitting?

 Filip

  -Original Message-
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 13, 2003 8:24 AM
  To: [EMAIL PROTECTED]
  Subject: Deserializing data objects using InMemoryReplicationManager
  on Tomcat cluster
 
 
  I have noticed when using the InMemoryReplicationManager for web 
  applications on a Tomcat cluster that you will encounter a 
  ClassNotFoundException when trying to deserialize the session 
  contents of serialized data objects specific to the web application 
  (i.e. a given web application may have an Employee class that is 
  stored in the session). Although this ClassNotFoundException is 
  thrown by the InMemoryReplicationManager, it appears that the class 
  actually is deserialized and replicated across the nodes of the 
  cluster.
 
  My question is if this is an accurate assertion despite the 
  ClassNotFoundException?  Also, why is there a ClassNotFoundException 
  being thrown?  Is this because the InMemoryReplicationManager does 
  not use the Web Application Class Loader, Shared Class

RE: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster

2003-06-13 Thread Filip Hanik
where is this class located?

net.afni.webdevelopment.peoplesoftbonus.data.BonusSearchData

Filip

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 13, 2003 9:34 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Deserializing data objects using InMemoryReplicationManager
 on Tomcat cluster


 Sorry, I meant / not .

 I have this running on a two node cluster, and even though the logs show
 this message on both nodes in catalina.out, I know that the data is
 replicating.  I can shutdown one node, and the session data has
 persisted on
 the other.

 Here is the log message:

 [InMemoryReplicationManager] Failed to deserialize the session!
 java.lang.ClassNotFoundException:
 [Lnet.afni.webdevelopment.peoplesoftbonus.data.BonusSearchData;
 at
 org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown
 Source)
 at
 org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown
 Source)
 at
 org.apache.catalina.session.ReplicationStream.resolveClass(Replica
 tionStream
 .java:124)
 at
 java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
 at
 java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
 at
 java.io.ObjectInputStream.readArray(ObjectInputStream.java:1560)
 at
 java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1271)
 at
 java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
 at org.apache.catalina.session.StandardSession.readObject(Unknown
 Source)
 at
 org.apache.catalina.session.StandardSession.readObjectData(Unknown Source)
 at
 org.apache.catalina.session.ReplicatedSession.readObjectData(Repli
 catedSessi
 on.java:334)
 at
 org.apache.catalina.session.InMemoryReplicationManager.readSession
 (InMemoryR
 eplicationManager.java:529)
 at
 org.apache.catalina.session.InMemoryReplicationManager.messageRece
 ived(InMem
 oryReplicationManager.java:831)
 at
 org.apache.catalina.session.InMemoryReplicationManager.messageData
 Received(I
 nMemoryReplicationManager.java:915)
 at
 org.apache.catalina.cluster.ObjectReader.append(ObjectReader.java:45)
 at
 org.apache.catalina.cluster.WorkerThread.drainChannel(WorkerThread
 .java:121)
 at
 org.apache.catalina.cluster.WorkerThread.run(WorkerThread.java:60)
 [InMemoryReplicationManager] Unable to receive message through TCP channel
 java.lang.NullPointerException
 at
 org.apache.catalina.session.InMemoryReplicationManager.messageRece
 ived(InMem
 oryReplicationManager.java:832)
 at
 org.apache.catalina.session.InMemoryReplicationManager.messageData
 Received(I
 nMemoryReplicationManager.java:915)
 at
 org.apache.catalina.cluster.ObjectReader.append(ObjectReader.java:45)
 at
 org.apache.catalina.cluster.WorkerThread.drainChannel(WorkerThread
 .java:121)
 at
 org.apache.catalina.cluster.WorkerThread.run(WorkerThread.java:60)





 -Original Message-
 From: Filip Hanik [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 13, 2003 11:13 AM
 To: Tomcat Users List
 Subject: RE: Deserializing data objects using
 InMemoryReplicationManager on
 Tomcat cluster


 it should be in

 WEB-INF/classes/some/package/Employee.class is that what you meant?

 never had this problem myself, what version of Tomcat? also, can you send
 the log trace for this

 Filip

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 13, 2003 9:10 AM
  To: [EMAIL PROTECTED]
  Subject: RE: Deserializing data objects using
  InMemoryReplicationManager on Tomcat cluster
 
 
  WEB-INF/classes/some.package.Employee
 
  If this Employee object is put in the session and then replicated
  across the nodes for the given web application, the other nodes will
  have ClassNotFoundExceptions when the InMemoryReplicationManager goes
  to deserialize the session contents.  I see this exception in
  catalina.out when
  the debug level for the InMemoryReplicationManager is set to 10.
 
  -Original Message-
  From: Filip Hanik [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 13, 2003 11:01 AM
  To: Tomcat Users List
  Subject: RE: Deserializing data objects using
  InMemoryReplicationManager on Tomcat cluster
 
 
  I haven't seen this problem,
  where is your Employee class file sitting?
 
  Filip
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]
   Sent: Friday, June 13, 2003 8:24 AM
   To: [EMAIL PROTECTED]
   Subject: Deserializing data objects using InMemoryReplicationManager
   on Tomcat cluster
  
  
   I have noticed when using the InMemoryReplicationManager for web
   applications on a Tomcat cluster that you will encounter a
   ClassNotFoundException when trying to deserialize the session
   contents of serialized data objects specific to the web application
   (i.e. a given web application may have an Employee class that is
   stored

RE: Deserializing data objects using InMemoryReplicationManager on Tomcat cluster

2003-06-13 Thread STEVESCHIERHOLZ
WEB-INF/classes/net/afni/webdevelopment/peoplesoftbonus/data/BonusSearchData

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2003 11:41 AM
To: Tomcat Users List
Subject: RE: Deserializing data objects using InMemoryReplicationManager on
Tomcat cluster


where is this class located?

net.afni.webdevelopment.peoplesoftbonus.data.BonusSearchData

Filip

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 13, 2003 9:34 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Deserializing data objects using 
 InMemoryReplicationManager on Tomcat cluster


 Sorry, I meant / not .

 I have this running on a two node cluster, and even though the logs 
 show this message on both nodes in catalina.out, I know that the data 
 is replicating.  I can shutdown one node, and the session data has 
 persisted on the other.

 Here is the log message:

 [InMemoryReplicationManager] Failed to deserialize the session!
 java.lang.ClassNotFoundException: 
 [Lnet.afni.webdevelopment.peoplesoftbonus.data.BonusSearchData;
 at 
 org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown
 Source)
 at 
 org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown
 Source)
 at 
 org.apache.catalina.session.ReplicationStream.resolveClass(Replica
 tionStream
 .java:124)
 at
 java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
 at
 java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
 at
 java.io.ObjectInputStream.readArray(ObjectInputStream.java:1560)
 at
 java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1271)
 at
 java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
 at 
 org.apache.catalina.session.StandardSession.readObject(Unknown
 Source)
 at
 org.apache.catalina.session.StandardSession.readObjectData(Unknown Source)
 at
 org.apache.catalina.session.ReplicatedSession.readObjectData(Repli
 catedSessi
 on.java:334)
 at
 org.apache.catalina.session.InMemoryReplicationManager.readSession
 (InMemoryR
 eplicationManager.java:529)
 at
 org.apache.catalina.session.InMemoryReplicationManager.messageRece
 ived(InMem
 oryReplicationManager.java:831)
 at
 org.apache.catalina.session.InMemoryReplicationManager.messageData
 Received(I
 nMemoryReplicationManager.java:915)
 at
 org.apache.catalina.cluster.ObjectReader.append(ObjectReader.java:45)
 at
 org.apache.catalina.cluster.WorkerThread.drainChannel(WorkerThread
 .java:121)
 at
 org.apache.catalina.cluster.WorkerThread.run(WorkerThread.java:60)
 [InMemoryReplicationManager] Unable to receive message through TCP channel
 java.lang.NullPointerException
 at
 org.apache.catalina.session.InMemoryReplicationManager.messageRece
 ived(InMem
 oryReplicationManager.java:832)
 at
 org.apache.catalina.session.InMemoryReplicationManager.messageData
 Received(I
 nMemoryReplicationManager.java:915)
 at
 org.apache.catalina.cluster.ObjectReader.append(ObjectReader.java:45)
 at
 org.apache.catalina.cluster.WorkerThread.drainChannel(WorkerThread
 .java:121)
 at
 org.apache.catalina.cluster.WorkerThread.run(WorkerThread.java:60)





 -Original Message-
 From: Filip Hanik [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 13, 2003 11:13 AM
 To: Tomcat Users List
 Subject: RE: Deserializing data objects using 
 InMemoryReplicationManager on Tomcat cluster


 it should be in

 WEB-INF/classes/some/package/Employee.class is that what you meant?

 never had this problem myself, what version of Tomcat? also, can you 
 send the log trace for this

 Filip

  -Original Message-
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 13, 2003 9:10 AM
  To: [EMAIL PROTECTED]
  Subject: RE: Deserializing data objects using
  InMemoryReplicationManager on Tomcat cluster
 
 
  WEB-INF/classes/some.package.Employee
 
  If this Employee object is put in the session and then replicated 
  across the nodes for the given web application, the other nodes will 
  have ClassNotFoundExceptions when the InMemoryReplicationManager 
  goes to deserialize the session contents.  I see this exception in 
  catalina.out when the debug level for the InMemoryReplicationManager 
  is set to 10.
 
  -Original Message-
  From: Filip Hanik [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 13, 2003 11:01 AM
  To: Tomcat Users List
  Subject: RE: Deserializing data objects using 
  InMemoryReplicationManager on Tomcat cluster
 
 
  I haven't seen this problem,
  where is your Employee class file sitting?
 
  Filip
 
   -Original Message-
   From: [EMAIL PROTECTED] 
   [mailto:[EMAIL PROTECTED]
   Sent: Friday, June 13, 2003 8:24 AM
   To: [EMAIL PROTECTED]
   Subject: Deserializing data objects using 
   InMemoryReplicationManager on Tomcat cluster
  
  
   I have noticed when using

Debugging tomcat cluster performance (Apache1.3+mod_jk+Tomcat4.1.18)

2003-03-16 Thread Ryszard Lach
Hi!

Is there any way to debug performance/load of particular node in tomcat
cluster? I remember that it was possible with JServ to configure log
file so, that it contained information about how many requests are
served by each node. I tried to configure JkRequestLogFormat to do the
same thing, but it can show only worker name, which is 'loadbalancer'
for all requests. It seems that increasing JkLogLevel doesn't help too.
Do you have any other ideas? I'd like to get an info like this:


Worker  Request ExecTime
tomcat1 /servlet/some.servlet2  2.34
tomcat2 /servlet/some.other.servlet 3.12
tomcat3 /servlet/some.servlet   0.28
tomcat2 /servlet/some.servlet3  1.21

with workers.properties like this:

[...]
worker.list=loadbalancer
worker.loadbalancer.balanced_workers=tomcat1,tomcat2,tomcat3
[...]


If it is not possible with mod_jk - maybe mod_jk2 has similar feature?

TIA

Richard.

-- 
First they ignore you. Then they laugh at you. Then they
fight you. Then you win. - Mohandas Gandhi.

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



concern about Apache + mod_jk + Tomcat cluster

2003-01-15 Thread YOU, JERRY (SBCSI)
Hi,
I installed the Apache1.3.27, mod_jk1.2.1 and Tomcat4.1.18 recently on our
Solaris6 machine. The approach is that let 1 apache as web server dispatches
requestes to the 3 tomcat server instances. There is no error in the
configuration, 
and install. But when I was load-testing the application, I noticed that
there were
lots of error message shown in the mod_jk file, although all the requests
were
dispatched to the tomcat servers and responded with 200.

I then changed the 3 tomcat servers' configure as following:
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=11009 minProcessors=1 maxProcessors=1
   acceptCount=10 debug=1/
So now every Tomcat can only accept 1 request at the same time.
I then sent 3 concurrent requests to the cluster: tomcat21, tomcat22,
tomcat23.
From the debug/log file, I think the mod_jk and tomcats are working like :
1, 3 requests reaches mod_jk, mod_jk sends requests to tomcat21
2, tomcat21 accepts the first one and rejects the other 2,
3, mod_jk logs errors in mod_jk.log, reports the tomcat is down or network
problem.
4, mod_jk then sends the 2 to tomcat22
5, tomcat22 accepts 1 and rejects the other.
6, mod_jk again logs errors.
7. mod_jk sends the alst one to tomcat23,
8, tomcat 23 accepts it.

I think there is nothing wrong with this procedure, but besides the annoying
error messages,
the whole performance is poor due to the time spent in the probes. I also
suspect that
the socket connection in Solaris6 is too slow, for some reason.

I have questions for those who have the tomcat cluster in there production
site:
how about the performance in your site? Is there anything wrong with my
configuration or should
I use JK2 to improve performance?

The configuration files and log files are attached with this email.

OS: Solaris 6
Apache1.3.27, Tomcat 4.1.18, mod_jk1.2.1( I can not find the binary mod_jk
at the apache.org site
under solaris6 directory, so, I download the one in Solaris8 dir).

Thanks,

Jerry You tomcat_23_catalina.log  the_change_to_httpd.conf  
workers.properties  change_to_tomcat21_server.xml  
tomcat_21_catalina.log  tomact_22_catalina.log 



tomcat_23_catalina.log
Description: Binary data


the_change_to_httpd.conf
Description: Binary data


workers.properties
Description: Binary data


change_to_tomcat21_server.xml
Description: Binary data


tomcat_21_catalina.log
Description: Binary data


tomact_22_catalina.log
Description: Binary data
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


Re: concern about Apache + mod_jk + Tomcat cluster

2003-01-15 Thread Julian Löffelhardt
Hi,

Make sure you have set the MaxProcessors property of the AJP13 Connector  in
server.xml to an equal or higher value as specified in MaxClients of the
httpd.conf.

llap,
julian
- Original Message -
From: YOU, JERRY (SBCSI) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 6:04 PM
Subject: concern about Apache + mod_jk + Tomcat cluster


 Hi,
 I installed the Apache1.3.27, mod_jk1.2.1 and Tomcat4.1.18 recently on our
 Solaris6 machine. The approach is that let 1 apache as web server
dispatches
 requestes to the 3 tomcat server instances. There is no error in the
 configuration,
 and install. But when I was load-testing the application, I noticed that
 there were
 lots of error message shown in the mod_jk file, although all the requests
 were
 dispatched to the tomcat servers and responded with 200.

 I then changed the 3 tomcat servers' configure as following:
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=11009 minProcessors=1 maxProcessors=1
acceptCount=10 debug=1/
 So now every Tomcat can only accept 1 request at the same time.
 I then sent 3 concurrent requests to the cluster: tomcat21, tomcat22,
 tomcat23.
 From the debug/log file, I think the mod_jk and tomcats are working like :
 1, 3 requests reaches mod_jk, mod_jk sends requests to tomcat21
 2, tomcat21 accepts the first one and rejects the other 2,
 3, mod_jk logs errors in mod_jk.log, reports the tomcat is down or network
 problem.
 4, mod_jk then sends the 2 to tomcat22
 5, tomcat22 accepts 1 and rejects the other.
 6, mod_jk again logs errors.
 7. mod_jk sends the alst one to tomcat23,
 8, tomcat 23 accepts it.

 I think there is nothing wrong with this procedure, but besides the
annoying
 error messages,
 the whole performance is poor due to the time spent in the probes. I also
 suspect that
 the socket connection in Solaris6 is too slow, for some reason.

 I have questions for those who have the tomcat cluster in there production
 site:
 how about the performance in your site? Is there anything wrong with my
 configuration or should
 I use JK2 to improve performance?

 The configuration files and log files are attached with this email.

 OS: Solaris 6
 Apache1.3.27, Tomcat 4.1.18, mod_jk1.2.1( I can not find the binary mod_jk
 at the apache.org site
 under solaris6 directory, so, I download the one in Solaris8 dir).

 Thanks,

 Jerry You tomcat_23_catalina.log  the_change_to_httpd.conf
 workers.properties  change_to_tomcat21_server.xml
 tomcat_21_catalina.log  tomact_22_catalina.log







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


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




Re: concern about Apache + mod_jk + Tomcat cluster

2003-01-15 Thread Ben Ricker
Can you post the workers.properties file? I use equal lblweight (I think
that is the name of the property) set to 100 for the 4 Tomcat instances.

I have a nearly identical setup: twp Apache 1.3.27 server running on
Redhat 7.3 load balancing across 4.0.6 Tomcat instances running on two
Solaris 8 servers. We have no performance issues and I am using the
default Processor settings in server.xml. We go through roughly 1
million hits a month.

HTH,

Ben Ricker

On Wed, 2003-01-15 at 11:04, YOU, JERRY (SBCSI) wrote:
 Hi,
 I installed the Apache1.3.27, mod_jk1.2.1 and Tomcat4.1.18 recently on our
 Solaris6 machine. The approach is that let 1 apache as web server dispatches
 requestes to the 3 tomcat server instances. There is no error in the
 configuration, 
 and install. But when I was load-testing the application, I noticed that
 there were
 lots of error message shown in the mod_jk file, although all the requests
 were
 dispatched to the tomcat servers and responded with 200.
 
 I then changed the 3 tomcat servers' configure as following:
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=11009 minProcessors=1 maxProcessors=1
acceptCount=10 debug=1/
 So now every Tomcat can only accept 1 request at the same time.
 I then sent 3 concurrent requests to the cluster: tomcat21, tomcat22,
 tomcat23.
 From the debug/log file, I think the mod_jk and tomcats are working like :
 1, 3 requests reaches mod_jk, mod_jk sends requests to tomcat21
 2, tomcat21 accepts the first one and rejects the other 2,
 3, mod_jk logs errors in mod_jk.log, reports the tomcat is down or network
 problem.
 4, mod_jk then sends the 2 to tomcat22
 5, tomcat22 accepts 1 and rejects the other.
 6, mod_jk again logs errors.
 7. mod_jk sends the alst one to tomcat23,
 8, tomcat 23 accepts it.
 
 I think there is nothing wrong with this procedure, but besides the annoying
 error messages,
 the whole performance is poor due to the time spent in the probes. I also
 suspect that
 the socket connection in Solaris6 is too slow, for some reason.
 
 I have questions for those who have the tomcat cluster in there production
 site:
 how about the performance in your site? Is there anything wrong with my
 configuration or should
 I use JK2 to improve performance?
 
 The configuration files and log files are attached with this email.
 
 OS: Solaris 6
 Apache1.3.27, Tomcat 4.1.18, mod_jk1.2.1( I can not find the binary mod_jk
 at the apache.org site
 under solaris6 directory, so, I download the one in Solaris8 dir).
 
 Thanks,
 
 Jerry You tomcat_23_catalina.log  the_change_to_httpd.conf  
 workers.properties  change_to_tomcat21_server.xml  
 tomcat_21_catalina.log  tomact_22_catalina.log 
 
 __
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
-- 
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


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




RE: concern about Apache + mod_jk + Tomcat cluster

2003-01-15 Thread YOU, JERRY (SBCSI)
Here is the workers.properties.
One thing to note is that I downloaded the mod_jk from
apache.org. I can only find binary mod_jk_1.3_eapi.so 
(and no_eapi.so) from Solaris8 directory. So, I use it
on Solaris6 system.
Also, all the servers including apache, tomcats are
running on the same machine (5G mem).
I use the grinder http://grinder.sourceforge.net/ 
as load testing tool.

Thanks,

Jerry You
-Original Message-
From: Ben Ricker [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 12:54 PM
To: '[EMAIL PROTECTED]'
Subject: Re: concern about Apache + mod_jk + Tomcat cluster


Can you post the workers.properties file? I use equal lblweight (I think
that is the name of the property) set to 100 for the 4 Tomcat instances.

I have a nearly identical setup: twp Apache 1.3.27 server running on
Redhat 7.3 load balancing across 4.0.6 Tomcat instances running on two
Solaris 8 servers. We have no performance issues and I am using the
default Processor settings in server.xml. We go through roughly 1
million hits a month.

HTH,

Ben Ricker

On Wed, 2003-01-15 at 11:04, YOU, JERRY (SBCSI) wrote:
 Hi,
 I installed the Apache1.3.27, mod_jk1.2.1 and Tomcat4.1.18 recently on our
 Solaris6 machine. The approach is that let 1 apache as web server
dispatches
 requestes to the 3 tomcat server instances. There is no error in the
 configuration, 
 and install. But when I was load-testing the application, I noticed that
 there were
 lots of error message shown in the mod_jk file, although all the requests
 were
 dispatched to the tomcat servers and responded with 200.
 
 I then changed the 3 tomcat servers' configure as following:
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=11009 minProcessors=1 maxProcessors=1
acceptCount=10 debug=1/
 So now every Tomcat can only accept 1 request at the same time.
 I then sent 3 concurrent requests to the cluster: tomcat21, tomcat22,
 tomcat23.
 From the debug/log file, I think the mod_jk and tomcats are working like
:
 1, 3 requests reaches mod_jk, mod_jk sends requests to tomcat21
 2, tomcat21 accepts the first one and rejects the other 2,
 3, mod_jk logs errors in mod_jk.log, reports the tomcat is down or network
 problem.
 4, mod_jk then sends the 2 to tomcat22
 5, tomcat22 accepts 1 and rejects the other.
 6, mod_jk again logs errors.
 7. mod_jk sends the alst one to tomcat23,
 8, tomcat 23 accepts it.
 
 I think there is nothing wrong with this procedure, but besides the
annoying
 error messages,
 the whole performance is poor due to the time spent in the probes. I also
 suspect that
 the socket connection in Solaris6 is too slow, for some reason.
 
 I have questions for those who have the tomcat cluster in there production
 site:
 how about the performance in your site? Is there anything wrong with my
 configuration or should
 I use JK2 to improve performance?
 
 The configuration files and log files are attached with this email.
 
 OS: Solaris 6
 Apache1.3.27, Tomcat 4.1.18, mod_jk1.2.1( I can not find the binary mod_jk
 at the apache.org site
 under solaris6 directory, so, I download the one in Solaris8 dir).
 
 Thanks,
 
 Jerry You tomcat_23_catalina.log  the_change_to_httpd.conf  
 workers.properties  change_to_tomcat21_server.xml  
 tomcat_21_catalina.log  tomact_22_catalina.log 
 
 __
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
-- 
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


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




workers.properties
Description: Binary data
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


Tomcat cluster

2002-10-10 Thread Ricardo de Souza Moura

Has anybody any book online, or tutorial about how use Tomcat in cluster ?

Thanks !!!


_
MSN Photos é a maneira mais fácil e prática de editar e compartilhar sua 
fotos: http://photos.msn.com.br


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




AW: Tomcat cluster

2002-10-10 Thread Ralph Einfeldt

Here is some brain food:

http://www.ubeans.com/tomcat
http://www.onjava.com/pub/a/onjava/2002/07/17/tomcluster.html
http://www.onjava.com/lpt/a/1228
http://www.javaworld.com/javaworld/jw-12-2000/jw-1221-servlets.html


 -Ursprüngliche Nachricht-
 Von: Ricardo de Souza Moura [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 10. Oktober 2002 15:39
 An: [EMAIL PROTECTED]
 Betreff: Tomcat cluster
 
 Has anybody any book online, or tutorial about how use Tomcat 
 in cluster ?
 

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




Re: Tomcat cluster

2002-10-10 Thread Toni . Kielo


On 2002-10-10 Ricardo de Souza Moura  wrote:

 Has anybody any book online, or tutorial about how use Tomcat in cluster
?

 Thanks !!!

Hi.

You might wanna try http://www.theserverside.com/resources/index.jsp and
select link Clustering Technologies: In Memory Session Replication in
Tomcat 4.

- Toni




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




Re: Tomcat cluster

2002-10-10 Thread Luiz Ricardo

Here it is more links:

http://www2.theserverside.com/resources/article.jsp?l=Tomcat
http://www.onjava.com/lpt/a/2422

Luiz Ricardo
- Original Message -
From: Ralph Einfeldt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, October 10, 2002 10:57 AM
Subject: AW: Tomcat cluster


 Here is some brain food:

 http://www.ubeans.com/tomcat
 http://www.onjava.com/pub/a/onjava/2002/07/17/tomcluster.html
 http://www.onjava.com/lpt/a/1228
 http://www.javaworld.com/javaworld/jw-12-2000/jw-1221-servlets.html


  -Ursprüngliche Nachricht-
  Von: Ricardo de Souza Moura [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 10. Oktober 2002 15:39
  An: [EMAIL PROTECTED]
  Betreff: Tomcat cluster
 
  Has anybody any book online, or tutorial about how use Tomcat
  in cluster ?
 

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


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




Re: AW: Tomcat cluster

2002-10-10 Thread Ricardo de Souza Moura

Thanks for all !!


From: Ralph Einfeldt [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: AW: Tomcat cluster
Date: Thu, 10 Oct 2002 15:57:02 +0200

Here is some brain food:

http://www.ubeans.com/tomcat
http://www.onjava.com/pub/a/onjava/2002/07/17/tomcluster.html
http://www.onjava.com/lpt/a/1228
http://www.javaworld.com/javaworld/jw-12-2000/jw-1221-servlets.html


  -Ursprüngliche Nachricht-
  Von: Ricardo de Souza Moura [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 10. Oktober 2002 15:39
  An: [EMAIL PROTECTED]
  Betreff: Tomcat cluster
 
  Has anybody any book online, or tutorial about how use Tomcat
  in cluster ?
 

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




_
Converse com seus amigos online, faça o download grátis do MSN Messenger: 
http://messenger.msn.com.br


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




Failover in Apache/Tomcat cluster

2002-04-23 Thread yinglcs

http://e-docs.bea.com/wls/docs70/cluster/servlet.html#1006761
Basically, the load balancer assigned each request with 2 server: one primary, one 
secondary. The client's session is replica between the primary and secondary server. 
When the primary fails, the secondary server will take over.

thanks.


__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]