Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Building I-Card Service 1.0
This page contains instructions on how to check out and build web application from the source code of the involved Higgins components. See Firefox-Embedded Selector 1.0 for more information on the involved Higgins components and how they interact with each other, and see Deploying the I-Card Service for information on how to deploy and configure web application.
Contents
Prerequisites
This guide assumes you have the following software:
- Eclipse IDE 3.3 or later (see http://www.eclipse.org/)
- Subclipse svn plug- in v 1.2.4 or later (see http://subclipse.tigris.org/)
- Web standard tools 2.0.1 or later (see http://www.eclipse.org/webtools/)
- Apache Tomcat 5.5 or later (or other servlet container)
- JDK 1.4 or later
Set up your Eclipse workspace
Open a blank workspace
After you start Eclipse, it should display a blank workspace. If you have already been working in Eclipse and your workspace is not empty, you can create a new empty one by selecting File -> Switch Workspace -> Other. Select a folder to use for your new, blank workspace.
Your workspace should look like this:
Make sure your blank workspace is configured to build all projects automatically:
Configure JDK
You should configure your Eclipse IDE to use JDK instead of JRE in order to be able to use Java compiler from ant scripts to build the Higgins components. Click Window -> Preferences and select Java -> Installed JREs. The default JRE is the one that was used to launch Eclipse, however you need to add a different one and set it as the workspace-default one for building. Higgins components are usually built with a Java 1.4 compiler.
Note: You should also check Java -> Compiler -> Compiler compliance level, and make sure this matches the JRE you use to build the projects.
Configure server runtime
In order to work with web applications, Eclipse needs to know about the servlet container (e.g. Tomcat) you want to use. Click Window -> Preferences and select Server -> Installed Runtimes. Click "Add...". Select the server you want to use (e.g. Tomcat 5.5), click "Next", specify the installation directory and click "Finish".
Note: It is recommended to install Tomcat at a path that does not contain any spaces.
Populate the Eclipse workspace
The next step is to populate your Eclipse workspace with the required projects. This could be done in two simple steps:
- Check out main project.
- Check out required projects.
Check out main project
First of all import org.eclipse.higgins.rpps.web project into workspace, click File -> Import. In the import source list, select Other -> Checkout Projects from SVN. The URL for connecting to the Eclipse SVN is as follows:
https://dev.eclipse.org/svnroot/technology |
Checkout org.eclipse.higgins.rpps.web project from https://dev.eclipse.org/svnroot/technology/org.eclipse.higgins/trunk/app/org.eclipse.higgins.rpps.web
Note: This may take several minutes, depending on your internet connection and current Eclipse server load.
Check out required projects
- Right click on org.eclipse.higgins.rpps.web/projectWithDeps.psf -> Import Project Set ...
- Answer No on the request whether to override org.eclipse.higgins.rpps.web project
Note: This may take several minutes, depending on your internet connection and current Eclipse server load.
After checking out the projects, your workspace should be without build errors.
Build Web Application
You must unfold org.eclipse.higgins.rpps.web-project contents in Package Explorer, choose buildwar.xml and push the right mouse button (if this file already opened, push the right mouse button on the edit area). In popup menu choose item Run AS->Ant Build.
For correct complete build procedure you must have installed Java JDK, not JRE. (Also be sure, what enviroment variable JAVA_HOME contain path to JDK)
In the opened window "Edit configuration and launch" pass to tab JRE.
In the field "Separate JRE" you must choose from dropdown list needed JDK. If JDK is missed in list, you must install it.
In the field "VM arguments" you must enter variable ECLIPSE_HOME with full path to installed Eclipse: -DECLIPSE_HOME=fullpath
If you want to build org.eclipse.higgins.rpps.web without Eclipse you can do that from console. Start console in a project folder. Then execute "ant -f buildwar.xml". For executing this command you must have preinstalled Ant on you system.
When build is proceed, all related projects also will be builded.
As result, the folder *\org.eclipse.higgins.rpps.web\build\war will contain rpps-axis.war.
Copy rpps-axis.war into Tomcat folder "/webapps" and restart Tomcat for deploy Web Application.
See Also
For information on how to configure and deploy the web applications, see here: Deploying the Selector Service