1. Problems after successful STP plug-in Installation
After the plug-in is installed, You can see SOA tools and JAX-WS and SCA sub-Menus under eclipse menu window --> preferences.
However, if you select the Java item below SCA, an error message is displayed: the current page contain invalid value .:
This is caused by a bug in STP.
Solution:You can download the corrected STP v0.4.0 plugin from the http://stp.teamlet.org. After submitting this bug, STPS has not released a stable version, and the structure of the subitem has also changed. So here we provide a feasible correction version, which can be implementedArticle.
2. Provide STP dependent Environment
The STP dependent environment is provided here. The environment and the STP v0.4.0 plug-in provided above can be introduced to eclipse in link mode respectively.
This environment includes:
EMF --- emf-sdo-xsd-SDK-2.2.0
GEF --- GEF-SDK-3.2
Java EMF model runtime --- JEM-SDK-1.2
Web tools platform --- wtp-sdk-R-1.5.0-200606281455
GMF platform --- GMF-runtime-1.0.2
...
You can avoid downloading dependency packages everywhere, avoid inconsistent package versions, and avoid missing packages.
3. Problems with running STP examples
A. When running, the console prompts an error:
Org. Apache. Tuscany. SPI. loader. unrecognizedelementexception: {runtime [{Runtime
Context stack trace: [application]
Solution:The rmi-1.0-incubator-M2.jar under the contrib directory in the tuscany_home directory needs to be copied to the extensions directory.
Tuscany_home refers to the directory set by Apache Tuscany in window --> preferences --> SOA tools --> sca --> JAVA in the eclipse menu.
Contrib and extensions are subdirectories of the same level in the tuscany_home directory. Note: Do not copy the excess jar, as long as the rmi-1.0-incubator-M2.jar!
B. When running, the console prompts an error:
Exception in thread "Main" org. Apache. Tuscany. SPI. component. targetexception: Error initializing component instance [directoryscanextender]
At org. Apache. Tuscany. Core. Implementation. pojoatomiccomponent. INIT (pojoatomiccomponent. Java: 96)
At org. Apache. Tuscany. Core. component. Scope. instancewrapperimpl. Start (instancewrapperimpl. Java: 49)
This is because the content of the maven local library is required for running Tuscany SCA.
Solution:You can download the STP sample dependency environment from the http://stp.teamlet.org.
Decompress the package. In the document and setting/directory of the current user, create. m2 (note that there is a point before m), in. create a repository directory in m2, and copy the content in the extracted directory to repository. For example:
C:/Documents and Settings/teamlet/. m2/Repository
The repository directory contains the cglib, org, and Stax directories.