SAP Knowledge Base Article - Preview

3666354 - Invalid contextPath error after the 2211-jdk21 update

Symptom

After upgrading your Commerce to jdk21, you receive the following error while accessing the storefront:

SEVERE: Servlet.service() for servlet [DispatcherServlet] threw exception java.lang.IllegalArgumentException: Invalid contextPath '[path1]': must match the start of requestPath: '[path2]' 
at org.springframework.http.server.DefaultRequestPath.validateContextPath(DefaultRequestPath.java:81)
at org.springframework.http.server.DefaultRequestPath.initContextPath(DefaultRequestPath.java:56)
at org.springframework.http.server.DefaultRequestPath.<init>(DefaultRequestPath.java:41)
at org.springframework.http.server.RequestPath.parse(RequestPath.java:79)
at org.springframework.web.util.ServletRequestPathUtils$ServletRequestPath.parse(ServletRequestPathUtils.java:276)
at org.springframework.web.util.ServletRequestPathUtils.parseAndCache(ServletRequestPathUtils.java:67)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:975)
...
at org.apache.jasper.runtime.JspContextWrapper.include(JspContextWrapper.java:317)
at de.hybris.platform.acceleratorcms.component.renderer.impl.GenericViewCMSComponentRenderer.renderView(GenericViewCMSComponentRenderer.java:94)
...


Read more...

Environment

SAP Commerce Cloud with JDK 21

Product

SAP Commerce Cloud 2211 for JDK21

Keywords

jdk21, framework update, Invalid contextPath, must match the start of requestPath , KBA , CEC-SCC-PLA-PL , Platform , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.