One way to work around the startup problem with the JMX Agent might be to write a custom MBean, which will be loaded at a time when the GlassFish environment has all appropriate classloaders set up.
[Message sent by forum member 'llc' (llc)]
http://forums.java.net/jive/thread.jspa?messageID=245072