VMWareCIMQuery Does Not Work

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

VMWareCIMQuery Does Not Work

David Poole
Why not?

[root@myserver bin]# vmwarecimquery <vCenter_FQDN> OpenNMS <password>
Trying to connect to <vCenter_FQDN>... SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
Exception in thread "main" java.lang.NoClassDefFoundError: org/opennms/core/utils/AnyServerX509TrustManager
        at org.opennms.protocols.vmware.VmwareViJavaAccess.relax(VmwareViJavaAccess.java:253)
        at org.opennms.protocols.vmware.VmwareViJavaAccess.connect(VmwareViJavaAccess.java:200)
        at org.opennms.protocols.vmware.VmwareCimQuery.cimQuery(VmwareCimQuery.java:66)
        at org.opennms.protocols.vmware.VmwareCimQuery.main(VmwareCimQuery.java:211)
Caused by: java.lang.ClassNotFoundException: org.opennms.core.utils.AnyServerX509TrustManager
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 4 more

OpenNMS is a local user on the vCenter server

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
Reply | Threaded
Open this post in threaded view
|

Re: VMWareCIMQuery Does Not Work

Ronny Trommer-3
Hi David,

spoke with a developer and we found the problem. It is documented in JIRA in NMS-9456[1]. A jar file reference was missed in the shell script during a refactoring and is fixed in PR#1558[2].

If you don’t want to wait on 20.0.1 you can just copy the shell scripts from the PRs file section [3] and replace them with the broken ones in your system.

Hope this helps and thank you for reporting.


On 27. May 2017, at 00:23, David Poole <[hidden email]> wrote:

Why not?

[root@myserver bin]# vmwarecimquery <vCenter_FQDN> OpenNMS <password>
Trying to connect to <vCenter_FQDN>... SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
Exception in thread "main" java.lang.NoClassDefFoundError: org/opennms/core/utils/AnyServerX509TrustManager
        at org.opennms.protocols.vmware.VmwareViJavaAccess.relax(VmwareViJavaAccess.java:253)
        at org.opennms.protocols.vmware.VmwareViJavaAccess.connect(VmwareViJavaAccess.java:200)
        at org.opennms.protocols.vmware.VmwareCimQuery.cimQuery(VmwareCimQuery.java:66)
        at org.opennms.protocols.vmware.VmwareCimQuery.main(VmwareCimQuery.java:211)
Caused by: java.lang.ClassNotFoundException: org.opennms.core.utils.AnyServerX509TrustManager
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 4 more

OpenNMS is a local user on the vCenter server
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss

signature.asc (507 bytes) Download Attachment