| 25 | {{{ |
| 26 | $ tar xvzf karma-adaptor-2.5.tar.gz |
| 27 | $ cd Karma-Adaptor |
| 28 | }}} |
| 29 | As 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 | # ----------------------------------------------------------------- |
| 52 | export ADAPTOR_HOME=/home/netkarma/rc2/Karma-Adaptor |
| 53 | export JAVA_HOME=/usr/local/jdk1.6.0_03 |
| 54 | export JAVA_HOME=/usr/lib/jvm/java-6-openjdk |
| 55 | |
| 56 | export CLASSPATH=$ADAPTOR_HOME/lib/commons-cli-1.1.jar:$ADAPTOR_HOME/lib/commons-collections-3.2.1.jar:$ADAPTOR_HOME/lib/netk |
| 57 | arma-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. |
| 59 | jar:$ADAPTOR_HOME/lib/xbean.jar:$ADAPTOR_HOME/lib/karma-types.jar:$ADAPTOR_HOME/bin |
| 60 | }}} |
| 61 | |
| 62 | Build the Karma adaptor: |
| 63 | {{{ |
| 64 | |
| 65 | $ ant karma-adaptor |
| 66 | Buildfile: build.xml |
| 67 | |
| 68 | clean: |
| 69 | |
| 70 | compile: |
| 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. |
| 77 | karma-adaptor: |
| 78 | |
| 79 | BUILD SUCCESSFUL |
| 80 | Total time: 2 seconds |
| 81 | }}} |
| 82 | Need to figure out latest failure: |
| 83 | {{{ |
| 84 | $ ./provenance_collector.sh sample/logfile-peng-virtual-machine-10708-1309964193.txt |
| 85 | Exception in thread "main" java.lang.NoClassDefFoundError: edu/indiana/d2i/adaptor/client/KarmaAdaptor |
| 86 | Caused 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) |
| 93 | Could not find the main class: edu.indiana.d2i.adaptor.client.KarmaAdaptor. Program will exit. |
| 94 | }}} |
| 95 | |