{"action":"created","issue":{"url":"https://api.github.com/repos/payara/Payara-Examples/issues/27","labels_url":"https://api.github.com/repos/payara/Payara-Examples/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/payara/Payara-Examples/issues/27/comments","events_url":"https://api.github.com/repos/payara/Payara-Examples/issues/27/events","html_url":"https://github.com/payara/Payara-Examples/issues/27","id":125131785,"number":27,"title":"setAlternateDomainXML","user":{"login":"pmarijan","id":13959883,"avatar_url":"https://avatars.githubusercontent.com/u/13959883?v=3","gravatar_id":"","url":"https://api.github.com/users/pmarijan","html_url":"https://github.com/pmarijan","followers_url":"https://api.github.com/users/pmarijan/followers","following_url":"https://api.github.com/users/pmarijan/following{/other_user}","gists_url":"https://api.github.com/users/pmarijan/gists{/gist_id}","starred_url":"https://api.github.com/users/pmarijan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmarijan/subscriptions","organizations_url":"https://api.github.com/users/pmarijan/orgs","repos_url":"https://api.github.com/users/pmarijan/repos","events_url":"https://api.github.com/users/pmarijan/events{/privacy}","received_events_url":"https://api.github.com/users/pmarijan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/payara/Payara-Examples/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/payara/Payara-Examples/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-06T08:09:27Z","updated_at":"2016-01-06T11:02:06Z","closed_at":null,"body":"Somehow I can't make it work to set alternate domain.xml programaticaly. Is it possible to get the working example?\r\n\r\nI allways get this error\r\n\r\nCould not rename /some_path/microdomain.xml to /tmp/gfembed4607422639911715601tmp/config/domain.xml.bak\r\n"},"comment":{"url":"https://api.github.com/repos/payara/Payara-Examples/issues/comments/169297831","html_url":"https://github.com/payara/Payara-Examples/issues/27#issuecomment-169297831","issue_url":"https://api.github.com/repos/payara/Payara-Examples/issues/27","id":169297831,"user":{"login":"pmarijan","id":13959883,"avatar_url":"https://avatars.githubusercontent.com/u/13959883?v=3","gravatar_id":"","url":"https://api.github.com/users/pmarijan","html_url":"https://github.com/pmarijan","followers_url":"https://api.github.com/users/pmarijan/followers","following_url":"https://api.github.com/users/pmarijan/following{/other_user}","gists_url":"https://api.github.com/users/pmarijan/gists{/gist_id}","starred_url":"https://api.github.com/users/pmarijan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmarijan/subscriptions","organizations_url":"https://api.github.com/users/pmarijan/orgs","repos_url":"https://api.github.com/users/pmarijan/repos","events_url":"https://api.github.com/users/pmarijan/events{/privacy}","received_events_url":"https://api.github.com/users/pmarijan/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T11:02:06Z","updated_at":"2016-01-06T11:02:06Z","body":"Payara Micro started but with error I posted above and it didn't fail completely...I hadn't checked if it started with default domain.xml.\r\n\r\nSolution you suggested worked, I just added ```System.setProperty(\"java.io.tmpdir\", \"/my/folder\"); ``` at the beginning of my application."}}