Unfortunately the JVM offers no way to get a list of all created MBeanServers. Therefor Jolokia tries to detect the server it is running and the uses custom lookup methods for getting the server. See e.g.
https://github.com/rhuss/jolokia/blob/master/agent/core/src/main/java/org/jolokia/detector/WeblogicDetector.java#L52-L68You can either create a custom detector (which is not black magic) for your needs or you use the PlatformMBeanServer which is the only one which can be always detected.
It has nothing todo with the initialization order.
cheers ...
... roland
... roland