Running and debugging SCA applications with Apache Tuscany (Java)
To run or debug an SCA Java project on Apache Tuscany Java platform, you must:
- Have or create a master launch configuration for Apache Tuscany.
- Right-click on your SCA composite to deploy and select Run as > SCA Application
(or Debug as > SCA Application).
- If you have defined several master launch configurations, select the Tuscany one in the selection dialog
that shows up.
Creating a master launch configuration for Apache Tuscany
To create a master launch configuration for Apache Tuscany, follow the following steps:
- Go into Window > Preferences > SCA Tools > Run / Debug.
- Click Add....
In the dialog that shows up, type in a name for the Tuscany
master launch configuration, e.g. "Tuscany 1.4".
Click OK.
- 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.
- 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.
- In the Classpath tab, you should see the classpath contains a reference
to the
org.eclipse.stp.sca.deployment plug-in.
Click Add library...
Select all the libraries of Apache Tuscany 1.4 and click Open.
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.