Deploying RWT applications to IBM WebSphere Application Server

10 10 2011

The last days, I tried to get a demo RWT application run on IBM WebSphere Application Server by using the OSGi feature. And the result is: It works! I have written a short manual within the RAP Wiki. But there are some restrictions and notes:

  • Ensure that you have the RWT 1.5 Nightly Build later than October 6th, because there was a bug on registering RWT resources.
  • There is a strange bug of IBM WebSphere Application Server 8 that provides the Servlet 3.0 API with the javax.servlet.* packages exported as version 2.6.0! Fortunately, the RAP team has minded this bug. Thanks guys!
  • I did not already test the whole RAP platform, only RWT and JFace.
  • I only got it work using the isolated way of running the RWT platform. WebSphere provides a Shared Bundle Framework to all applications. Each application is run in an isolated framework, but can access services running in the Shared Bundle Framework. It is possible to install the OSGi Http Service into the Shared Bundle Framework and register servlets of applications to this service. This way, you have a single context root that can be extended by multiple applications. Installing the org.eclipse.rap.rwt bundle into the Shared Bundle Framework did not work because of some strange errors (without any details). I have tested to remove some entries from the manifest file, but this is like finding the needle in a haystack. And I guess, this would not be the default scenario because isolation is one of the requirements to multiple applications running on a single server.

You can find my demo EBA here. The RWT and JFace bundles are not packaged into the EBA. You can add those that are named within the META-INF/APPLICATION.MF file to the EBA or provide the bundles using WAS’ bundle repository configuration. Take care of the versions, because I used RWT 1.5 with Eclipse 3.6.0 bundles, because WebSphere Application Server provides the org.eclipse.osgi bundle version 3.6.0.

After installing this EBA on WebSphere Application Server, you can open the demo with the URL http://<host&gt;:<port>/http/demo. You should then get this:

RWT Demo on WAS8

Advertisements

Actions

Information

One response

11 10 2011
Deploying RWT applications to IBM WebSphere... | Eclipse | Syngu

[…] you can open the demo with the URL http://:/http/demo. You should then get this:  Eclipse Read the full post on Planet Eclipse… Share […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: