Non-jboss server types or things like openshift currently have no adapter to JMX connections. If they wanted to add it, they would need to either implement it on their own, or,  open an API request, request a new interface, or something like that.   Either way, they should not be using an internal class named JBossServerConnection raw and expect it to work.