Community
Participate
Working Groups
As described in the Spring-DM-Server documentation I enabled the Tomcat cluster feature by adding <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/> in the tomcat-server.xml file. This yields to a ClassNotFoundException for org.apache.catalina.ha.tcp.SimpleTcpCluster during startup in the bundle "com.springsource.server.web.tomcat". To resolve this problem I updated the MANIFEST.MF of com.springsource.server.web.tomcat bundle the with the following Import-Packeges: org.apache.catalina.ha;version="[6.0.18,6.1)", org.apache.catalina.ha.tcp;version="[6.0.18,6.1)", org.apache.catalina.ha.session;version="[6.0.18,6.1)", org.apache.catalina.ha.deploy;version="[6.0.18,6.1)", org.apache.catalina.tribes;version="[6.0.18,6.1)", org.apache.catalina.tribes.io;version="[6.0.18,6.1)", org.apache.catalina.tribes.group;version="[6.0.18,6.1)", org.apache.catalina.tribes.membership;version="[6.0.18,6.1)", org.apache.catalina.tribes.transport.nio;version="[6.0.18,6.1)", org.apache.catalina.tribes.transport;version="[6.0.18,6.1)", org.apache.catalina.tribes.group.interceptors;version="[6.0.18,6.1)" This fixes the startup Problem, but the Session Replication still does not work because there is another ClassNotFoundException for "org.apache.catalina.ha.ClusterMessageBase" in the bundle "com.springsource.org.apache.catalina.tribes.springsource". This can be fixed by adding the import for the package "org.apache.catalina.ha" to the bundle MANIFEST.MF. After this the server starts without any errors and the session replication feature works with my sample web-application. Could you please update the MANIFEST files, so that the Tomcat cluster will work out of the box? Regards Chris
Thanks for taking the time to document this issue. We are currently focussed on getting an initial release out which is compatible with dm Server 2.0.x, so this request will go into the backlog for addressing later. I guess the main work item will be writing a suitable automated test to confirm session replication can be made to work.
Assigning to Chris to change the manifests. A new testcase can wait.
I have added the imports for our web bundle but I haven't done the tomcat bundle. Have updated the issue to updated to the latest tomcat to depend on this so that the manifest for the new version is correct.
Pending work on 319395 before closing
Modified blocked Bug because original was closed dup.
Bug 321998 is resolved, but not released (in a milestone) until CQ work completed. The tomcat bundles have been repackaged to allow clusters to work. Bug 322983 documents the adjustments made to allow this.
Fix available in Milestone M04.