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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

marcopas
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?

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/a4cadca8-d27b-4fc3-bdb6-e697cd1d81c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.