Sei sulla pagina 1di 4

Setup Instructions: (For RAD) 1) If you are using RAD/RSA 7.

5, install the "Graphical Editing Framework Zest Visualization Toolkit" under the most recent version of "GEF SDK" using the update site http://download.eclipse.org/tools/gef/updates/releases/ before you install m2eclipse. Select checkbox besides gef sdk 3.7.1 only, uncheck the rest. 2) The RAD maven plugin can be integrated from the following site
http://m2eclipse.sonatype.org/sites/m2e-e34/ 3) Download Maven(3.0.3) from apache unzip to C:\ drive

http://maven.apache.org/download.html 4) Setup user environment variable, Rt click my computer -> properties -> Adv-> Environment variables Created below specified
M2_HOME=C:\apache-maven-3.0.3 M2=%M2_HOME%\bin PATH=%JAVA_HOME%\bin; %M2%; 5)

In Rad -- use SVN to Check out the marketplace mobile project from Trunk (http://svn.uhc.com/svn/uhgit_ccp/CloudeAppServer/trunk/marketplaceapps.mobile) 6) Import the Parent maven project(marketplaceapps.mobile) into your IDE using File-ImportMaven Projects (The maven plugin will automatically import the other 2 projects i.e. Services & Web) Also: Copy the settings.xml file from Web project to your maven local repository that would be created at C:\Documents and Settings\Your NT ID\.m2 if your maven plugin install was successful & provide your NT userid/password in this file When I did maven clean, maven install on the parent project got an error that Javac is not recognized and was looking in a jre folder In case of the above error follow step 7 7) IN Rad , goto Windows -> Preferences -> Java Click on Installed JRE. Click on Add, choose standard VM , Click Next For JRE home -> give JAVA_HOME location(Example: C:\Program Files\Java\jdk1.6.0_27) Once added, Make sure the checkbox is clicked for the jdk

8) Now rt click on parent project(mobile) -> run as -> maven clean , then do maven install got a compilation error on ConnectionControllerTest.java (connectionController.getConnectionFriendList) in mobileweb. After fixing it the parent project compiled. 9) Next rt click on services -> run as -> maven clean, maven install Successful compilation. Next rt click on mobileweb -> run as -> maven clean, maven install Here there was same javac error. Rt click on mobileweb-> properties . Get the below screen Make sure the Java Build path is pointer to Java Sdk inside of the JRE.
Once changed mobileweb compiled.

10) Finally you need to deploy the Web project war file to the Jetty server by right click on the MObileWeb project then run---- run configurations----- maven build ---- new launch configuration as per the screenshot below. After setting it up the first time & running, it would be configured as a runtime in your IDE.

11) Click Run, jetty should start. 12) Use urls below to verify (In chrome or firefox) http://localhost:9090/cloudappspot/user/connections/getConnectedFriends.do? userID=aravula9-d Connections screen http://localhost:9090/cloudappspot/user/invitation/viewInvitations.do?userID=anurag1-d View all invitations screen http://localhost:9090/cloudappspot/myProfile.do?userID=aravula9-d Profile page

http://localhost:9090/cloudappspot/myProfileNonConnection.do?userID=aravula9-d Profile page non connection http://localhost:9090/cloudappspot/myProfileConnection.do?userID=aravula9-d Profile page connection http:// localhost:9090/cloudappspot/user/message/getAllSentMessages.do? startIndex=1&noOfRecords=10&userId=anurag1-d View All Messages (Send) page http:// localhost::9090/cloudappspot/user/message/getAllReceivedMessages.do? startIndex=1&noOfRecords=10&userId=anurag1-d - View All Messages (Received) page

Potrebbero piacerti anche