To set up the tDar environment, there are some basic procedures to follows. At this time, we use the package provided by Allen, and it makes the work much easier.
- All files including scripts, classes, jsp, libs etc, are all put in the directory "geon-tomcat"; first download this directory and put it in the local machine (say, C:/).
- We also need download another package "work", where all source codes and necessary third-party libraries are for the purpose of development.
- Preparation of Database
- Install PostgreSQL 8.x, and start the db service; (probably some configurations should be done)
- Create a user "geonportaluser", it should be easy if pgAdmin.exe is used.
- Create databases, "geonportaldb", "geoncat" and "tdar". (owner is "geonportaluser").
- Import the data from dump files "geoncat.dump" and "geonportaldb.dump", by the following command:
- psql -U geonportaluser $db < $db.dump;
- "cd work", and run the command, "ant init-db" to create tables in the database "tdar".
- Create environment variables:
- $JAVA_HOME : where Java directory is;
- $PATH : where Java bin directory is.
- Example:
- export JAVA_HOME=/usr/lib/jvm/java-6-sun
- export PATH=$PATH:$JAVA_HOME/bin
- Start of Tomcat: go to the directory "geon-tomcat/bin", and run the command:
- Linux: "sudo ./startup.sh";
- Window: "startup.exe" (the link: http://testdrive.mapinfo.com/techsupp/miprod.nsf/kbase_by_product/87B9844AF29A886D852570530054F28B could help!)
No comments:
Post a Comment