Skip to content

How to setup RISCOSS workspace

Quim Motger edited this page Nov 28, 2017 · 2 revisions

How to set up the RISCOSS Corporate workspace

For configuring the work environment (RISCOSS) you need to follow the next steps:

  1. Clone the following repositories in a same root directory:
  1. In Eclipse, select File > Import > Existing Maven Project, and select the root directory where the repositories were cloned

  2. Install and proceed with all the required software Eclipse will ask to install while importing.

  3. Install GWT plugin in Eclipse in Help > Install New Software, introduce the following link: https://dl.google.com/eclipse/plugin/4.4 and select:

  • Google App Engine Tools for Maven (requires m2e-wtp 1.5+)
  • Google Plugin for Eclipse (required)
  • GWT Designer for GPE
  • SDKs
  1. Eclipse will detect some “Validation message” errors. These errors can be ignored: just right click on riscoss-webapp project, go to Properties > Validation, check “Enable project specific settings” and uncheck “Web (2.2 – 2.4) Validator”. Now no errors should appear.

  2. Now right click on riscoss-webapp project, go to Properties > Java Build Path > Source Tab, and configure the source folders to be like the images at the end of the document.

  3. Then, in Libraries Tab, select Add Library and select the Google Web Toolkit to add.

  4. Right click on riscoss-webapp and go to Properties > Google > Web Toolkit and enable “Use Google Web Toolkit”.

  5. Now go to Run > Run Configurations > Web Application

In Main tab, change Main class to “com.google.gwt.dev.DevMode”

In GWT tab, check “Super Development Mode”

In Arguments tab, you will need to specify Program Arguments:

-superDevMode -startupUrl index.jsp -logLevel INFO -port 8888 -remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -codeServerPort 9997 -war /path/to/RISCOSS/riscoss-corporate/riscoss-webapp/src/main/webapp eu.riscoss.RiscossWebApp eu.riscoss.analysis eu.riscoss.layers eu.riscoss.whatifanalysis eu.riscoss.entities eu.riscoss.models eu.riscoss.riskconfs eu.riscoss.report eu.riscoss.rdr eu.riscoss.riskanalysis eu.riscoss.ras eu.riscoss.admin eu.riscoss.auth eu.riscoss.dashboard eu.riscoss.domains eu.riscoss.importconfig eu.riscoss.rasreport eu.riscoss.rma eu.riscoss.roles

and VM Arguments:

-Xss2048k -Xmx2048m -XX:MaxPermSize=512m

  1. Now, to check if everything is set up properly, right click on riscoss-webapp project,and go to Run As > Google Web Application (GWT Super Dev Mode). Select index.jsp and click on Run.