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