Quantcast
Channel: VMware Communities : Popular Discussions - Hyperic User Forums
Viewing all articles
Browse latest Browse all 52618

hqapi command line tools invocation issue

$
0
0
i am having difficulty invoking hqapi.
i placed the following class of the hqapi client:

./server-4.2.0-EE/hq-engine/server/default/deploy/hq.ear/hq.war/hqu/hqapi1/lib/hqapi1-2.2.jar


but it still throws the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/hyperic/hq/hqapi1/tools/Shell
Caused by: java.lang.ClassNotFoundException: org.hyperic.hq.hqapi1.tools.Shell
     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: org.hyperic.hq.hqapi1.tools.Shell.  Program will exit.


I put the hqapi jar from my Hyperic release (which is enterprise 4.2) into the lib directory of the hqapi command line tools and it works. I am not sure why this isn't included in the hqapi tools distribution, but it might want to be noted in the documentation somewhere (http://support.hyperic.com/display/DOC/HQ+API+Command-Line+Tools#HQAPICommand-LineTools-CommonRequiredCommandQualifiers).

Viewing all articles
Browse latest Browse all 52618

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>