{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/nomad/issues/854","repository_url":"https://api.github.com/repos/hashicorp/nomad","labels_url":"https://api.github.com/repos/hashicorp/nomad/issues/854/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/nomad/issues/854/comments","events_url":"https://api.github.com/repos/hashicorp/nomad/issues/854/events","html_url":"https://github.com/hashicorp/nomad/issues/854","id":136759140,"number":854,"title":"Fat jar won't start","user":{"login":"kabennett","id":15836610,"avatar_url":"https://avatars.githubusercontent.com/u/15836610?v=3","gravatar_id":"","url":"https://api.github.com/users/kabennett","html_url":"https://github.com/kabennett","followers_url":"https://api.github.com/users/kabennett/followers","following_url":"https://api.github.com/users/kabennett/following{/other_user}","gists_url":"https://api.github.com/users/kabennett/gists{/gist_id}","starred_url":"https://api.github.com/users/kabennett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kabennett/subscriptions","organizations_url":"https://api.github.com/users/kabennett/orgs","repos_url":"https://api.github.com/users/kabennett/repos","events_url":"https://api.github.com/users/kabennett/events{/privacy}","received_events_url":"https://api.github.com/users/kabennett/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2016-02-26T17:25:02Z","updated_at":"2016-02-29T22:29:06Z","closed_at":null,"body":"I am using Spring Boot with Consul to develop a new microservice architecture.  I have a fat jar that starts up just fine via the usual jar -jar jarfilename.jar process.  With Consul running it is good to go.\r\n\r\nHowever, when I start nomad and try to run the following job, I get the following error:\r\n\r\n```\r\n2016/02/26 11:12:04 [ERR] client: failed to complete task 'proxyService' for alloc '8215246f-69c4-4535-05e6-9c0849e92f10': Wait returned exit code 1, signal 0, and error <nil>\r\n```\r\nHere's the job I currently have defined.\r\n```\r\njob \"proxyServiceJob\" {\r\n\tdatacenters = [\"dc1\"]\r\n\r\n\tupdate {\r\n\t\tstagger = \"10s\"\r\n\t\tmax_parallel = 1\r\n\t}\r\n\r\n\tgroup \"proxyServiceGroup\" {\r\n\t task \"proxyService\" {\r\n  \t\t\tdriver = \"java\"\r\n\r\n\t\t\tconfig {\r\n    \t\t\tartifact_source = \"http://localhost:8080/NomadStaging/proxy-service-0.0.1-SNAPSHOT.jar\"\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tresources {\r\n                cpu = 500\r\n                memory = 256\r\n            }\r\n  \t\t}\r\n\t}\r\n}\r\n```\r\nI downloaded Nomad today and installed it (nomad_0.3.0_windows_amd64.xip), so it's the latest version. I am running an older version of Consul (Consul v0.5.2, Consul Protocol: 2), so I'm not sure if that could be related to the problem I'm having starting this jar via Nomad."},"comment":{"url":"https://api.github.com/repos/hashicorp/nomad/issues/comments/190428961","html_url":"https://github.com/hashicorp/nomad/issues/854#issuecomment-190428961","issue_url":"https://api.github.com/repos/hashicorp/nomad/issues/854","id":190428961,"user":{"login":"kabennett","id":15836610,"avatar_url":"https://avatars.githubusercontent.com/u/15836610?v=3","gravatar_id":"","url":"https://api.github.com/users/kabennett","html_url":"https://github.com/kabennett","followers_url":"https://api.github.com/users/kabennett/followers","following_url":"https://api.github.com/users/kabennett/following{/other_user}","gists_url":"https://api.github.com/users/kabennett/gists{/gist_id}","starred_url":"https://api.github.com/users/kabennett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kabennett/subscriptions","organizations_url":"https://api.github.com/users/kabennett/orgs","repos_url":"https://api.github.com/users/kabennett/repos","events_url":"https://api.github.com/users/kabennett/events{/privacy}","received_events_url":"https://api.github.com/users/kabennett/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T22:29:06Z","updated_at":"2016-02-29T22:29:06Z","body":"@diptanu I got it working with the attached job description. I ended up having to put the SystemRoot environment variable in the job. In fact, I don't have this specified as a Windows environment variable on my machine. From a command line, 'echo %SystemRoot%' returns 'c:\\WINDOWS', so I'm wondering if Nomad isn't picking up all of the environment variables on Windows.\r\n[helloWorldService.txt](https://github.com/hashicorp/nomad/files/151863/helloWorldService.txt)\r\n\r\n"}}