-
Notifications
You must be signed in to change notification settings - Fork 516
Description
Glassfish is based on OSGI.
Currently it does not start at all - error java.lang.NoClassDefFoundError: org/hotswap/agent/PluginManager
. This is because of OSGI bundle mechanism, where parent classloader delegation does not work. Look at https://github.com/HotswapProjects/HotswapAgent/blob/master/hotswap-agent-core/src/main/java/org/hotswap/agent/HotswapAgent.java fixJboss7Modules(), this is similar fix for JBoss. On Glassfish, you need to set "org.osgi.framework.bootdelegation" property (see https://blogs.oracle.com/swchan/entry/profiling_glassfish_3_with_jprofiler), but I was unable to do it from HotswapAgent.
Support for hotswap-agent.properties needs to be developed (similar to JettyPlugin, TomcatPlugin).
Test with https://github.com/HotswapProjects/HotswapAgentExamples/blob/master/plain-servlet/run-tests.sh , uncomment Glassfish section.