Running and debugging SCA applications with Apache Tuscany (Java)

To run or debug an SCA Java project on Apache Tuscany Java platform, you must:

Creating a master launch configuration for Apache Tuscany

To create a master launch configuration for Apache Tuscany, 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 Tuscany master launch configuration, e.g. "Tuscany 1.4".

    Create an SCA master launch configuration for Tuscany

    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.TuscanyMain1x in the Main class field.
    This class is provided by the org.eclipse.stp.sca.deployment plug-in and just deploys the composite on Tuscany.

    Main class and arguments for the Tuscany 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 Tuscany SCA master launch configuration (default)

    Click Add library...
    Select all the libraries of Apache Tuscany 1.4 and click Open.

    Classpath for the Tuscany SCA master launch configuration (updated)

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