Skip to content

Developing and Testing the Java Springframework Implementation

energyos edited this page Feb 20, 2012 · 2 revisions

Things to Note

Clean Builds
You should do a Build/Clean when you first start using the development environment. The projectSet.psf import leaves some error markers that will go away following a clean build.
Setting Up Test Servers
You will want to set up tomcat6 servers to run the system within Eclipse. This is accomplished by defining two tomcat6 servers, one for the Data Custodian and one for the Third Party, within Eclipse.

Within the workbench "Servers" view:

  1. Right Click and select New/Server
  2. Select Apache/tomcat6
  3. Change the name of the server to: DataCustodian - Tomcat v6.0 Server at localhost
  4. Click Next
  5. enter (or browse to) the tomcat6 install directory: /usr/share/tomcat6
  6. Click Finish
  7. Still within the "Servers" View
  8. Right Click and select New/Server
  9. Verify Apache/tomcat6 is selected
  10. Change the name of the server to: ThirdParty - Tomcat v6.0 Server at localhost
  11. Select Finish
  12. Still within the "Servers" view
  13. double click on the ThirdParty - Tomcat v6.0 Server at localhost
  14. The properties for the server will open. We will change the servers ports from 8xxx to 9xxx, allowing both servers to run simulatiously. On the right side of the properties window:
    1. Change 8005 to 9005
    2. Change 8080 to 9080
    3. Change 8009 to 9009
    4. Close the properties view and select Yesto update
  15. Start the DataCustodian by:
    1. right click on the datacustodian project
    2. select RunAs/Run On Server
    3. select the DataCustodian - Tomcat ... server
    4. check the Always Use This Server box
    5. Select Finish
  16. Start the ThirdParty by repeating the above for the Third Party Server
  17. You should see the initial screens for both a DataCustodian and ThirdParty open in the IDE

Clone this wiki locally