Running and debugging SCA applications with OW2 FraSCAti (Java)
To run or debug an SCA Java project on OW2 FraSCAti, you must:
- Have or create a master launch configuration for OW2 FraSCAti.
- 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 FraSCAti one in the selection dialog
that shows up.
Creating a master launch configuration for OW2 FraSCAti
To create a master launch configuration for OW2 FraSCAti, 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 FraSCAti
master launch configuration, e.g. "FraSCAti 0.5".
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.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.
- 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 OW2 FraSCAti 0.5 and click Open.
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.