掲示板

Why 'File "/edit.jsp" not found'?

11年前 に 韦 王 によって更新されました。

Why 'File "/edit.jsp" not found'?

New Member 投稿: 2 参加年月日: 12/09/26 最新の投稿
By fllowing 'Liferay Portal 6.1 - Development Guide ', i did a example, created a HelloPortlet with a class, a edit.jsp, a view.jsp. But after i deployed it, the console showed like that:
07:15:09,453 ERROR [http-bio-8080-exec-40][render_portlet_jsp:154] javax.servlet.ServletException: File "/edit.jsp" not found
at org.apache.jasper.servlet.JspServlet.handleMissingResource(JspServlet.java:412)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
at com.liferay.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:323)
at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:105)
at com.liferay.util.bridges.mvc.MVCPortlet.include(MVCPortlet.java:367)
at com.liferay.util.bridges.mvc.MVCPortlet.include(MVCPortlet.java:383)
at com.liferay.util.bridges.mvc.MVCPortlet.doDispatch(MVCPortlet.java:316)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)

Why?
Thanks!
thumbnail
11年前 に Bart Simpson によって更新されました。

RE: Why 'File "/edit.jsp" not found'?

Liferay Master 投稿: 522 参加年月日: 11/08/29 最新の投稿
If you'd checkout MVCPortlet class, liferay would look for init-parameters with the name

So check if there is an init parameter like
 <init-param>
			<name>edit-template</name>
			<value>/edit.jsp</value>
		</init-param>

in your
portlet.xml 
and the file exists there.
11年前 に 韦 王 によって更新されました。

RE: Why 'File &quot;/edit.jsp&quot; not found'?

New Member 投稿: 2 参加年月日: 12/09/26 最新の投稿
Bart Simpson:
If you'd checkout MVCPortlet class, liferay would look for init-parameters with the name

So check if there is an init parameter like
 <init-param>
			<name>edit-template</name>
			<value>/edit.jsp</value>
		</init-param>

in your
portlet.xml 
and the file exists there.



Thanks a lot. By using your method, it's be solved.
9年前 に Zamani Msimango によって更新されました。

RE: Why 'File &quot;/edit.jsp&quot; not found'?

New Member 投稿: 1 参加年月日: 14/07/30 最新の投稿
Bart Simpson:
If you'd checkout MVCPortlet class, liferay would look for init-parameters with the name

So check if there is an init parameter like
 <init-param>
			<name>edit-template</name>
			<value>/edit.jsp</value>
		</init-param>

in your
portlet.xml 
and the file exists there.



thank you very much, i was struggling with the same problem but now am all s0rted thanx to you emoticon