{"action":"created","issue":{"url":"https://api.github.com/repos/lightbringer/dota2ai/issues/2","repository_url":"https://api.github.com/repos/lightbringer/dota2ai","labels_url":"https://api.github.com/repos/lightbringer/dota2ai/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/lightbringer/dota2ai/issues/2/comments","events_url":"https://api.github.com/repos/lightbringer/dota2ai/issues/2/events","html_url":"https://github.com/lightbringer/dota2ai/issues/2","id":178206100,"number":2,"title":"NoSuchElementException in tomcat for example bot","user":{"login":"ThePianoDentist","id":17036692,"avatar_url":"https://avatars.githubusercontent.com/u/17036692?v=3","gravatar_id":"","url":"https://api.github.com/users/ThePianoDentist","html_url":"https://github.com/ThePianoDentist","followers_url":"https://api.github.com/users/ThePianoDentist/followers","following_url":"https://api.github.com/users/ThePianoDentist/following{/other_user}","gists_url":"https://api.github.com/users/ThePianoDentist/gists{/gist_id}","starred_url":"https://api.github.com/users/ThePianoDentist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThePianoDentist/subscriptions","organizations_url":"https://api.github.com/users/ThePianoDentist/orgs","repos_url":"https://api.github.com/users/ThePianoDentist/repos","events_url":"https://api.github.com/users/ThePianoDentist/events{/privacy}","received_events_url":"https://api.github.com/users/ThePianoDentist/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-20T23:23:09Z","updated_at":"2016-09-21T21:21:17Z","closed_at":null,"body":"As I am not experienced with java web-stuff (and in-general), if the solution was relatively obvious was hoping might see it. I followed instructions as closely as I could\r\n\r\nI get an internal server error when the add-on tries to start the bot\r\n\"POST /Dota2BotFramework/api/service/select HTTP/1.1\" 500\r\n\r\n(In example the request, and request in lua config is /Dota2AIService/... however using this just got me 404's with the tomcat instructions)\r\n\r\nI do have:\r\nE:\\Program Files (x86)\\apachetomcat\\apache-tomcat-8.5.5\\webapps\\Dota2BotFramework\\WEB-INF\\lib\\Bot.jar \r\n\r\nThe Bot.jar created from doing mvn package(from inside intellij) on the ExampleBot pom.xml\r\nthat is the only file I have added to the Dota2BotFramework folder after 'deploying' the war file with the tomcat manager\r\n\r\nGoogling the issue I mainly just got glassfish jersey bug reports, however NoSuchElementException suggests that I have left something out somewhere.\r\n\r\n(exception is occurring on lines\r\n`final ServiceLoader<Bot> botLoader = ServiceLoader.load( Bot.class );\r\n        bot = botLoader.iterator().next();`\r\nindicating there are no Bot.class to be loaded, therefore next() excepts. is the Bot.class it is trying to load the one in the /WEB-INF/lib/Bot.jar?\r\n)\r\n\r\nFull catalina exception attached\r\n[catalinaexec.txt](https://github.com/lightbringer/dota2ai/files/483792/catalinaexec.txt)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/lightbringer/dota2ai/issues/comments/248746681","html_url":"https://github.com/lightbringer/dota2ai/issues/2#issuecomment-248746681","issue_url":"https://api.github.com/repos/lightbringer/dota2ai/issues/2","id":248746681,"user":{"login":"ThePianoDentist","id":17036692,"avatar_url":"https://avatars.githubusercontent.com/u/17036692?v=3","gravatar_id":"","url":"https://api.github.com/users/ThePianoDentist","html_url":"https://github.com/ThePianoDentist","followers_url":"https://api.github.com/users/ThePianoDentist/followers","following_url":"https://api.github.com/users/ThePianoDentist/following{/other_user}","gists_url":"https://api.github.com/users/ThePianoDentist/gists{/gist_id}","starred_url":"https://api.github.com/users/ThePianoDentist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThePianoDentist/subscriptions","organizations_url":"https://api.github.com/users/ThePianoDentist/orgs","repos_url":"https://api.github.com/users/ThePianoDentist/repos","events_url":"https://api.github.com/users/ThePianoDentist/events{/privacy}","received_events_url":"https://api.github.com/users/ThePianoDentist/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T21:21:17Z","updated_at":"2016-09-21T21:21:17Z","body":"Woohoo!\r\n\r\nit was missing out the file in not just intellij maven builds, but also mvn straight from command line, and eclipse\r\nMy issue was\r\n\r\n...\\dota2ai\\Example Bot\\src\\main\\**webapp**\\META-INF\\services\r\nneeded renaming to\r\n...\\dota2ai\\Example Bot\\src\\main\\**resources**\\META-INF\\services\r\n\r\nand then it just works\r\nthanks for help tracking down issue\r\n :)"}}
{"actor":{"display_login":"ThePianoDentist"}}