Use eclipse3.2.1 + stp.0.4.0 + Apache Tuscany to develop SCA Java components (4) Installation and running error correction

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.