Personal tools
You are here: Home Developers Corner Java API documentation Installing HalX
Document Actions

Installing HalX

by Wayne Boucher last modified 2008-03-11 13:03

Instructions on how to install HalX from source.

  1. Install Tomcat and Postgres (and Java 1.5).
  2. Start Tomcat in main Tomcat directory: bin/startup.sh.
  3. Start Postgres: postmaster -D /Users/wb104/pgsql/data >logfile 2>&1&
  4. TOMCAT_DIR=/Users/wb104/apache-tomcat-5.5.26-src/build/build/webapps
  5. Unpack halxService.tgz (in HALX_DIR).
  6. cd HalxService.
  7. Edit build.properties:
    1. top.dir (top.dir=HALX_DIR)
    2. public.dir (public.dir=TOMCAT_DIR)
  8. cd clientsrc/org/pimslims/applet/client
  9. Edit Constants.java: clientClassPath near bottom:
    • public static final String clientClassPath = "/halxService/client/WEB_INF/classes"
  10. cd to HalxService/conf.
  11. Edit Properties: db.username (db.username = wb104)
  12. Create database: createdb -E UTF8 pimsdb
  13. Go into database and create roles and user:
    1. create role pimsadmin;
    2. create role pimsview;
    3. create role pimsupdate;
    4. create user halx;
  14. Substitute / anne;/ wb104;/ in install-hb.sql (obtained from Anne)
  15. psql -e pimsdb < ~/support/poupon/install-hb.sql
  16. cd HalxService
  17. Edit build-server.xml: add following to taskdef with name="apt":
    • <classpath refid="class.path.server"/>
  18. ant -buildfile build-server.xml
  19. Edit build-client.xml: add following to taskdef with name="wsimport":
    • <classpath refid="class.path.client"/>
  20. ant -buildfile build-client.xml
  21. Copy appletJnlp.jnlp to TOMCAT_DIR/Halx
  22. Edit that appletJnlp.jnlp:
    1. change codebase at top (codebase="http://localhost:8080/HalX/)
    2. change documentBase at bottom (documentBase="http://localhost:8080/HalX/classes")
    3. change login at bottom (<param name=login value="wb104"/>)
  23. In /Users/wb104/.java.policy put:
    1. grant {
       permission java.security.AllPermission;
      };
  24. cd TOMCAT_DIR/HalX
  25. javaws appletJnlp.jnlp to start HalX applet



Powered by Plone, the Open Source Content Management System

This site conforms to the following standards: