Build and Install Instructions
Requirements
- Tomcat 5.5.9 or later is installed, and you know how to configure it
- Oracle 9i database is available to you
- JDK 1.5
- ant 1.6.5 or later
Build instructions
SECTION I: Download Source Code
- Untar the tarball, or take the latest src from svn at http://svn.apache.org/repos/asf/incubator/lokahi/lokahi/trunk/
- Change directory (cd) to the home directory of lokahi.
SECTION II: Build Software
- Change directory (cd) to the home directory of lokahi.
- Edit the following properties in the build.properties file:
tomcat.home=<YOUR_TOMCAT_HOME>
app.name=lokahi
app.virtuahost.name=
app.authenticationmodule=org.apache.lokahi.core.common.authentication.NoAuthentication
console.log.location=
agent.log.location=
database.uri=jdbc:oracle:thin:@<DATABASE_SERVER>:<PORT>:<DB_NAME>
database.user=<SCHEMA>
database.password=<PASSWORD>
database.driver=oracle.jdbc.driver.OracleDriver
inital.instance.name=
inital.user.name=
install.location=${tomcat.home}/webapps/ - Download external libraries to lib/ directory:
- Verify that JAVA_HOME is properly set to jdk1.5 in your shell.
- Run ant to build the package.
a. classes12.jar -- from the oracle website
b. jdom.jar -- Jdom version 1.0 from http://www.jdom.org/
c. activation.jar -- from http://java.sun.com/products/javabeans/glasgow/jaf.html
d. mail.jar -- from http://java.sun.com/products/javamail/
Install Instructions
SECTION III: Database Setup (Oracle)
- Change directory to build/lokahi/database/ directory.
- Database Administrator task: Create the lokahi schema <SCHEMA> in your Oracle database with default tablespace and enough quota on that tablespace (100 MB is sufficient for install).
- Database Administrator task: Run schema_priv.sql as DBA to grant system privileges to <SCHEMA>:
> @schema_priv.sql <SCH> - Login from sqlplus as <SCHEMA> and run:
> @install.sql
Install.sql will call recompile.sql to recompile any invalid object and report install status at the end. Make sure there is no invalid object and no error message in install.log and recompile.log - Create the superuser. Login from sqlplus as <SCHEMA> and run:
> @tmc_user_data.sql
You will be prompted to enter a username, password, first name, last name, and email address. These will be used to create the superuser account.
Then run:
> @tmc_rel_function_user_data.sql - Create the initial instance.
> @tmc_instance_data.sql
You can add more instances later via
Administration -> Manage TMC -> Manage Instances -> Select Action -> Add
SECTION IV: Agent Install
- Copy the files in $LOKAHI_SOURCE/build/agent to a directory on each server.
- Start the agent by running:
> $JAVA_HOME/bin/java -classpath $JAVA_HOME/lib/tools.jar:$AGENT_HOME/axis.jar:$AGENT_HOME/commons-dbcp-1.2.1.jar:$AGENT_HOME/commons-discovery-0.2.jar:$AGENT_HOME/commons-logging.jar:$AGENT_HOME/commons-pool-1.2.jar:$AGENT_HOME/derby.jar:$AGENT_HOME/derbyclient.jar:$AGENT_HOME/jaxrpc.jar:$AGENT_HOME/jdom.jar:$AGENT_HOME/log4j-1.2.13.jar:$AGENT_HOME/lokahi.jar:$AGENT_HOME/saaj.jar:$AGENT_HOME/wsdl4j-1.5.1.jar org.apache.lokahi.core.agent.TMCAgent start
SECTION V: Console Install
- Modify the web.xml in the <install.location> and set the JvmHttp parameter to the HTTP port of the jvm.
- Define the context in tomcats server.xml file and start tomcat.