{"action":"created","issue":{"url":"https://api.github.com/repos/opscode-cookbooks/tomcat/issues/138","labels_url":"https://api.github.com/repos/opscode-cookbooks/tomcat/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/opscode-cookbooks/tomcat/issues/138/comments","events_url":"https://api.github.com/repos/opscode-cookbooks/tomcat/issues/138/events","html_url":"https://github.com/opscode-cookbooks/tomcat/issues/138","id":68685318,"number":138,"title":"Adding tomcat::users causes errors","user":{"login":"zlorfi","id":127429,"avatar_url":"https://avatars.githubusercontent.com/u/127429?v=3","gravatar_id":"","url":"https://api.github.com/users/zlorfi","html_url":"https://github.com/zlorfi","followers_url":"https://api.github.com/users/zlorfi/followers","following_url":"https://api.github.com/users/zlorfi/following{/other_user}","gists_url":"https://api.github.com/users/zlorfi/gists{/gist_id}","starred_url":"https://api.github.com/users/zlorfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zlorfi/subscriptions","organizations_url":"https://api.github.com/users/zlorfi/orgs","repos_url":"https://api.github.com/users/zlorfi/repos","events_url":"https://api.github.com/users/zlorfi/events{/privacy}","received_events_url":"https://api.github.com/users/zlorfi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-15T13:36:40Z","updated_at":"2015-05-24T10:40:12Z","closed_at":null,"body":"Adding the `tomcat::users` recipe to chef-solo right after `tomcat::default` in my Vagrant file causes the following error:\r\n\r\n```\r\nERROR: resource template[/etc/tomcat6/tomcat-users.xml] is configured to notify resource service[tomcat] with action restart, but service[tomcat] cannot be found in the resource collection. template[/etc/tomcat6/tomcat-users.xml] is defined in /tmp/vagrant-chef-3/chef-solo-1/cookbooks/tomcat/recipes/users.rb:22:in `from_file'\r\n```\r\n\r\nremoving the following line in users.rb\r\n\r\n`notifies :restart, 'service[tomcat]'`\r\n\r\nhelps. I don't think the line is necessary at all, since the tomcat service will be restarted anyways in the end."},"comment":{"url":"https://api.github.com/repos/opscode-cookbooks/tomcat/issues/comments/105000179","html_url":"https://github.com/opscode-cookbooks/tomcat/issues/138#issuecomment-105000179","issue_url":"https://api.github.com/repos/opscode-cookbooks/tomcat/issues/138","id":105000179,"user":{"login":"lluiscanals","id":6146116,"avatar_url":"https://avatars.githubusercontent.com/u/6146116?v=3","gravatar_id":"","url":"https://api.github.com/users/lluiscanals","html_url":"https://github.com/lluiscanals","followers_url":"https://api.github.com/users/lluiscanals/followers","following_url":"https://api.github.com/users/lluiscanals/following{/other_user}","gists_url":"https://api.github.com/users/lluiscanals/gists{/gist_id}","starred_url":"https://api.github.com/users/lluiscanals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lluiscanals/subscriptions","organizations_url":"https://api.github.com/users/lluiscanals/orgs","repos_url":"https://api.github.com/users/lluiscanals/repos","events_url":"https://api.github.com/users/lluiscanals/events{/privacy}","received_events_url":"https://api.github.com/users/lluiscanals/received_events","type":"User","site_admin":false},"created_at":"2015-05-24T10:40:12Z","updated_at":"2015-05-24T10:40:12Z","body":"Same happens to me."}}