Setup - Linux‎ > ‎


1.  Import the project as maven project into STS:


ü  Download or use from

ü  right click on the explorer and select "import".

ü  Select the "Existing projects ..." option and click next.

ü  Select the folder where you have downloaded mycloudportal from GitHub. STS will automatically recognize the project "mycp" inside it. Click finish.


NOTE: DO NOT select "copy projects into workspace"


ü  The import process may pop up a compatibility issue, select "No"


ü  your project is setup in STS..

ü  click on project-->Properties. and check if all is well.

ü  Make sure builders lists the ant script “ant script to copy resource and lib folder content" and fileSync Builder.

1.  Tomcat setup in IDE :


ü  Right click on the servers  pane and select new-->server.

ü  Select Apache--> tomcat v6.0 Server and click Next

ü  Enter the path in which tomcat is installed, make sure the correct JRE is selected and click next.

ü  Do not select anything here and click Finish. To work with hotdeploy your app should not be deployed, otherwise you will end up wasting your development time whenever STS decides to deploy the app.

The next tutorial on FileSync is going to take care of this.

ü  Double click the tomcat server on server pane, this will open server configuration.

ü  Select the "use tomcat installation", this will make sure STS deploys your app on to the installed server rather than the built in server.

ü  Click on Publishing and select "never publish automatically"


ü  Change the timeouts as per your needs.

ü   Make sure you click on save before going forward.


ü  Go to your local tomcat installation folder and make sure you have nothing but ROOT folder under webapps folder.


ü  make sure your ROOT folder is empty since the next step fileSync will copy files here.

ü  your tomcat setup is complete now, next setup filesync plugin in STS.


1.     Filesync install :


ü  If file-sync plug-in is not installed , install it by going to help --> install new software


ü  add the     plugin url

ü  select the FileSync option and click next.










2.  Check the project builders :


ü  Go to project-->properties and Look at builders and make sure all is checked.

ü  Click on File Synchronization, check Enable.

ü  Add the folder to be synced in your project which is webapp under main.

ü  Set the default target for the folder which is your ROOT folder in tomcat and click OK.


1.  Clean,build & Deploy :



ü  Do a right-click on the project and select "refresh"


ü  now first, do a project clean

ü  then , do a project--> build Project


ü  finally, do another "refresh


ü  ON the servers tab, right click on tomcat and select start.

The tomcat server should deploy mycloudportal and start fine.

ü  Open a browser and enter http://localhost

1.  Introspect & reverse engineer:


ü  Now you need to introspect the existing DB and reverse engineer the db tables .

You may end up with the following problem




ü  roo> database introspect --schema no-schema-required

Spring Roo automatic add-on discovery service currently unavailable

JDBC driver not available for 'com.mysql.jdbc.Driver'

The solution is to execute the following


ü  osgi  start –url   file:/// path/ to/ mysql/ connector /jar/ file /mysql-connector-java-5.1.18.jar

And then the following

ü  database introspect --schema no-schema-required


Reverse engineer the db now ,


ü  database reverse engineer --schema rootest  --excludeTables jbpm4_* --package .domain