Skip to content

How to clone and use in Eclipse

KLyko edited this page Feb 16, 2013 · 4 revisions

Notes on how to clone and develop using Eclipse

This should work with all Ecplise versions above 3.5. You may have to install WTP drivers for an interaction with tomcat and such. We encourage you to use the newest Eclipse EE bundle, because it already comes with all neccessary plugins. Furthermore you should have a Tomcat server (version 6 or older) installed and downloaded and installed the Axis2 Webservice binary. You should configure Eclipse to interact with both axis2 and the tomcat server.

  1. Clone the repo into your eclipse workspace: > [email protected]:KLyko/LimesWebService.git <
  2. There should now exist a folder like >LimesWebService< in your work space containing all Files from the repository, esp. /src /WebContent
  3. Goto Ecplise and create a new >Dynamic Web Project< under the same name as the folder you cloned the repo into, here >LimesWebService<. (Ctrl+N -> other -> Web -> Dynamic Web Project). make sure to configure the appropriate runtime environment: your apache tomcat version. You may want to configure the default configuration by pressing the >Modify< button. Make sure to use the appropriate JavaFacets: Axis2, Tomcat, and the JRE version are most important: choose the best fit for the environment you may want to deploy the webservice later!
  4. Publish the WebService: Crtl+N -> other -> WebService. Check the configuration settings. Service implementation is >de.uni_leipzig.simba.limeswebservice.server.LimesServiceImpl<, start server, deploy
  5. To run the client first check lines 25++ in the >de.uni_leipzig.simba.limeswebservice.server.LimesServiceImplStub.java< to point to your local WebService, the run the >de.uni_leipzig.simba.limeswebservice.client.view.LimesJFrame.java< as a Java Application.

If you are new to developing make sure you got a copy of the "mail.conf.txt" file to authenticate for the mail server the LWS is using for emails. In most cases this should be copied to the "user.home" directory defined by the System.properties.

Clone this wiki locally