Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: for the plan.

Jump to: navigation, search

Swordfish Documentation: Running Target Platform

Running Swordfish Target Platform

This section contains instructions on setting up the Swordfish Target Platform produced by the headless build.
For more information about Swordfish headless builds, see Creating a headless build.


Eclipse Galileo (Eclipse 3.5) build or later. The examples described here are based on Eclipse 3.5.

Setting up Target Platform

To run Swordfish Target Platform do the following:

  1. Create a new Target Platform definition. Click File > New > Other... > Target Definition
    or go to Preferences > Plug-in Development > Target Platform and click Add...
  2. Add the location (path) of the built Swordfish plug-ins to the list of locations presented in the definition.
    Target definition site.png

  3. Add to the platform definition location of Equinox the bundles that are necessary to run the target platform.
    When the build process successfully ends, you can find these bundles in the platform directory of project.
    Target definition.png

    Go to the Content tab and select the bundles listed in c: as shown in this figure.
    This means that all bundles from the target platform as well as the Eclipse Equinox bundles must be selected. Target content1.png

  4. Configure Eclipse to use the Swordfish target platform.
    1. Click Window > Preferences > Target Platform and set the newly created definition as active target platform.
      Target platform.png

    2. In the Run Configurations... dialog create a new OSGi configuration based on Swordfish target platform.
      Launch configuration.png

  5. Switch to the Arguments tab and type the following VM arguments:
    1. The value of org.osgi.service.http.port must be set to 9001 - the default port that the remote resolver uses to connect to the Swordfish registry.
    2. The next property org.eclipse.swordfish.registry.fileLocation must point to the directory where all the WSDL files that need to be loaded by the registry are placed.
    3. The property osgi.noShutdown is the Eclipse Equinox (OSGI) specific container. Its value must be set to true because Equinox shuts down by default after starting up if it does not find an Eclipse application. For details on this issue, see Equinox Quick Start.

    The optional property org.eclipse.swordfish.registry.url can be used to point to the running Swordfish Registry instance e.g.


    For more information about Swordfish Registry properties, see Launching the Service Registry.

    Launch configuration vm params.png

Starting the Target Platform

You may use Swordfish samples to check if the Swordfish target platform can be successfully started.

To check if the target platform starts successfully:

  1. Launch the target platform.
  2. Start a Web browser
  3. Enter the following URL: http://localhost:8192/cxfsample/?wsdl

If the platform successfully starts, you see a WSDL file containing a description of the sample BookingService.

Swordfish Documentation Home
Swordfish Wiki Home

Back to the top