开发者

How to deploy grails project

I have copied grails project war file in

tomcat/webapp

Then i g开发者_StackOverflow中文版ive its url in browser as

http://localhost:8080/LCPRLogViewer-0

I am getting 404 error as,

The requested resource (/LCPRLogViewer-0.1/WEB-INF/grails-app/views/logSelector/logSelector.jsp) is not available.

Why is that so??


Check your tomcat manager to ensure that the app at that context (/LCPRLogViewer-0.1) deployed successfully!

Your next step will be to try deploy the dev war on your local tomcat and confirm that that works too.

"grails dev war" or "grails -Dgrails.env=development war"

If that does work then the problem lies in your production settings.


I ran into a similar issue with one of my Grails projects. In my case, it was because I did not execute "grails install-templates" prior to building the WAR. I know this probably comes too late for the original poster, but hopefully this will help others who run into this issue.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜