【发布时间】:2011-01-18 10:19:48
【问题描述】:
我有一个带有域、控制器和视图页面的插件。 (使用 grails 1.3.6)
我作为独立运行插件,视图工作正常。网址:http://localhost:8080/sample-plugin/gp/list。我可以查看列表页面。
我将插件安装到主应用程序中,即插件测试。在 STS 中作为运行应用程序启动并浏览到 http://localhost:8080/plugin-test/gp/list。我可以查看列表页面。
我将应用程序捆绑为战争,即 plugin-test.war 并部署到 tomcat。当我浏览到 http://localhost:8181/plugin-test/gp/list 时,我收到 404 错误!我不确定我做错了什么。
我已经尝试解决它很长一段时间了,但仍然没有运气。相同的主应用程序在 STS 中运行良好,但在 tomcat 中却不行。
HTTP Status 404 - /plugin-test/WEB-INF/grails-app/views/gp/list.jsp
type Status report
message /plugin-test/WEB-INF/grails-app/views/gp/list.jsp
description The requested resource (/plugin-test/WEB-INF/grails-app/views/gp/list.jsp) is not available.
请帮忙。
谢谢。
杰伊·钱德兰。
【问题讨论】:
标签: grails grails-plugin