From lokahi-commits-return-125-apmail-incubator-lokahi-commits-archive=incubator.apache.org@incubator.apache.org Mon Jul 03 15:31:22 2006 Return-Path: Delivered-To: apmail-incubator-lokahi-commits-archive@locus.apache.org Received: (qmail 63987 invoked from network); 3 Jul 2006 15:31:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Jul 2006 15:31:22 -0000 Received: (qmail 7070 invoked by uid 500); 3 Jul 2006 15:31:21 -0000 Delivered-To: apmail-incubator-lokahi-commits-archive@incubator.apache.org Received: (qmail 7049 invoked by uid 500); 3 Jul 2006 15:31:21 -0000 Mailing-List: contact lokahi-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lokahi-dev@incubator.apache.org Delivered-To: mailing list lokahi-commits@incubator.apache.org Received: (qmail 7040 invoked by uid 99); 3 Jul 2006 15:31:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jul 2006 08:31:21 -0700 X-ASF-Spam-Status: No, hits=-8.6 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME,USERPASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jul 2006 08:31:20 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 4ADD51A983A; Mon, 3 Jul 2006 08:31:00 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r418791 - in /incubator/lokahi/site/trunk: howitworks.html images/lokahi_logo_144_80.png install.html styles/styles.css Date: Mon, 03 Jul 2006 15:30:59 -0000 To: lokahi-commits@incubator.apache.org From: toback@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060703153100.4ADD51A983A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: toback Date: Mon Jul 3 08:30:59 2006 New Revision: 418791 URL: http://svn.apache.org/viewvc?rev=418791&view=rev Log: more site updates. Modified: incubator/lokahi/site/trunk/howitworks.html incubator/lokahi/site/trunk/images/lokahi_logo_144_80.png incubator/lokahi/site/trunk/install.html incubator/lokahi/site/trunk/styles/styles.css Modified: incubator/lokahi/site/trunk/howitworks.html URL: http://svn.apache.org/viewvc/incubator/lokahi/site/trunk/howitworks.html?rev=418791&r1=418790&r2=418791&view=diff ============================================================================== --- incubator/lokahi/site/trunk/howitworks.html (original) +++ incubator/lokahi/site/trunk/howitworks.html Mon Jul 3 08:30:59 2006 @@ -22,7 +22,7 @@

How Lokahi Works

- + Elements of Lokahi

Lokahi manages both infrastructure and applications; the two are intertwined, but can be considered more or less separately for the purposes of explanation.

The application side is relatively simple; projects have virtual hosts and contexts. Users are assigned to applications.

Modified: incubator/lokahi/site/trunk/images/lokahi_logo_144_80.png URL: http://svn.apache.org/viewvc/incubator/lokahi/site/trunk/images/lokahi_logo_144_80.png?rev=418791&r1=418790&r2=418791&view=diff ============================================================================== Binary files - no diff available. Modified: incubator/lokahi/site/trunk/install.html URL: http://svn.apache.org/viewvc/incubator/lokahi/site/trunk/install.html?rev=418791&r1=418790&r2=418791&view=diff ============================================================================== --- incubator/lokahi/site/trunk/install.html (original) +++ incubator/lokahi/site/trunk/install.html Mon Jul 3 08:30:59 2006 @@ -23,7 +23,9 @@

Build and Install Instructions

Requirements

-

Tomcat 5.5.9, Oracle 9i, JDK 1.5, ant 1.6.5 or later.

+
    +
  • Tomcat 5.5.9 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

@@ -32,38 +34,12 @@ http://svn.apache.org/repos/asf/incubator/lokahi/lokahi/trunk/
  • Change directory (cd) to the home directory of lokahi.
  • -

    SECTION II: Database Setup (Oracle)

    -
      -
    1. Change directory to database/ directory.
    2. -
    3. Create the lokahi schema <SCHEMA> in your Oracle database with default tablespace - and enough quota on that tablespace (100 MB is sufficient for install).
    4. -
    5. Run schema_priv.sql as DBA to grant system privileges to <SCHEMA>: -
      > @schema_priv.sql <SCH>
    6. -
    7. Login from sqlplus as <SCHEMA> and run: -
      SQL> @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
    8. -
    9. Create the superuser. Login from sqlplus as <SCHEMA> and run:
    10. -
      > @tmc_user_data.sql
      -> @tmc_rel_function_user_data.sql
      -
    -

    SECTION III: Build Software

    + +

    SECTION II: Build Software

    1. Change directory (cd) to the home directory of lokahi.
    2. Edit the following properties in the build.properties file:
    3. -
      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.user=
      -database.password=
      -database.driver=oracle.jdbc.driver.OracleDriver
      -inital.instance.name=
      -inital.user.name=
      -install.location=${tomcat.home}/webapps/
      +
      tomcat.home=<YOUR_TOMCAT_HOME>app.name=lokahiapp.virtuahost.name=app.authenticationmodule=org.apache.lokahi.core.common.authentication.NoAuthenticationconsole.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.OracleDriverinital.instance.name=inital.user.name=install.location=${tomcat.home}/webapps/
    4. Download external libraries to lib/ directory:
    5. a. classes12.jar   -- from the oracle website
       b. jdom.jar        -- Jdom version 1.0 from http://www.jdom.org/
      @@ -71,16 +47,22 @@
       d. mail.jar        -- from http://java.sun.com/products/javamail/
    6. Verify that JAVA_HOME is properly set to jdk1.5 in your shell.
    7. Run ant to build the package.
    - +

    Install Instructions

    +

    SECTION III: Database Setup (Oracle)

    +
      +
    1. Change directory to build/lokahi/database/ directory.
    2. 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).
    3. Database Administrator task: Run schema_priv.sql as DBA to grant system privileges to <SCHEMA>:
      > @schema_priv.sql <SCH>
    4. 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
    5. 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
    6. Create the initial instance.
      > @tmc_instance_data.sql
      You can add more instances later via
      Administration -> Manage TMC -> Manage Instances -> Select Action -> Add
    7. +
    +

    SECTION IV: Agent Install

      -
    1. Copy the files in ./build/agent to a directory on each server.
    2. -
    3. Start the agent buy running:
    4. -
      $JAVA_HOME/bin/java -classpath $JAVA_HOME/lib/tools.jar:$AGENT_HOME/log4j-1.2.13.jar:$AGENT_HOME/lokahi.jar:$AGENT_HOME/axis.jar:$AGENT_HOME/commons-logging.jar:$AGENT_HOME/commons-discovery-0.2.jar:$AGENT_HOME/jdom.jar:$AGENT_HOME/commons-dbcp-1.2.1.jar:$AGENT_HOME/commons-dbcp-1.2.1.jar:$AGENT_HOME/derby.jar:$AGENT_HOME:/derbyclient.jar:$AGENT_HOME/commons-pool-1.2.jar org.apache.lokahi.core.agent.TMCAgent start
    +
  • 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

      -
    1. define the context in tomcats server.xml file and start tomcat.
    2. +
    3. Modify the web.xml in the <install.location> and set the JvmHttp parameter to the HTTP port of the jvm.
    4. +
    5. Define the context in tomcats server.xml file and start tomcat.
    Modified: incubator/lokahi/site/trunk/styles/styles.css URL: http://svn.apache.org/viewvc/incubator/lokahi/site/trunk/styles/styles.css?rev=418791&r1=418790&r2=418791&view=diff ============================================================================== --- incubator/lokahi/site/trunk/styles/styles.css (original) +++ incubator/lokahi/site/trunk/styles/styles.css Mon Jul 3 08:30:59 2006 @@ -11,8 +11,8 @@ max-width:50em;} dd { -margin-left:15px; -margin-bottom:2em; +margin-left:2em; +margin-bottom:1.3em; } dt { @@ -30,37 +30,18 @@ background-color:#ffffff; } -#leftnav { -float:left; -width=150px; -margin:5px 10px 0 0; -padding-right:.3em; -border-style:solid; -border-width:1px; -border-color:#cecac6; -background-color:#efeae6; -text-decoration:none; +#leftnav {float:left;width:10em;margin:5px 10px 0 0;padding-right:.3em;border-style:solid;border-width:1px;border-color:#cecac6;background-color:#efeae6;text-decoration:none;}#leftnav ul {list-style-type: none;line-height:1.5em;text-align:right;font-family: Arial, Helvetica, sans-serif; +}#leftnav ul a:link { +color:#666462;text-decoration: none; +}#leftnav ul a:visited { +color:#666462;text-decoration: none; +}#leftnav ul a:hover { +color:#4ca038; +}#leftnav ul a:active { +color:#4ca038; +}#content { +margin-left: 11.2em;padding:0 5px 0 5px; } - -#leftnav ul { -list-style-type: none; -line-height:1.5em; -text-align:right; -margin-left:-1.5em; -font-family: Arial, Helvetica, sans-serif;} - -#leftnav ul a:link {color:#666462; -text-decoration: none;} - -#leftnav ul a:visited {color:#666462; -text-decoration: none;} - -#leftnav ul a:hover {color:#4ca038;} - -#leftnav ul a:active {color:#4ca038;} - -#content {margin-left: 150px; -padding:0 5px 0 5px;} .code { font-family:'Courier New',fixed-width;