Bug 358557 - Update cluster testfixture to run in OSGi
Summary: Update cluster testfixture to run in OSGi
Status: ASSIGNED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 358263 361288
Blocks: 353117
  Show dependency tree
 
Reported: 2011-09-22 06:24 EDT by Rüdiger Herrmann CLA
Modified: 2011-10-25 13:25 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rüdiger Herrmann CLA 2011-09-22 06:24:28 EDT
The code to run Jetty and Tomcat in embedded mode, uses constructs that won't work when running in OSGi.
One prominent example is passing class names as strings. We should try to replace these passages with API from Jetty/Tomcat that accepts classes or instances (if any).
Comment 1 Chris Frost CLA 2011-10-19 10:02:48 EDT
Both Jetty and Tomcat run on Eclipse Virgo with no problems, you could try running on top of Virgo.
Comment 2 Rüdiger Herrmann CLA 2011-10-20 05:44:35 EDT
(In reply to comment #1)
> Both Jetty and Tomcat run on Eclipse Virgo with no problems, you could try
> running on top of Virgo.
Christopher, thanks for your hint. We are aware that Jetty and Tomcat run on Virgo. 
However, with 'cluster' in this context, we mean transparent session failover. Do Jetty and/or Tomcat on Virgo support this? Is there a some sort of documentation how to set this up?
Comment 3 Chris Frost CLA 2011-10-20 05:49:04 EDT
Hi,

We've never tried it with Jetty so I don't know but Tomcat clustering on Virgo is supported and configured in the normal way. The Tomcat config file is located in the config directory. Just refer to the Tomcat documentation for it, essentially Virgo isn't involved and doesn't get in the way.

Chris.
Comment 4 Rüdiger Herrmann CLA 2011-10-25 10:49:11 EDT
(In reply to comment #3)
> We've never tried it with Jetty so I don't know but Tomcat clustering on Virgo
> is supported and configured in the normal way. The Tomcat config file is located
> in the config directory. Just refer to the Tomcat documentation for it,
> essentially Virgo isn't involved and doesn't get in the way.
There seems to be a misunderstanding. We deployed an RFC 66 web bundle on Virgo-Tomcat with clustering configured (SimpleTcpCluster). In this scenario we also get a ClassNotFoundException. The first class from the web bundle cannot be found.
A similar setup (plain Jetty on OSGi running a web bundle), is described in bug 361554. If you think this should work on Virgo, we can file a bug and provide details and a setup to reproduce the exception.
Comment 5 Chris Frost CLA 2011-10-25 10:59:31 EDT
Hi,

I suspect it might be down to configuration in Virgo but please do raise a bug on us and we will have a look. It should work even if a little config change is needed.

Thanks, Chris.
Comment 6 Rüdiger Herrmann CLA 2011-10-25 13:25:29 EDT
(In reply to comment #5)
> Hi,
> 
> I suspect it might be down to configuration in Virgo but please do raise a bug
> on us and we will have a look. It should work even if a little config change is
> needed.
> 
> Thanks, Chris.
Thanks for looking into this, I filed bug 361971