Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

I am using:
Eclipse Java EE IDE for Web Developers 4.4.1
Java 1.7.0_60
Tomcat 8.0.14

 

In Eclipse, install:

 

Eclipse EGit 3.4.2

Eclipse.org – M2e Maven Integration for Eclipse 1.5.1.* org.eclipse.m2e.feature

Eclipse.org – M2e-wtp 1.1.0

APT M2E Connector    0.0.1.3

  m2e connector for build-helper-maven-plugin    0.15.0.201207090124  
  m2e connector for jaxws-maven-plugin    0.0.1.201411151653   



Create a home directory for the project, say "rfd". In this directory, create two directories, "eclipse" and "git".

 

Open Eclipse using the project/eclipse directory (e.g. rfd/eclipse) as the workspace.

 

File => Import...

In Select dialog tree pane, open General Folde, select Preferences, click Next

In Import Preferences dialog, browse to common.epf, make sure Import all is checked, and click Finish.

 

Windows => Preferences => General => Workspace:

Build automatically: not checked (can interfere with Maven builds).

Save automatically before build: checked.

Workspace name: Give project a name, helps avoid confusion.

OK.



Using the attached guide, go to Stash, under IHE Test & Management Tools clone the following repositories to your workspace:

erl-ihe-utilities
erl-ihe-ws
erl-ihe-rfd
rfd-web

After cloning, right click on one of the project in the Project explorer and select Maven => Update Project... from the context menu. On the Update Maven Project dialog, click “Select All” and then “OK”.

 

this will create the following projects in your workspace (erl-ihe-utilities has two projects). Build them with maven in the order and with the goals shown.

erl-ihe-utilities        clean package install
erl-ihe-web-utilities    clean package install
erl-ihe-ws               clean package install
erl-ihe-rfd              clean generate-sources package install
rfd-web                  clean package install

File => Refresh

If you want to run in the development profile, you need to add your machine name to the configuration overrides.xml file in

project/git/rfd-web/RFD/src/main/resources/erl-ihe-rfd-resources/runDirectory

this file contains:

<?xml version="1.0" encoding="ISO-8859-1" ?>

<configuration>

<Hosts>

<golden profile="dev"/>

</Hosts>

</configuration>

You need to add an additional element inside <Hosts> like the golden line with your machine name.

 

Add a tomcat server to the rfd-web project and start it to run, or alternatively, copy the RFD.war file from project/git/rfd-web/RFD/target to the webapps directory of a tomcat instance and run it outside of Eclipse.

The configurations are in the RFDServers.xml. As configured, it does not use postgresql.

I use SoapUI to send test messages, which I set up using the wsdl. My test message:

http://localhost:3301/RFD_0_10000_FM

<soap:Envelope
    xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
    xmlns:wsa="http://www.w3.org/2005/08/addressing"
    xmlns:urn="urn:ihe:iti:rfd:2007">
   <soap:Header>
       <wsa:To>http://localhost:4040/axis2/services/someservice</wsa:To>
     <wsa:MessageID>urn:uuid:76A2C3D9BCD3AECFF31217932910053</wsa:MessageID>
     <wsa:Action soap:mustUnderstand="1">urn:ihe:iti:2007:RetrieveForm</wsa:Action>
   </soap:Header>
   <soap:Body>
      <urn:RetrieveFormRequest>
         <urn:prepopData>
            <!--You may enter ANY elements at this point-->
         </urn:prepopData>
         <urn:workflowData>
            <urn:formID>RFD 0-10000</urn:formID>
            <urn:encodedResponse>false</urn:encodedResponse>
            <urn:context>
               <!--You may enter ANY elements at this point-->
            </urn:context>
            <urn:instanceID></urn:instanceID>
         </urn:workflowData>
      </urn:RetrieveFormRequest>
   </soap:Body>
</soap:Envelope>

List of Git Projects

This is the list of Git projects stored on imphub needed for this tool:

 

 

  1. Clone a copy of the RFD Utilities Package from the code repository at ImpHub. Do a maven build on the project with the goal parameter set to clean package install. If the build succeeds do a maven update on the project.
  2. Clone a copy of the RFD Server from the code repository at ImpHub. Do a maven build on the project with the goal parameter set to clean package install. If the build succeeds do a maven update on the project.
  3. Clone a copy of the RFD Form Manager. Do a maven build on the project with the goal parameter set to clean package install. If the build succeeds do a maven update on the project.
  4. Clone a copy of the RFD Web Interface. Unlike the other steps, first do a maven clean on the project. This is to ensure that the target directory will have what we want in it and that nothing extraneous got left in the folder. After the Maven clean , then do a maven build on the project with the goal parameter set to clean package install. If the build succeeds do a maven update on the project. All your projects should now be good to go.
  5. The project should now be able to run on a Tomcat Server at localhost:8080/RFD