Skip to Content
author's profile photo
Former Member

File "/WEB-INF/views/responsive/cms/assistedservicecomponent.jsp" not found

I have migrated my code from Hybris 6.1 to Hybris 6.2. After that I am getting a error for AssistedServiceComponent. When I am hitting homepage, I am getting a backend error File "/WEB-INF/views/responsive/cms/assistedservicecomponent.jsp" not found.
Following is the error stack trace:
SEVERE: Servlet.service() for servlet DispatcherServlet threw exception javax.servlet.ServletException: File "/WEB-INF/views/responsive/cms/assistedservicecomponent.jsp" not found at org.apache.jasper.servlet.JspServlet.handleMissingResource(JspServlet.java:417) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:384) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.pepsico.storefront.filters.AcceleratorAddOnFilter.doFilter(AcceleratorAddOnFilter.java:90) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543) at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:160) at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303) at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1246) at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1029) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:973) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:895) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:967) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:858) at javax.servlet.http.HttpServlet.service(HttpServlet.java:620) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:843) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.pepsico.storefront.filters.AcceleratorAddOnFilter.doFilter(AcceleratorAddOnFilter.java:90) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:656) at org.apache.jasper.runtime.JspContextWrapper.include(JspContextWrapper.java:310) at org.apache.jasper.runtime.JspContextWrapper.include(JspContextWrapper.java:310) at de.hybris.platform.acceleratorcms.component.renderer.impl.GenericViewCMSComponentRenderer.renderView(GenericViewCMSComponentRenderer.java:102) at de.hybris.platform.acceleratorcms.component.renderer.impl.CachingCMSComponentRenderer.renderView(CachingCMSComponentRenderer.java:92) at de.hybris.platform.acceleratorcms.component.renderer.impl.GenericViewCMSComponentRenderer.renderComponent(GenericViewCMSComponentRenderer.java:86) at de.hybris.platform.acceleratorcms.component.renderer.impl.DefaultCMSComponentRendererRegistry.renderComponent(DefaultCMSComponentRendererRegistry.java:81) at de.hybris.platform.acceleratorcms.component.slot.impl.DefaultCMSPageSlotComponentService.renderComponent(DefaultCMSPageSlotComponentService.java:335) at de.hybris.platform.acceleratorcms.tags2.CMSComponentTag.renderItem(CMSComponentTag.java:299) at de.hybris.platform.acceleratorcms.tags2.CMSComponentTag.doStartTag(CMSComponentTag.java:255) at org.apache.jsp.tag.webresponsive.common.header.header_tag._jspx_meth_cms_005fcomponent_005f0(header_tag.java:305) at org.apache.jsp.tag.webresponsive.common.header.header_tag._jspx_meth_cms_005fpageSlot_005f0(header_tag.java:278) at org.apache.jsp.tag.webresponsive.common.header.header_tag.doTag(header_tag.java:140) at org.apache.jsp.tag.webresponsive.template.page_tag._jspx_meth_header_005fheader_005f0(page_tag.java:260) at org.apache.jsp.tag.webresponsive.template.page_tag.access$4(page_tag.java:250) at org.apache.jsp.tag.webresponsive.template.page_tag$Helper.invoke2(page_tag.java:361) at org.apache.jsp.tag.webresponsive.template.page_tag$Helper.invoke(page_tag.java:406) at org.apache.jsp.tag.webresponsive.template.master_tag.doTag(master_tag.java:209) at org.apache.jsp.tag.webresponsive.template.page_tag._jspx_meth_template_005fmaster_005f0(page_tag.java:189) at org.apache.jsp.tag.webresponsive.template.page_tag.doTag(page_tag.java:154) at org.apache.jsp.WEB_002dINF.views.responsive.pages.layout.landingLayout2Page_jsp._jspx_meth_template_005fpage_005f0(landingLayout2Page_jsp.java:141) at org.apache.jsp.WEB_002dINF.views.responsive.pages.layout.landingLayout2Page_jsp._jspService(landingLayout2Page_jsp.java:109) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338) at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:168) at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303) at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1246) at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1029) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:973) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:895) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:967) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:858) at javax.servlet.http.HttpServlet.service(HttpServlet.java:620) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:843)

Assistedservicestorefront is installed into my custom storefront and I have run the impex related to ASM.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • author's profile photo
    Former Member
    May 18, 2017 at 06:32 PM
    10

    Some simple steps to resolve this issue:

    1. Ensure that "assistedservicestorefront" extension is included in your localextensions.xml

    2. If so, install the addon by running the following command:

      ant addoninstall -Daddonnames="assistedservicestorefront" -DaddonStorefront.yacceleratorstorefront=""

    Note: Replace with the name of your own storefront. Hope this helps.

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 11, 2018 at 11:17 AM

    1)ant addoninstall -Daddonnames="assistedservicestorefront" -DaddonStorefront.yacceleratorstorefront="customstorefront" 2)add assistedservicestorefront extension to your local extension.xml 3)for the assisted service component to be rendered in the header part of your storefront, there will be impex in "cms-responsive-content.impex" initialdata extension

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 30, 2018 at 11:53 AM

    Has anyone solved this issue? I stumble over the same problem. Strangely the paths are not matching. The error says ../cms/assistedservicecomponent.jsp but the jps is actually in ../cms/asm/..

    What also bothers me is the all lowercase jsp name. The jsp in ASM module is written like this: assistedServiceComponent.jsp

    So, where does this path come from? Any help?

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 30, 2018 at 06:12 PM

    I could fix this by adding below code in the file.

    /inst/hybris/vinay/hybris/bin/custom/training/trainingstorefront/web/src/de/hybris/training/storefront/web/view

     import org.apache.commons.lang.StringUtils;
     
     UiExperienceViewResolver.java
     //comment below line
     //return getAddOnPrefix() + "/" + extensionName + "/" + prefix + properViewName; // ..<addon-prefix>/<extension-name>/<ui-prefix>/cms/<component-view>
     
     
     return StringUtils.remove(getAddOnPrefix(), "/") + "/" + extensionName + "/" + StringUtils.remove(prefix, "/") + properViewName; // ..///cms/
     
     
    
    
    
    Add comment
    10|10000 characters needed characters exceeded