Running and debugging SCA applications with OW2 FraSCAti (Java)

To run or debug an SCA Java project on OW2 FraSCAti, you must:

Creating a master launch configuration for OW2 FraSCAti

To create a master launch configuration for OW2 FraSCAti, follow the following steps:

  1. Go into Window > Preferences > SCA Tools > Run / Debug.
  2. Click Add....
    In the dialog that shows up, type in a name for the FraSCAti master launch configuration, e.g. "FraSCAti 0.5".

    Create an SCA master launch configuration for FraSCAti

    Click OK.
  3. You should see the argument line is filled with ${composite_name}.
    When this master launch configuration is instantiated (applied) for a composite, this variable will be replaced by the composite file name. Do not modify it.
  4. In the Launch tab, copy org.eclipse.stp.sca.deployment.mains.FrascatiMain05 in the Main class field.
    This class is provided by the org.eclipse.stp.sca.deployment plug-in and just deploys the composite on FraSCati.

    Main class and arguments for the FraSCAti SCA master launch configuration

  5. In the Classpath tab, you should see the classpath contains a reference to the org.eclipse.stp.sca.deployment plug-in.

    Classpath for the FraSCAti SCA master launch configuration (default)

    Click Add library...
    Select all the libraries of OW2 FraSCAti 0.5 and click Open.

    Classpath for the FraSCAti SCA master launch configuration (updated)

Click OK to save the preferences.
You have created a master launch configuration for OW2 FraSCAti. You can instantiate it by right-clicking an SCA composite and selecting Run as > SCA Application.