{"action":"created","issue":{"url":"https://api.github.com/repos/grails/grails-core/issues/9302","labels_url":"https://api.github.com/repos/grails/grails-core/issues/9302/labels{/name}","comments_url":"https://api.github.com/repos/grails/grails-core/issues/9302/comments","events_url":"https://api.github.com/repos/grails/grails-core/issues/9302/events","html_url":"https://github.com/grails/grails-core/issues/9302","id":108971797,"number":9302,"title":"Grails 3.1.0 \"Could not resolve view\" exceptions when running executible war","user":{"login":"jwagenleitner","id":97695,"avatar_url":"https://avatars.githubusercontent.com/u/97695?v=3","gravatar_id":"","url":"https://api.github.com/users/jwagenleitner","html_url":"https://github.com/jwagenleitner","followers_url":"https://api.github.com/users/jwagenleitner/followers","following_url":"https://api.github.com/users/jwagenleitner/following{/other_user}","gists_url":"https://api.github.com/users/jwagenleitner/gists{/gist_id}","starred_url":"https://api.github.com/users/jwagenleitner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwagenleitner/subscriptions","organizations_url":"https://api.github.com/users/jwagenleitner/orgs","repos_url":"https://api.github.com/users/jwagenleitner/repos","events_url":"https://api.github.com/users/jwagenleitner/events{/privacy}","received_events_url":"https://api.github.com/users/jwagenleitner/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/grails/grails-core/labels/Minor","name":"Minor","color":"bfe5bf"},{"url":"https://api.github.com/repos/grails/grails-core/labels/Workaround%20Available","name":"Workaround Available","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/grails/grails-core/milestones/148","html_url":"https://github.com/grails/grails-core/milestones/grails-3.1.0.RC1","labels_url":"https://api.github.com/repos/grails/grails-core/milestones/148/labels","id":1432637,"number":148,"title":"grails-3.1.0.RC1","description":"","creator":{"login":"graemerocher","id":66626,"avatar_url":"https://avatars.githubusercontent.com/u/66626?v=3","gravatar_id":"","url":"https://api.github.com/users/graemerocher","html_url":"https://github.com/graemerocher","followers_url":"https://api.github.com/users/graemerocher/followers","following_url":"https://api.github.com/users/graemerocher/following{/other_user}","gists_url":"https://api.github.com/users/graemerocher/gists{/gist_id}","starred_url":"https://api.github.com/users/graemerocher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graemerocher/subscriptions","organizations_url":"https://api.github.com/users/graemerocher/orgs","repos_url":"https://api.github.com/users/graemerocher/repos","events_url":"https://api.github.com/users/graemerocher/events{/privacy}","received_events_url":"https://api.github.com/users/graemerocher/received_events","type":"User","site_admin":false},"open_issues":26,"closed_issues":9,"state":"open","created_at":"2015-11-27T15:56:43Z","updated_at":"2015-12-21T13:19:24Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2015-09-29T22:21:01Z","updated_at":"2015-12-22T07:45:16Z","closed_at":null,"body":"Executing the war file after running `grails war` or `gradlew build` generates the following exception when navigating to the index page in Grails v3.1.0.M1 or v3.1.0.BUILD-SNAPSHOT (39fc3e9c4e99316540afdd4925d9ab3aafcd817a):\r\n\r\n`java -Dgrails.env=prod -jar build\\libs\\app310-0.1.war`\r\n\r\n```\r\nGrails application running at http://localhost:8080 in environment: production\r\nERROR org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[grailsDispatcherServlet] - Servlet.service() for\r\nservlet [grailsDispatcherServlet] in context with path [] threw exception [Could not resolve view with name '/index' in\r\nservlet with name 'grailsDispatcherServlet'] with root cause\r\njavax.servlet.ServletException: Could not resolve view with name '/index' in servlet with name 'grailsDispatcherServlet'\r\n\r\n        at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1227) ~[spring-webmvc-4.2.1.R\r\nELEASE.jar!/:4.2.1.RELEASE]\r\n        at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1027) ~[spring\r\n-webmvc-4.2.1.RELEASE.jar!/:4.2.1.RELEASE]\r\n        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:971) ~[spring-webmvc-4.2.\r\n1.RELEASE.jar!/:4.2.1.RELEASE]\r\n```\r\n\r\nFull stacktrace is available at https://gist.github.com/jwagenleitner/96928fdb8e342e50c9f6.\r\n\r\nThe application starts up normally if `grails run-app` or `grails prod run-app` is executed.\r\n\r\nEnvironments:\r\n```\r\nWindows 7 64-bit\r\n| Grails Version: 3.1.0.BUILD-SNAPSHOT\r\n| Groovy Version: 2.4.4\r\n| JVM Version: 1.8.0_60\r\n```\r\n\r\n```\r\nWindows 7 64-bit\r\n| Grails Version: 3.1.0.M1\r\n| Groovy Version: 2.4.4\r\n| JVM Version: 1.8.0_60\r\n```\r\n\r\nTo reproduce:\r\n\r\n1.  `grails create-app app310`\r\n1.  `cd app310`\r\n1.  `grails war` or `gradlew build`\r\n1.  `java -Dgrails.env=prod -jar build\\libs\\app310-0.1.war`\r\n1.  Navigate in browser to `http://localhost:8080/`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/grails/grails-core/issues/comments/166543316","html_url":"https://github.com/grails/grails-core/issues/9302#issuecomment-166543316","issue_url":"https://api.github.com/repos/grails/grails-core/issues/9302","id":166543316,"user":{"login":"graemerocher","id":66626,"avatar_url":"https://avatars.githubusercontent.com/u/66626?v=3","gravatar_id":"","url":"https://api.github.com/users/graemerocher","html_url":"https://github.com/graemerocher","followers_url":"https://api.github.com/users/graemerocher/followers","following_url":"https://api.github.com/users/graemerocher/following{/other_user}","gists_url":"https://api.github.com/users/graemerocher/gists{/gist_id}","starred_url":"https://api.github.com/users/graemerocher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graemerocher/subscriptions","organizations_url":"https://api.github.com/users/graemerocher/orgs","repos_url":"https://api.github.com/users/graemerocher/repos","events_url":"https://api.github.com/users/graemerocher/events{/privacy}","received_events_url":"https://api.github.com/users/graemerocher/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T07:45:16Z","updated_at":"2015-12-22T07:45:16Z","body":"Well that is your problem then, your action is returning `null` so Grails tries to look for an `index` view and there isn´t one"}}