forked from MartyBurns/OpenESPI
-
Notifications
You must be signed in to change notification settings - Fork 2
Developing and Testing the Java Springframework Implementation
energyos edited this page Feb 20, 2012
·
2 revisions
- 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:
- Right Click and select New/Server
- Select Apache/tomcat6
- Change the name of the server to: DataCustodian - Tomcat v6.0 Server at localhost
- Click Next
- enter (or browse to) the tomcat6 install directory: /usr/share/tomcat6
- Click Finish
- Still within the "Servers" View
- Right Click and select New/Server
- Verify Apache/tomcat6 is selected
- Change the name of the server to: ThirdParty - Tomcat v6.0 Server at localhost
- Select Finish
- Still within the "Servers" view
- double click on the ThirdParty - Tomcat v6.0 Server at localhost
- 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:
- Change 8005 to 9005
- Change 8080 to 9080
- Change 8009 to 9009
- Close the properties view and select Yesto update
- Start the DataCustodian by:
- right click on the datacustodian project
- select RunAs/Run On Server
- select the DataCustodian - Tomcat ... server
- check the Always Use This Server box
- Select Finish
- Start the ThirdParty by repeating the above for the Third Party Server
- You should see the initial screens for both a DataCustodian and ThirdParty open in the IDE