Changes between Version 13 and Version 14 of GIR3.2_NetKarma


Ignore:
Timestamp:
10/24/11 16:34:28 (8 years ago)
Author:
lnevers@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GIR3.2_NetKarma

    v13 v14  
    2323Proceeded to unpack the NetKarma [http://pti.iu.edu/sites/default/files/karma-adaptor-2.5.tar.gz GUSH Adaptor Version 2.5]. Found additional prerequisites for ANT, JDK and RabbitMQ server.  For RabbitMQ used the instructions found the [http://www.rabbitmq.com/debian.html#apt Debian APT repository] page.
    2424
     25{{{
     26 $ tar xvzf karma-adaptor-2.5.tar.gz
     27 $ cd Karma-Adaptor
     28}}}
     29As instructed modified the adaptor_stdenvs.cfg file to set the ADAPTOR_HOME and the JAVA_HOME variables.  File looks as follows:
     30
     31{{{
     32#
     33# Copyright 2007 The Trustees of Indiana University
     34#
     35# Licensed under the Apache License, Version 2.0 (the "License");
     36# you may not use this file except in compliance with the License.
     37# You may obtain a copy of the License at
     38#
     39# http://www.apache.org/licenses/LICENSE-2.0
     40#
     41# Unless required by applicable law or agreed to in writing, software
     42# distributed under the License is distributed on an "AS IS" BASIS,
     43# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     44# See the License for the specific language governing permissions and
     45# limitations under the License.
     46# -----------------------------------------------------------------
     47#
     48# Project:  Karma-adaptor
     49# File:  adaptor_stdenvs.cfg
     50# Description:  config-file for the shell-scripts
     51# -----------------------------------------------------------------
     52export ADAPTOR_HOME=/home/netkarma/rc2/Karma-Adaptor
     53export JAVA_HOME=/usr/local/jdk1.6.0_03
     54export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
     55
     56export CLASSPATH=$ADAPTOR_HOME/lib/commons-cli-1.1.jar:$ADAPTOR_HOME/lib/commons-collections-3.2.1.jar:$ADAPTOR_HOME/lib/netk
     57arma-adaptor-types.jar:$ADAPTOR_HOME/lib/opm-core-1.1.1.jar:$ADAPTOR_HOME/lib/commons-io-1.2.jar:$ADAPTOR_HOME/lib/opm-elmo-1
     58.1.1.jar:$ADAPTOR_HOME/lib/commons-logging-1.1.1.jar:$ADAPTOR_HOME/lib/rabbitmq-client.jar:$ADAPTOR_HOME/lib/karma-messaging.
     59jar:$ADAPTOR_HOME/lib/xbean.jar:$ADAPTOR_HOME/lib/karma-types.jar:$ADAPTOR_HOME/bin
     60}}}
     61
     62Build the Karma adaptor:
     63{{{
     64
     65$ ant karma-adaptor
     66Buildfile: build.xml
     67
     68clean:
     69
     70compile:
     71    [mkdir] Created dir: /home/lnevers/netkarma/rc2/Karma-Adaptor/bin
     72    [javac] Compiling 15 source files to /home/lnevers/netkarma/rc2/Karma-Adaptor/bin
     73    [javac] Note: Some input files use or override a deprecated API.
     74    [javac] Note: Recompile with -Xlint:deprecation for details.
     75    [javac] Note: Some input files use unchecked or unsafe operations.
     76    [javac] Note: Recompile with -Xlint:unchecked for details.
     77karma-adaptor:
     78
     79BUILD SUCCESSFUL
     80Total time: 2 seconds
     81}}}
     82Need to figure out latest failure:
     83{{{
     84$ ./provenance_collector.sh sample/logfile-peng-virtual-machine-10708-1309964193.txt
     85Exception in thread "main" java.lang.NoClassDefFoundError: edu/indiana/d2i/adaptor/client/KarmaAdaptor
     86Caused by: java.lang.ClassNotFoundException: edu.indiana.d2i.adaptor.client.KarmaAdaptor
     87        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
     88        at java.security.AccessController.doPrivileged(Native Method)
     89        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
     90        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
     91        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
     92        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
     93Could not find the main class: edu.indiana.d2i.adaptor.client.KarmaAdaptor. Program will exit.
     94}}}
     95
    2596
    2697--------------