cancel
Showing results for 
Search instead for 
Did you mean: 

Backoffice not opening with Sap commerce 6.6.0.29 patch upgrade

100081882813
Explorer
0 Kudos
356

We are upgrading our current version of hybris 6.6.0.11 to 6.6.0.29.

With this patch upgrade the backoffice is not opening with the below error:

Aug 26, 2022 10:05:06 AM org.apache.catalina.core.StandardWrapperValve invoke

SEVERE: Servlet.service() for servlet [zkLoader] in context with path [/backoffice] threw exception

org.zkoss.zel.ELException: Unable to find ExpressionFactory of type: # Licensed to the Apache Software Foundation (ASF) under one or more

at org.zkoss.zel.ExpressionFactory.newInstance(ExpressionFactory.java:167)

at org.zkoss.zel.ExpressionFactory.newInstance(ExpressionFactory.java:106)

at org.zkoss.zel.BeanELResolver.invoke(BeanELResolver.java:200)

at org.zkoss.zel.CompositeELResolver.invoke(CompositeELResolver.java:84)

at org.zkoss.xel.zel.XelELResolver.invoke(XelELResolver.java:189)

at org.zkoss.zel.CompositeELResolver.invoke(CompositeELResolver.java:84)

at org.zkoss.zel.impl.parser.AstValue.getValue(AstValue.java:176)

at org.zkoss.zel.impl.ValueExpressionImpl.getValue(ValueExpressionImpl.java:184)

at org.zkoss.xel.zel.ELXelExpression.evaluate(ELXelExpression.java:41)

at org.zkoss.zk.xel.impl.SimpleEvaluator.evaluate(SimpleEvaluator.java:64)

at org.zkoss.zk.ui.http.ExecutionImpl.evaluate0(ExecutionImpl.java:197)

at org.zkoss.zk.ui.http.ExecutionImpl.evaluate(ExecutionImpl.java:185)

at org.zkoss.zk.ui.impl.PageImpl.setTitle(PageImpl.java:370)

at org.zkoss.zk.ui.impl.PageImpl.init(PageImpl.java:279)

at org.zkoss.zk.ui.metainfo.PageDefinition.init(PageDefinition.java:983)

at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:436)

at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:369)

at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:211)

at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:137)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

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.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:208)

at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:177)

at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:347)

at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:263)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at de.hybris.platform.servicelayer.web.WebAppMediaFilter.doFilter(WebAppMediaFilter.java:140)

at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:347)

at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:263)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:330)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$StatisticsGatewayFilter.doFilter(AbstractPlatformFilterChain.java:419)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:300)

at de.hybris.platform.servicelayer.web.WebAppMediaFilter.doFilter(WebAppMediaFilter.java:140)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:300)

at com.hybris.cockpitng.modules.spring.filter.ExternalModuleContextClassLoaderFilter.doFilter(ExternalModuleContextClassLoaderFilter.java:44)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:300)

at de.hybris.platform.servicelayer.web.DynamicCatalogVersionActivationFilter.doFilter(DynamicCatalogVersionActivationFilter.java:90)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:300)

at de.hybris.platform.servicelayer.web.DataSourceSwitchingFilter.doFilter(DataSourceSwitchingFilter.java:70)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:300)

at de.hybris.platform.servicelayer.web.SessionFilter.doFilter(SessionFilter.java:99)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:300)

at de.hybris.platform.servicelayer.web.RedirectWhenSystemIsNotInitializedFilter.doFilter(RedirectWhenSystemIsNotInitializedFilter.java:101)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:300)

at de.hybris.platform.servicelayer.web.TenantActivationFilter.doFilter(TenantActivationFilter.java:88)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:300)

at de.hybris.platform.servicelayer.web.Log4JFilter.doFilter(Log4JFilter.java:44)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:300)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain.processStandardFilterChain(AbstractPlatformFilterChain.java:209)

at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain.doFilterInternal(AbstractPlatformFilterChain.java:186)

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:347)

at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:263)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at de.hybris.platform.servicelayer.web.XSSFilter.processPatternsAndDoFilter(XSSFilter.java:358)

at de.hybris.platform.servicelayer.web.XSSFilter.doFilter(XSSFilter.java:306)

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.StandardWrapperValve.invoke(StandardWrapperValve.java:219)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:492)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:165)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:452)

at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1195)

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:654)

at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:317)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.lang.Thread.run(Thread.java:748)

Caused by: java.lang.ClassNotFoundException: # Licensed to the Apache Software Foundation (ASF) under one or more

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1951)

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1794)

at org.zkoss.zel.ExpressionFactory.newInstance(ExpressionFactory.java:160)

... 85 more

Any inputs would be appreciated.
View Entire Topic
mansurarisoy
Contributor
0 Kudos

With the patch 6.6.0.29 SAP upgraded Tomcat version to 7.0.100. Unfortunately, this breaks backoffice with the exception in your question.

To fix this error, follow the following steps:
  1. Stop the server if it’s running.
  2. Download jasper-el.jar from Apache 7.0.99. The file is located under lib folder of Tomcat. (You can download Apache 7.0.99 from https://archive.apache.org/dist/tomcat/tomcat-7/v7.0.99/bin)
  3. Replace the file with the one under ${HYBRIS_BIN_DIR}/platform/tomcat/lib
  4. Start the server

P.S. You can place this jar file into customize folder, to store this jar in your code repository and every developer can fix this issue on their local easily with ant customize command.

Hope this helps,

100081882813
Explorer
0 Kudos

After implementing the above changes another error is coming during the server start up due to which backffice is not opening:

The error is:

INFO | jvm 1 | main | 2022/09/21 09:09:52.361 | ERROR [localhost-startStop-1] [ContextLoader] Context initialization failed

INFO | jvm 1 | main | 2022/09/21 09:09:52.361 | org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'backofficeWarmUpTypeFacadeCaches' defined in ServletContext resource [/WEB-INF/backoffice-web-spring.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: com.hybris.cockpitng.dataaccess.facades.type.DataAttribute$Builder.selectionOf(Ljava/lang/String;)Lcom/hybris/cockpitng/dataaccess/facades/type/DataAttribute$Builder;

INFO | jvm 1 | main | 2022/09/21 09:09:52.361 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE]

INFO | jvm 1 | main | 2022/09/21 09:09:52.361 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE]

INFO | jvm 1 | main | 2022/09/21 09:09:52.361 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE]

INFO | jvm 1 | main | 2022/09/21 09:09:52.361 | at

mansurarisoy
Contributor
0 Kudos

My answer should resolve your initial problem. What you encounter now is different problem. Please accept my answer since it resolves your initial issue.