hybris – Adding a new page – Unable to refer to tag

I am trying to add a new page and I did so using the impex. I used the following impex:

INSERT_UPDATE ContentPage;$contentCV[unique=true];uid[unique=true];name;masterTemplate(uid,$contentCV);label;defaultPage[default=’true’];approvalStatus(code)[default=’approved’];homepage[default=’false’] ;;homeleads;HomePageLeadsOverview;ContentPage1Template;/homeleads

I have also done the controller changes to ensure the jsp is getting called and the jsp is also called. In the jsp file, I have the following lines of code:

 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
 <%@ taglib prefix="template" tagdir="/WEB-INF/tags/desktop/template" %>
 <%@ taglib prefix="user" tagdir="/WEB-INF/tags/desktop/user" %>
 <%@ taglib prefix="cms" uri="http://hybris.com/tld/cmstags" %>
 <%@ taglib prefix="common" tagdir="/WEB-INF/tags/desktop/common" %>
 <%@ taglib prefix="nav" tagdir="/WEB-INF/tags/desktop/nav" %>
 <%@ taglib prefix="breadcrumb" tagdir="/WEB-INF/tags/desktop/nav/breadcrumb" %>


 <template:page pageTitle="Login"> 
       <div id="globalMessages">
             <common:globalMessages/>
       </div>      

 </template:page>

While I execute the page, I get the following exception:

HTTP Status 500 – An exception occurred processing JSP page /WEB-INF/views/desktop/pages/account/leadsHomePage.jsp at line 11

type Exception report message An exception occurred processing JSP page /WEB-INF/views/desktop/pages/account/leadsHomePage.jsp at line 11 description The server encountered an internal error that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: An exception occurred processing JSP page /WEB-INF/views/desktop/pages/account/leadsHomePage.jsp at line 11

8: 9: 10: 11:
12:
13:
14:

Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) javax.servlet.http.HttpServlet.service(HttpServlet.java:727) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:168) org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303) …… root cause javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.servlet.jsp.JspException: java.lang.NullPointerException org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:912) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:845) org.apache.jsp.WEB_002dINF.views.desktop.pages.account.leadsHomePage_jsp._jspService(leadsHomePage_jsp.java:110) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:727) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) javax.servlet.http.HttpServlet.service(HttpServlet.java:727) ……..

Please can you help?


Source: jsp

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.