grails / grails-core

The Grails Web Application Framework
http://grails.org
Apache License 2.0
2.77k stars 950 forks source link

Grails application with run-app command not able to resolve the views from plugin #11040

Closed ravikovour closed 5 years ago

ravikovour commented 6 years ago

Grails application started with clean,compile and run-app not able to resolve the views from plugin

Steps to Reproduce

Take the sample repository(app and plugin) from grails_runapp_issue From the App level grails clean grails compile grails run-app once the application starts go to the browser and type http://localhost:8080/businessapp/core

Expected Behaviour

It should display businessView from business core plugin

Actual Behaviour

It gives error Error 500: Internal Server Error URI /businessapp/core Class javax.servlet.ServletException Message Could not resolve view with name '/businessCore/businessView' in servlet with name 'grailsDispatcherServlet'

Environment Information

Grails=3.3.2 JDK-8 Windows

Note Same application works fine if I use gradle commands gradlew clean gradlew bootRun

problem with grails compile and run-app

Example Application

https://github.com/ravikovour/grails-3-issues/tree/master/grails_runapp_issue

ilopmar commented 6 years ago

I'm not able to reproduce the issue with latest Grails 3.3.6 version. Please take a look at this sample project I've created: https://github.com/grails-core-issues-forks/grails-core-issue-11040