On Wed, Mar 20, 2013 at 03:44:58PM +0530, Prasanna Santhanam wrote: > > > > Could you check if jna.jar is in the classpath in the init script > > and that it also exists? > > > > Could you also try adding platform.jar to the classpath if that > > doesn't work? > > > > The classpath in init is /usr/share/cloudstack-agent/lib/ while yum puts > jna.jar in /usr/share/java. I softlinked the jar to > cloudstack-agent/lib and the agent starts up fine now. I see you've > included /usr/share/java/jna.jar in the classpath in debian. So a > similar solution for RPM will work too. >
In the agent init script: ACP=`ls /usr/share/cloudstack-agent/cloud-plugin-hypervisor-kvm-*.jar`":"`ls /usr/share/cloudstack-agent/lib/* | tr '\n' ':'` export CLASSPATH="$SCP:$DCP:$ACP:$JCP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts" No trace of jna being in the classpath. -- Prasanna.,