Jump to: navigation, search

RAP/WAR Deployment with products

< RAP
Revision as of 05:37, 5 June 2009 by Bmuskalla.eclipsesource.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

THIS IS EXPERIMENTAL! IT IS NOT OFFICIALLY SUPPORTED NEITHER BY RAP NOR BY PDE

With some small tricks you're able to export a .war file with the help of product definitions.

Get the war product template

Get this archive and import it into your workspace with "Import existing project". You'll end up with two projects:

  • org.eclipse.equinox.servletbridge.extensionbundle
  • org.eclipse.rap.demo.product

Select and contained bridge.psf and import it as Team project set. Your workspace should look like this after the last steps:

Wardeploy workspace.png

Export the product

Open the "rap-demo.product" file and export the product:

Wardeploy export.png

The only thing you need to adjust when exporting is to set the root directory to WEB-INF and export the whole product as archive. Due to a bug in PDE you need to rename the exported file from <filename>.war.zip to <filename>.war

Wardeploy wizard.png

You're now able to use this war file to deploy it to an existing application server.

Customize the feature

In order to build your own application, you just need to open the feature.xml of the project, remove the org.eclipse.rap.demo plugins and add your own plugins to the feature.