This isn't a bug with Grails as everything works fine on my Mac, but rather just a question (that I'm sure others will encounter too) I have in regards to running Grails 3 Jars on CentOS.
gvm use grails 3.0.0.RC1
grails create-app foobar
grails package
java -jar build/libs/foobar-0.1.jar
This works great on my Mac with Java 8. However, when I run the exact same Jar (upload and run java -jar foobar-0.1.jar) on a fresh CentOS 7 box with Java 8, the app starts up fine, but always encounters this error when trying to hit the app in the browser:
ERROR org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[grailsDispatcherServlet] - Servlet.service() for servlet [grailsDispatcherServlet] in context with path [] threw exception [Could not resolve view with name '/index' in servlet with name 'grailsDispatcherServlet'] with root cause
I've tried creating controllers/views too and the same exception happens. I can run a regular Spring Boot app with "java -jar" with no problems on the same Centos box. I assuming I will need to change something in how Grails 3 runs these Jars with Tomcat embedded compared to Spring Boot, but not sure exactly where to start. Please let me know if you have any thoughts as to how I could fix this in Grails 3.
Thanks,
Bobby
--
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 grails-dev-disc...@googlegroups.com.
To post to this group, send email to grails-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/d3a6137c-3919-497c-8e3e-5c9196b6ddcd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.