{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-java/issues/1264","repository_url":"https://api.github.com/repos/aws/aws-sdk-java","labels_url":"https://api.github.com/repos/aws/aws-sdk-java/issues/1264/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-java/issues/1264/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-java/issues/1264/events","html_url":"https://github.com/aws/aws-sdk-java/issues/1264","id":248171509,"number":1264,"title":"AccessControlException: access denied (\"java.lang.RuntimePermission\" \"createClassLoader\") on EC2 Amazon Web Services","user":{"login":"ertugrulcetin","id":8271291,"avatar_url":"https://avatars1.githubusercontent.com/u/8271291?v=4","gravatar_id":"","url":"https://api.github.com/users/ertugrulcetin","html_url":"https://github.com/ertugrulcetin","followers_url":"https://api.github.com/users/ertugrulcetin/followers","following_url":"https://api.github.com/users/ertugrulcetin/following{/other_user}","gists_url":"https://api.github.com/users/ertugrulcetin/gists{/gist_id}","starred_url":"https://api.github.com/users/ertugrulcetin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ertugrulcetin/subscriptions","organizations_url":"https://api.github.com/users/ertugrulcetin/orgs","repos_url":"https://api.github.com/users/ertugrulcetin/repos","events_url":"https://api.github.com/users/ertugrulcetin/events{/privacy}","received_events_url":"https://api.github.com/users/ertugrulcetin/received_events","type":"User","site_admin":false},"labels":[{"id":525908170,"url":"https://api.github.com/repos/aws/aws-sdk-java/labels/Question","name":"Question","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":{"login":"spfink","id":20525381,"avatar_url":"https://avatars1.githubusercontent.com/u/20525381?v=4","gravatar_id":"","url":"https://api.github.com/users/spfink","html_url":"https://github.com/spfink","followers_url":"https://api.github.com/users/spfink/followers","following_url":"https://api.github.com/users/spfink/following{/other_user}","gists_url":"https://api.github.com/users/spfink/gists{/gist_id}","starred_url":"https://api.github.com/users/spfink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spfink/subscriptions","organizations_url":"https://api.github.com/users/spfink/orgs","repos_url":"https://api.github.com/users/spfink/repos","events_url":"https://api.github.com/users/spfink/events{/privacy}","received_events_url":"https://api.github.com/users/spfink/received_events","type":"User","site_admin":false},"assignees":[{"login":"spfink","id":20525381,"avatar_url":"https://avatars1.githubusercontent.com/u/20525381?v=4","gravatar_id":"","url":"https://api.github.com/users/spfink","html_url":"https://github.com/spfink","followers_url":"https://api.github.com/users/spfink/followers","following_url":"https://api.github.com/users/spfink/following{/other_user}","gists_url":"https://api.github.com/users/spfink/gists{/gist_id}","starred_url":"https://api.github.com/users/spfink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spfink/subscriptions","organizations_url":"https://api.github.com/users/spfink/orgs","repos_url":"https://api.github.com/users/spfink/repos","events_url":"https://api.github.com/users/spfink/events{/privacy}","received_events_url":"https://api.github.com/users/spfink/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2017-08-05T08:22:30Z","updated_at":"2017-08-28T19:04:42Z","closed_at":null,"body":"I have a *Java WebApp* that uses some **JVM Sandboxing** and it works on my local machine.\r\n\r\nAlso I can generate fat jar and run like `java -jar my-app.jar` also it works.\r\n\r\nI have the policy file:\r\n\r\n    grant {\r\n      permission java.security.AllPermission;\r\n    };\r\n\r\n\r\nAnd I gave FullEC2Access(from Policies) to my EC2 instance, no luck.\r\n\r\nI use Elastic Beanstalk.\r\n\r\nWhen I deploy to Amazon EC2(**t2.medium**) instance, I get the following error: \r\n\r\n    Caused by: java.security.AccessControlException: access denied (\"java.lang.RuntimePermission\" \"createClassLoader\")\r\n    \tat java.security.AccessControlContext.checkPermission(AccessControlContext.java:472) ~[na:1.8.0_131]\r\n    \tat java.security.AccessController.checkPermission(AccessController.java:884) ~[na:1.8.0_131]\r\n    \tat java.lang.SecurityManager.checkPermission(SecurityManager.java:549) ~[na:1.8.0_131]\r\n    \tat java.lang.SecurityManager.checkCreateClassLoader(SecurityManager.java:611) ~[na:1.8.0_131]\r\n    \tat java.lang.ClassLoader.checkCreateClassLoader(ClassLoader.java:274) ~[na:1.8.0_131]\r\n    \tat java.lang.ClassLoader.<init>(ClassLoader.java:316) ~[na:1.8.0_131]\r\n    \tat java.security.SecureClassLoader.<init>(SecureClassLoader.java:76) ~[na:1.8.0_131]\r\n    \tat java.net.URLClassLoader.<init>(URLClassLoader.java:100) ~[na:1.8.0_131]\r\n    \tat clojure.lang.DynamicClassLoader.<init>(DynamicClassLoader.java:41) ~[na:na]\r\n    \tat clojure.lang.RT$7.run(RT.java:2126) ~[na:na]\r\n    \tat java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_131]"},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-java/issues/comments/325447938","html_url":"https://github.com/aws/aws-sdk-java/issues/1264#issuecomment-325447938","issue_url":"https://api.github.com/repos/aws/aws-sdk-java/issues/1264","id":325447938,"user":{"login":"tmancini","id":6516473,"avatar_url":"https://avatars3.githubusercontent.com/u/6516473?v=4","gravatar_id":"","url":"https://api.github.com/users/tmancini","html_url":"https://github.com/tmancini","followers_url":"https://api.github.com/users/tmancini/followers","following_url":"https://api.github.com/users/tmancini/following{/other_user}","gists_url":"https://api.github.com/users/tmancini/gists{/gist_id}","starred_url":"https://api.github.com/users/tmancini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmancini/subscriptions","organizations_url":"https://api.github.com/users/tmancini/orgs","repos_url":"https://api.github.com/users/tmancini/repos","events_url":"https://api.github.com/users/tmancini/events{/privacy}","received_events_url":"https://api.github.com/users/tmancini/received_events","type":"User","site_admin":false},"created_at":"2017-08-28T19:04:42Z","updated_at":"2017-08-28T19:04:42Z","body":"That makes perfect sense.  Would you mind sharing your Dockerfile?"}}
{"actor":{"display_login":"tmancini"}}