找不到 Liferay jsp 页面
Liferay jsp page not found
我在重定向到 jsp 页面时遇到问题。
<portlet:renderURL var="DLMSnewSearch">
<portlet:param name="mvcPath" value="/view.jsp" />
</portlet:renderURL>
<p>
<a href="<%=DLMSnewSearch%>">← New Search</a>
</p>
Eclipse 抛出警告:未找到类型“/view.jsp”。
抛出异常:
00:38:09,048 ERROR [http-bio-8080-exec-140][render_portlet_jsp:132] null
java.lang.NullPointerException
at org.apache.jsp.view_jsp._jspService(view_jsp.java:716)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
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:116)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96)
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:749)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
at com.liferay.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:331)
at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:112)
at com.liferay.util.bridges.mvc.MVCPortlet.include(MVCPortlet.java:371)
at com.liferay.util.bridges.mvc.MVCPortlet.include(MVCPortlet.java:387)
它一直有效,直到我重新安装 Linux Mint 并从现有源添加 Liferay 项目...这是我从以前的 Mint 保存的备份。
提前致谢。
由于您使用Eclipse IDE 为Liferay 开发,我相信以下内容将适用。您可以通过关注此错误跟踪器获得软件补丁,或等待将其合并到滚动版本中。
JIRA issue: IDE-1855 - The jsp tag "param" has incorrect validation
日食JavaIDE
听起来您受到了 Liferay 软件中已知错误的影响。 Work-around 通过在 IDE 中执行以下步骤来实现此行为:
- 打开“项目属性”对话框。
- Select "Validation" 页面。
- 勾选复选框,"Enable project specific settings."
- 找到 "JSP Reference Validation," 设置并将其关闭以进行手动和构建。
我在重定向到 jsp 页面时遇到问题。
<portlet:renderURL var="DLMSnewSearch">
<portlet:param name="mvcPath" value="/view.jsp" />
</portlet:renderURL>
<p>
<a href="<%=DLMSnewSearch%>">← New Search</a>
</p>
Eclipse 抛出警告:未找到类型“/view.jsp”。
抛出异常:
00:38:09,048 ERROR [http-bio-8080-exec-140][render_portlet_jsp:132] null
java.lang.NullPointerException
at org.apache.jsp.view_jsp._jspService(view_jsp.java:716)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
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:116)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96)
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:749)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
at com.liferay.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:331)
at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:112)
at com.liferay.util.bridges.mvc.MVCPortlet.include(MVCPortlet.java:371)
at com.liferay.util.bridges.mvc.MVCPortlet.include(MVCPortlet.java:387)
它一直有效,直到我重新安装 Linux Mint 并从现有源添加 Liferay 项目...这是我从以前的 Mint 保存的备份。 提前致谢。
由于您使用Eclipse IDE 为Liferay 开发,我相信以下内容将适用。您可以通过关注此错误跟踪器获得软件补丁,或等待将其合并到滚动版本中。
JIRA issue: IDE-1855 - The jsp tag "param" has incorrect validation
日食JavaIDE
听起来您受到了 Liferay 软件中已知错误的影响。 Work-around 通过在 IDE 中执行以下步骤来实现此行为:
- 打开“项目属性”对话框。
- Select "Validation" 页面。
- 勾选复选框,"Enable project specific settings."
- 找到 "JSP Reference Validation," 设置并将其关闭以进行手动和构建。