1. Download both projects and open in Eclipse. Eclipse Version used: Juno Service Release 2.
  2. First, clean and build the entire PingERLOD project. Eclipse > Project > Clean and then Build all.
  3. Export the JAR file. Eclipse > Right click on the project > Export > Java > JAR file > Check the project and the src folder only. Export generated class files and resources, Export Java sources and resources, Export class files with errors and warnings > Generate manifest file (do not need to save), Seal some packages (none) > Finish
  4. Copy all PingERLOD libs into PingERLODServer/lib and include them in the classpath.
  5. Include the generated JAR file in the PingERLODServer classpath.
  6. Paste all project libs in TOMCAT_HOME/lib directory.
  7. Set the TOMCAT_HOME in Eclipse > Windows > Preferences > Tomcat (this step is easier if you have Tomcat plugin for Eclipse).
  8. Configure the Deployment Assembly. Right click on the PingERLODServer project > Properties > Deployment Assembly > Add:
    1. Source: WEB-INF -> Deploy Path: /
    2. Source: WEB-INF/src -> Deploy Path: WEB-INF/classes
    3. Source: PingERLOD.jar -> Deploy Path: WEB-INF/lib
    4. Source: all other libs in the PingERLODServer project -> Deploy Path: WEB-INF/lib
  9. Finally, you can generate the .WAR file. Right click on the project > Export > Web > WAR file. Do not need to export source files.
  10. Place the generated .WAR file under TOMCAT_HOME/webapps
  • No labels