VMware CIM query tool not working

Hi, I’ve upgrade from 21 to 24 and vmwarecimquery stoped working
Any help will be greatly appreciated

/opt/opennms/bin/vmwarecimquery servername nms password
Trying to connect to vc-prod.chi.medavail.net... SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.dom4j.io.SAXContentHandler (file:/opt/opennms/lib/dom4j-1.6.1.jar) to method com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser$LocatorProxy.getEncoding()
WARNING: Please consider reporting this to the maintainers of org.dom4j.io.SAXContentHandler
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
        at org.doublecloud.ws.util.ReflectUtil.setObjectField(ReflectUtil.java:120)

@christian do you have any hints for this issue? We had a similar problem a while ago here: NMS-9456.

Yes, I remember, but this was fixed in PR #1558. Can you check, whether the vmwarcimquery script include the changes of PR #1558?

Yes of course, the changes where already merged in 20.0.1.


Thanks for taking the trouble to reply

It appears the functionality should be there …but it is not

Is there anything else I can do to get this resolved?



Seeing this problem as well in 26.2.1.

Apparently the jaxb-api jar is no longer included in the Java 11 JDK. To get vimwarecimquery to work I added the following line:

JAXB_JAR=ls -1 "$OPENNMS_HOME"/lib/endorsed/org.apache.servicemix.specs.jaxb-api-*.jar | head -n 1

And then updated the classpath line to include it: