You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by fh...@apache.org on 2004/09/06 00:00:53 UTC
cvs commit: jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp ReplicationListener.java SimpleTcpCluster.java
fhanik 2004/09/05 15:00:53
Modified: modules/cluster/src/share/org/apache/catalina/cluster/deploy
FarmWarDeployer.java
modules/cluster/src/share/org/apache/catalina/cluster/tcp
ReplicationListener.java SimpleTcpCluster.java
Log:
The replication valve wasn't being added to the host above, due to the inspection util invoke
Setting the classname to org.apache.catalina.Valve solved the problem
Revision Changes Path
1.3 +1 -0 jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/deploy/FarmWarDeployer.java
Index: FarmWarDeployer.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/deploy/FarmWarDeployer.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- FarmWarDeployer.java 28 Jul 2004 18:02:15 -0000 1.2
+++ FarmWarDeployer.java 5 Sep 2004 22:00:52 -0000 1.3
@@ -238,6 +238,7 @@
public void remove(String contextPath, boolean undeploy) throws IOException {
log.info("Cluster wide remove of web app " + contextPath);
//step 1. Remove it locally
+
// FIXME
/*
if (getDeployer().findDeployedApp(contextPath) != null)
1.17 +1 -0 jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ReplicationListener.java
Index: ReplicationListener.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ReplicationListener.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- ReplicationListener.java 13 Jul 2004 09:43:58 -0000 1.16
+++ ReplicationListener.java 5 Sep 2004 22:00:52 -0000 1.17
@@ -60,6 +60,7 @@
tcpListenAddress = java.net.InetAddress.getLocalHost().
getHostAddress();
}
+ log.debug("Starting replication listener on address:"+tcpListenAddress);
bind = java.net.InetAddress.getByName(tcpListenAddress);
Thread t = new Thread(this,"ClusterReceiver");
t.setDaemon(true);
1.48 +6 -2 jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/SimpleTcpCluster.java
Index: SimpleTcpCluster.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/SimpleTcpCluster.java,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- SimpleTcpCluster.java 5 Aug 2004 14:18:37 -0000 1.47
+++ SimpleTcpCluster.java 5 Sep 2004 22:00:52 -0000 1.48
@@ -353,7 +353,11 @@
(sm.getString("cluster.alreadyStarted"));
log.info("Cluster is about to start");
try {
- IntrospectionUtils.callMethodN(getContainer(), "addValve", new Object[] {valve}, new Class[] {valve.getClass()});
+ log.debug("Invoking addValve on "+getContainer()+ " with class="+valve.getClass().getName());
+ IntrospectionUtils.callMethodN(getContainer(),
+ "addValve",
+ new Object[] {valve},
+ new Class[] {Thread.currentThread().getContextClassLoader().loadClass("org.apache.catalina.Valve")});
clusterReceiver.setIsSenderSynchronized(clusterSender.getIsSenderSynchronized());
clusterReceiver.setCatalinaCluster(this);
clusterReceiver.start();
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org