论坛

主页 » Liferay Portal » English » 3. Development

组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
Jiri Mecner
MVC Portlet - jsp is not accessible by this portlet
2013年3月8日 上午8:11
答复

Jiri Mecner

等级: New Member

帖子: 4

加入日期: 2013年3月4日

最近的帖子

Hi,

i have just deployed a portlet application developed on Liferay 5.2.3 using JSPPortlet "framework" to Liferay 6.1.1. Surprisingly i got a following error:

1
215:48:28,671 ERROR [http-bio-8080-exec-21][PortletServlet:115] javax.portlet.PortletException: Path /WEB-INF/jsp/view.jsp is not accessible by this portlet
3javax.portlet.PortletException: Path /WEB-INF/jsp/view.jsp is not accessible by this portlet
4        at com.liferay.util.bridges.mvc.MVCPortlet.checkPath(MVCPortlet.java:290)
5        at com.liferay.util.bridges.mvc.MVCPortlet.include(MVCPortlet.java:365)
6        at com.liferay.util.bridges.mvc.MVCPortlet.include(MVCPortlet.java:383)
7        at com.liferay.util.bridges.mvc.MVCPortlet.doView(MVCPortlet.java:145)


I wonder why path /WEB-INF/ is restricted in MVCPortlet? Because i dont want let jsp files accessible directly form browser.
David H Nebinger
RE: MVC Portlet - jsp is not accessible by this portlet
2013年3月8日 上午10:03
答复

David H Nebinger

Community Moderator

等级: Liferay Legend

帖子: 11770

加入日期: 2006年9月1日

最近的帖子

Jiri Mecner:
i have just deployed a portlet application developed on Liferay 5.2.3 using JSPPortlet "framework" to Liferay 6.1.1. Surprisingly i got an error.


It may be a surprise for you, but it's no surprise to me...

You must migrate your portlet to the 6.1.1 SDK and rebuild it. Resolve any coding problems identified, then deploy it.

There is so much that is different between 5.2.3 and 6.1.1, the error you encountered was just the first of many. Rebuilding it under the SDK that matches your Liferay version is the only way to ensure your portlet stands a chance of working when deployed.