I am also having this same issue. Is it not possible to use the native Java SNMP with Jboss7?
Starting jboss-as: WARNING: Failed to load the specified log manager class org.jboss.logmanager.LogManager
Exception in thread "main" java.lang.ExceptionInInitializerError
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Caused by: java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")
... 7 more
Are there any workarounds for this or is there a different native way to retrieve data through SNMP?
This should be possible to do, just not in the usual way. I'll look around a little bit.
The only way I see this working is by manually bootstrapping the SNMP adapter class after the container starts instead of using the agent. You should be able to do this from within a deployment for example, by calling sun.management.snmp.AdaptorBootstrap#initialize() directly. If you use a POJO deployment you can probably do it with just an XML descriptor.
Stumbled on this and it worked for me. I did have to add <path name="sun/management/snmp"/> to modules/sun/jdk/main/module.xml .
This solution work for me as well, but i also had to include <path name="sun/management"/> in addition to the <path name="sun/management/snmp"/> to modules/sun/jdk/main/module.xml
Can you explain a little more how you got it running? Did you write a class for that?
I did the setup part but I miss the activation...
Yes, I wrote a class which invokes the AdaptorBootstrap.initialize() method that David Lloyd mentioned in his post. We packed that class in an ear file which is deployed upon start-up of the JBoss server.
Hope this helps.