Grails 3 unable to resolve view when running as FAT jar/war

38 views
Skip to first unread message

Marco Pas

unread,
Jun 11, 2015, 9:02:21 AM6/11/15
to grails-de...@googlegroups.com
When running a Grails 3.0.1 application in development mode all works ok. But when I package the grails application using `grails package` or `grails war` then the resulting `jar` and `war` file produce errors when running using.

`java Dgrails.env=prod -jar <application>.jar`

Some views cannot be resolved and the resulting error is:

```ERROR org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[grailsDispatcherServlet]
- Servlet.service() for servlet [grailsDispatcherServlet] in context with path [] threw exception [  not resolve view with name ....```

Any solution to this problem?
Reply all
Reply to author
Forward
0 new messages