Shades of embarrassment.
Our server clocks weren't sync'd.

It all works, just like it says it ought to.
Which was nice.




Pid wrote:
> 
> We're running the following:
> 
> Apache2.2 + Tomcat5.5.17
> mod_proxy, mod_proxy_ajp, mod_proxy_balancer
> on 2 linux boxes (one of which has a DB)
> 
> Server #1 has the DB & the 2nd Tomcat.
> Server #2 is the main Apache load balancer, with 1st Tomcat.
> There are virtualhosts/subdomains in both apache & tomcat.
> 
> The configs are largely as recommended in the docs.
> 
> E.g. mod_proxy
> ProxyPass /         balancer://mycluster/ \
>       maxattempts=1 lbmethod=bytraffic stickysession=JSESSIONID
> 
> I've tried various Tomcat cluster variations, as in the docs (which
> contain far too many options for a noob like me to get my head round)
> and have had limited success.  The logs appear to indicate that the
> nodes are talking to each other, under most of the variations.
> 
> At this point I've got Cluster defined inside each Host, the variations
> don't seem to make much difference even a single default
> SimpleTcpCluster works/produces the same effect as one of the extended
> configs.  I'd rather use a single Cluster definition before the Hosts,
> if possible.
> 
> The problem is that if I force* Apache2 > Tomcat1 > MySQL1, I get:
> 
>  "Cannot create JDBC driver of class '' for connect URL 'null'
>  java.sql.SQLException: No suitable driver"
> 
> But! Apache2 > Tomcat2 > MySQL1 is fine.
> 
> Also, routing to either Tomcat from Apache1 is fine:
> Apache1 > Tomcat2 > MySQL1
> Apache1 > Tomcat1 > MySQL1
> 
> Which would suggest it's not the Tomcat JNDI DB config.
> (There's a single Global Datasource, referenced in each context.)
> 
> We want Apache2 & Tomcat2 to soak up most of the load, and give #1 over
> to the DB & some overspill, via the proxy/ajp/balancer config.
> Failover & such would be preferable.
> 
> The webapps in each virtual host are identical, as I've tarred, gzipped
> & ftp'd them over from one to the other.
> 
> 
> Any help would be appreciated.
> 
> 
> Pid
> 
> 
> *I'm forcing Apache to select each Tomcat by commenting out the others
> in the balancer config.
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: [email protected]
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to