{"action":"created","issue":{"url":"https://api.github.com/repos/HotswapProjects/HotswapAgent/issues/39","repository_url":"https://api.github.com/repos/HotswapProjects/HotswapAgent","labels_url":"https://api.github.com/repos/HotswapProjects/HotswapAgent/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/HotswapProjects/HotswapAgent/issues/39/comments","events_url":"https://api.github.com/repos/HotswapProjects/HotswapAgent/issues/39/events","html_url":"https://github.com/HotswapProjects/HotswapAgent/issues/39","id":38885991,"number":39,"title":"Glassfish support","user":{"login":"edudant","id":2003838,"avatar_url":"https://avatars.githubusercontent.com/u/2003838?v=3","gravatar_id":"","url":"https://api.github.com/users/edudant","html_url":"https://github.com/edudant","followers_url":"https://api.github.com/users/edudant/followers","following_url":"https://api.github.com/users/edudant/following{/other_user}","gists_url":"https://api.github.com/users/edudant/gists{/gist_id}","starred_url":"https://api.github.com/users/edudant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edudant/subscriptions","organizations_url":"https://api.github.com/users/edudant/orgs","repos_url":"https://api.github.com/users/edudant/repos","events_url":"https://api.github.com/users/edudant/events{/privacy}","received_events_url":"https://api.github.com/users/edudant/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2014-07-28T12:40:44Z","updated_at":"2016-12-08T18:41:01Z","closed_at":null,"body":"Glassfish is based on OSGI.\n\nCurrently 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.\n\nSupport for hotswap-agent.properties needs to be developed (similar to JettyPlugin, TomcatPlugin). \n\nTest with  https://github.com/HotswapProjects/HotswapAgentExamples/blob/master/plain-servlet/run-tests.sh , uncomment Glassfish section.\n"},"comment":{"url":"https://api.github.com/repos/HotswapProjects/HotswapAgent/issues/comments/265818982","html_url":"https://github.com/HotswapProjects/HotswapAgent/issues/39#issuecomment-265818982","issue_url":"https://api.github.com/repos/HotswapProjects/HotswapAgent/issues/39","id":265818982,"user":{"login":"skybber","id":2523097,"avatar_url":"https://avatars.githubusercontent.com/u/2523097?v=3","gravatar_id":"","url":"https://api.github.com/users/skybber","html_url":"https://github.com/skybber","followers_url":"https://api.github.com/users/skybber/followers","following_url":"https://api.github.com/users/skybber/following{/other_user}","gists_url":"https://api.github.com/users/skybber/gists{/gist_id}","starred_url":"https://api.github.com/users/skybber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skybber/subscriptions","organizations_url":"https://api.github.com/users/skybber/orgs","repos_url":"https://api.github.com/users/skybber/repos","events_url":"https://api.github.com/users/skybber/events{/privacy}","received_events_url":"https://api.github.com/users/skybber/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T18:41:01Z","updated_at":"2016-12-08T18:41:01Z","body":"I've commented out the problematic classloader lock. It should be more stable now. But the risk of dedlock is not removed and still persists. As a last option you can increase timeout at  [](https://github.com/HotswapProjects/HotswapAgent/blob/master/hotswap-agent-core/src/main/java/org/hotswap/agent/util/HotswapTransformer.java#L263) , but this is hack. We must find out better solution for the new (delayed) release."}}
{"actor":{"display_login":"skybber"}}