Skip to content
Marc Dutoo edited this page Jun 2, 2015 · 27 revisions

Summary

  1. Contents
  2. Prerequisites
  3. Setup
  4. Installing it
  5. Browser configuration
  6. Running it
  7. Troubleshooting

Contents

The EasySOA Registry 2.0 release comprises the core collaborative SOA - Business registry, with its four feature categories : Cartography, Compliance, Monitoring and Governance. This includes user interfaces for

  • service browsing (including service / implementation / endpoint documentation and tools portal),
  • matching implemented and deployed services to their expected definitions,
  • business service level monitoring,
  • indicators (including aggregated completion and governance indicators),
  • collaborative documentation and edition of the SOA model,
  • as well as help pages and links to other features : REST API, SOAPUI tool, as well as those listed below, but also those released independently such as OW2 FraSCAti Studio and OW2 Jasmine.

It also includes

Other EasySOA 2.0 components are released independently and are available :

Prerequisites

  • Java JDK 7 (download). Make sure the JAVA_HOME variable is set to your Java install directory.

Setup

Installing it

Get the EasySOA Registry 2.0 archive on the official website, then unzip it anywhere.

If you're a developer and want to use the Java source code Discovery Maven plugin, copy the contents of the easysoa-discovery-code-mavenplugin/m2_repo in your local Maven repository (usually below your home directory in .m2/repository ).

Browser configuration

You have to set a specific HTTP proxy for your browser if you want to use Discovery by Browsing in HTTP Proxy mode (but otherwise the Bookmarklet mode is still available). This proxy si the port 8081 of the machine where you've installed Discovery by Browsing, for instance if it's on your own computer : http://127.0.0.1:8081, like below (in which case you have to remove any proxy exception, such as localhost or 127.0.0.1).

Running it (on your own computer)

  • Start EasySOA Registry by going in the nuxeo-cap-5.7.1-tomcat/bin directory and running Start Nuxeo.bat on Windows, ./nuxeoctl start on Linux . Its home (including "service portal" user interfaces) is at http://127.0.0.1:8080 . Its collaborative documentation user interface is at http://127.0.0.1:8080/nuxeo . Default user/password is Administrator/Administrator.

  • Start Discovery by Browsing (requires EasySOA Registry) by going in the easysoa-discovery-browsing directory and running start-web.bat on Windows, ./start-web.sh on Linux. Its user interface is at http://127.0.0.1:8083 (it is also linked from the EasySOA Registry UI).

  • Start EasySOA Proxy (provides Runtime Discovery, which requires EasySOA Registry) by going in the apache-tomcat7-proxy/bin directory and running startup.bat on Windows, ./startup.sh on Linux. Its user interface is at http://127.0.0.1:9080/easysoa-proxy-web (it is also linked from the EasySOA Registry UI). Before going there, add the following entry to your hosts file (to be found at C:\WINDOWS\system32\drivers\etc\hosts on Windows and at /etc/hosts on Linux) :

    127.0.0.1 vmregistry

By default, EasySOA Registry is empty. To fill it, use Service Discovery features (by Browsing, by parsing Source code, by Monitoring...) to discover services in your Information System. To fill it with samples, you can either use the Service discovery by Browsing to browse WSDL-linking sample pages provided from its default page, or install and initialize the AXXX use case and use service discovery to extract its services, or go to the Compliance > Matching Dashboard (Conformité > Réconciliation) feature page and click on "fill samples" at the top right part of the screen (BUT be warned they are not supported by all features, see Troubleshooting below).

If you want to Reset all data, delete the nuxeo-cap-5.7.1-tomcat/nxserver/data folder once EasySOA Registry is stopped.

Configuration in production

To install it in production, you may also have to configure:

Troubleshooting

Here are the most frequent problems you can get while using EasySOA. If your problem is not here, feel free to create an issue.

Discovery by browsing

The browser doesn't seem to use the proxy

Check your browser configuration for proxy exclusions, ex. 'localhost, 127.0.0.1': you need to remove all of these.

If you are using the Chrome browser, you can also try to run : chromium-browser --proxy-server="127.0.0.1:8081" --proxy-bypass-list="". It will launch the browser with the right configuration.

The browser tries to go to pages but ends in timeouts

Check in your browser configuration that you didn't put your computer's network IP (ex. 192.168.0.134 in a LAN) as proxy address. It should rather be 127.0.0.1 or localhost, because by default the proxy server binds only to this address (of course, in actual production deployment, the proxy server must be configured to its actual network address).

The bookmarklet fails to load and the javascript console says that Content Security Policy has prevented it

Check that CSPs allow it to load, as said in the tool's online documentation:

Warning, this bookmarklet also downloads and embeds javascript code within the page (like a lot of bookmarklets do), which must therefore be allowed by CSPs (Content Security Policy) configured on the page and in the browser. If the browser's CSPs are blocking, change its configuration while using the bookmarklet. For instance with Firefox (which starting from version 23 blocks it by default), a quick solution is (with due caution) to enter "about:config" in the URL address bar and change the value of "security.mixed_content.block_active_content" and an even simpler one is to install a dedicated add-on.

Finally, if a visited page's CSPs are blocking, if it's served by your own servers, configure their CSPs (Content-Security-Policy HTTP header) so it's allowed. And if it's served by outside servers, it is probably not useful (let's remember that EasySOA Discovery By Browsing is first and foremost a tool for discovering your OWN services and those of your applications), but if required you can configure its own CSPs on client side by using a developer tool such as the UserCSP add-on.

There are javascript errors while loading the bookmarklet

The page's libraries are probably interferring with the script's. Try opening the page in a new browser tab.

Service registry

Nuxeo doesn't restart at the end of the wizard

Restart manually after setting in bin/nuxeo.conf the property: nuxeo.wizard.done=true

Weird Governance indicators

Some indicators (serviceWithoutComponent, serviceWithDocumentation) have a -1 percentage, which actually means N/A. Others (BusinessServices sans interface, Composant sans contrainte de Plateforme) are not implemented yet and have dummy values.

Error while using Service Browsing UI (Fiche Service) on a service implementation

Check that it has a matched service (definition), and if not add one (even a dummy one) using the Collaborative UI and match the service implementation to it using the Matching Dashboard (Réconciliation) UI.

Clicking on SOAPUI tool button displays "Can't find..."

Check that service implementation(s) have WSDLs.

HTTP Proxy

Its web UI fails on "UnknownHostException" error

HTTP Proxy's web UI fails with the following error :

java.net.UnknownHostException: UnknownHostException invoking http://vmregistry:9089/easysoa-proxy/HttpProxyManagementService/getHttpProxy

To solve it, add the following entry to your hosts file (to be found at C:\WINDOWS\system32\drivers\etc\hosts on Windows and at /etc/hosts on Linux) :

127.0.0.1       vmregistry
Its web UI says "No services have been found."

This happens when browsing to the http://127.0.0.1:9080/ page instead of the right http://127.0.0.1:9080/easysoa-proxy-web one.

Samples

When using a service, I get an "Error code 0"

Something has not been properly launched, probably because a server wasn't ready yet before to start the next one (your computer was slower than expected!). Take a look at the log files to see which server failed, and launch it again in the right order.

FraSCAti Studio

Its web UI says "Available SOAP services: ..."

This happens when browsing to the http://127.0.0.1:7080/ page instead of the right http://127.0.0.1:7080/easySoa one.

Clone this wiki locally