Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315349 - Tomcat cluster does not work, ClassNotFound Exceptions in Tomcat bundle
Summary: Tomcat cluster does not work, ClassNotFound Exceptions in Tomcat bundle
Status: CLOSED FIXED
Alias: None
Product: Virgo
Classification: RT
Component: unknown (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 2.1.0.M04-incubation   Edit
Assignee: Chris Frost CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 321998
  Show dependency tree
 
Reported: 2010-06-02 03:18 EDT by chrisatpinguin CLA
Modified: 2010-09-17 08:36 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chrisatpinguin CLA 2010-06-02 03:18:47 EDT
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
Comment 1 Glyn Normington CLA 2010-06-02 06:58:56 EDT
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.
Comment 2 Glyn Normington CLA 2010-07-21 05:28:09 EDT
Assigning to Chris to change the manifests. A new testcase can wait.
Comment 3 Chris Frost CLA 2010-07-21 12:07:32 EDT
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.
Comment 4 Chris Frost CLA 2010-07-23 09:29:12 EDT
Pending work on 319395 before closing
Comment 5 Steve Powell CLA 2010-08-23 08:12:26 EDT
Modified blocked Bug because original was closed dup.
Comment 6 Steve Powell CLA 2010-09-09 06:06:07 EDT
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.
Comment 7 Steve Powell CLA 2010-09-09 06:07:24 EDT
Fix available in Milestone M04.