{"action":"opened","issue":{"url":"https://api.github.com/repos/jpos/jPOS/issues/174","repository_url":"https://api.github.com/repos/jpos/jPOS","labels_url":"https://api.github.com/repos/jpos/jPOS/issues/174/labels{/name}","comments_url":"https://api.github.com/repos/jpos/jPOS/issues/174/comments","events_url":"https://api.github.com/repos/jpos/jPOS/issues/174/events","html_url":"https://github.com/jpos/jPOS/issues/174","id":333447836,"node_id":"MDU6SXNzdWUzMzM0NDc4MzY=","number":174,"title":"Q2 classloder issue","user":{"login":"ar","id":100354,"node_id":"MDQ6VXNlcjEwMDM1NA==","avatar_url":"https://avatars3.githubusercontent.com/u/100354?v=4","gravatar_id":"","url":"https://api.github.com/users/ar","html_url":"https://github.com/ar","followers_url":"https://api.github.com/users/ar/followers","following_url":"https://api.github.com/users/ar/following{/other_user}","gists_url":"https://api.github.com/users/ar/gists{/gist_id}","starred_url":"https://api.github.com/users/ar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ar/subscriptions","organizations_url":"https://api.github.com/users/ar/orgs","repos_url":"https://api.github.com/users/ar/repos","events_url":"https://api.github.com/users/ar/events{/privacy}","received_events_url":"https://api.github.com/users/ar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-18T21:50:50Z","updated_at":"2018-06-18T21:50:50Z","closed_at":null,"author_association":"MEMBER","body":"In 686756eaa6e8f we made a change that breaks classloading from Wildfly 10.\r\n\r\nIn [jpos-users](https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/jpos-users/NGC7XLXNNOU/FW-vSq2eAwAJ) Rama mentions that this change fixes the problem:\r\n\r\n```\r\npublic Q2 (String[] args, BundleContext bundleContext) {\r\n        super();\r\n        this.args = args;\r\n        startTime = System.currentTimeMillis();\r\n        instanceId = UUID.randomUUID();\r\n        parseCmdLine (args);\r\n        libDir     = new File (deployDir, \"lib\");\r\n        dirMap     = new TreeMap ();\r\n        deployDir.mkdirs ();\r\n\r\n---     mainClassLoader = getClass().getClassLoader();\r\n+++   mainClassLoader = Thread.currentThread().getContextClassLoader();\r\n\r\n        this.bundleContext = bundleContext;\r\n    }\r\n```\r\n\r\nWe'll consider using one or the other one depending on bundleContext being null.\r\n\r\nThis needs some deep review.\r\n"}}
{"actor":{"display_login":"ar"}}