{"action":"created","issue":{"url":"https://api.github.com/repos/escapestudios-cookbooks/newrelic/issues/164","labels_url":"https://api.github.com/repos/escapestudios-cookbooks/newrelic/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/escapestudios-cookbooks/newrelic/issues/164/comments","events_url":"https://api.github.com/repos/escapestudios-cookbooks/newrelic/issues/164/events","html_url":"https://github.com/escapestudios-cookbooks/newrelic/issues/164","id":65969467,"number":164,"title":"Default value for default[:newrelic][:java_agent][:jar_file] breaks agent startup","user":{"login":"ajkerr","id":684669,"avatar_url":"https://avatars.githubusercontent.com/u/684669?v=3","gravatar_id":"","url":"https://api.github.com/users/ajkerr","html_url":"https://github.com/ajkerr","followers_url":"https://api.github.com/users/ajkerr/followers","following_url":"https://api.github.com/users/ajkerr/following{/other_user}","gists_url":"https://api.github.com/users/ajkerr/gists{/gist_id}","starred_url":"https://api.github.com/users/ajkerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajkerr/subscriptions","organizations_url":"https://api.github.com/users/ajkerr/orgs","repos_url":"https://api.github.com/users/ajkerr/repos","events_url":"https://api.github.com/users/ajkerr/events{/privacy}","received_events_url":"https://api.github.com/users/ajkerr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-02T17:06:17Z","updated_at":"2015-04-13T04:37:16Z","closed_at":null,"body":"The Java agent installer adds the following line to the catalina.sh Tomcat script (and perhaps elsewhere):\r\n\r\n```\r\n# ---- New Relic switch automatically added to start command on 2015 Mar 24, 14:55:20\r\nNR_JAR=/usr/share/tomcat8/newrelic/newrelic.jar; export NR_JAR\r\nCATALINA_OPTS=\"$CATALINA_OPTS -javaagent:$NR_JAR\"; export CATALINA_OPTS\r\n```\r\n\r\nNow that #160 makes the value for java_agent jar_file be used, the default value in the attributes file causes Tomcat startup to fail because the jar file is not the same.\r\n\r\nI propose changing the default value in the java_agent attributes file to:\r\n\r\n```ruby\r\ndefault[:newrelic][:java_agent][:jar_file] = \"newrelic.jar\"\r\n```"},"comment":{"url":"https://api.github.com/repos/escapestudios-cookbooks/newrelic/issues/comments/92205019","html_url":"https://github.com/escapestudios-cookbooks/newrelic/issues/164#issuecomment-92205019","issue_url":"https://api.github.com/repos/escapestudios-cookbooks/newrelic/issues/164","id":92205019,"user":{"login":"cog-piisang","id":5936694,"avatar_url":"https://avatars.githubusercontent.com/u/5936694?v=3","gravatar_id":"","url":"https://api.github.com/users/cog-piisang","html_url":"https://github.com/cog-piisang","followers_url":"https://api.github.com/users/cog-piisang/followers","following_url":"https://api.github.com/users/cog-piisang/following{/other_user}","gists_url":"https://api.github.com/users/cog-piisang/gists{/gist_id}","starred_url":"https://api.github.com/users/cog-piisang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cog-piisang/subscriptions","organizations_url":"https://api.github.com/users/cog-piisang/orgs","repos_url":"https://api.github.com/users/cog-piisang/repos","events_url":"https://api.github.com/users/cog-piisang/events{/privacy}","received_events_url":"https://api.github.com/users/cog-piisang/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T04:37:16Z","updated_at":"2015-04-13T04:37:16Z","body":"Hey, sorry for that (I'm @lauripiisang , author of #160 ). Feel free to make a PR or stay on '= 2.8.0' until I fix it."}}