Symptom
After upgrade from 2211.39 to 2211.41, when triggered the build, the build is failed due to NoClassDefFoundError exception. The log seems the below
******
2025-07-29 17:24:17 WARN [ShutdownHookThread] [AbstractTenant] Context hybris Global Context Factory couldn't be created correctly due to, Error creating bean with name 'ehsServiceLocator' defined in class path resource [xxx-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [xxxxxx]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/discovery/tools/DiscoverSingleton
[java] org.springframework.beans.FatalBeanException: Context hybris Global Context Factory couldn't be created correctly due to, Error creating bean with name 'ehsServiceLocator' defined in class path resource [xxxx-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [xxxxxx]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/discovery/tools/DiscoverSingleton
[java] at de.hybris.platform.core.HybrisContextFactory.build(HybrisContextFactory.java:308) ~[coreserver.jar:?]
[java] at de.hybris.platform.core.HybrisContextFactory$GlobalContextFactory.buildSelf(HybrisContextFactory.java:179) ~[coreserver.jar:?]
[java] at de.hybris.platform.core.HybrisContextFactory$GlobalContextFactory.build(HybrisContextFactory.java:165) ~[coreserver.jar:?]
[java] at de.hybris.platform.core.HybrisContextHolder.getGlobalInstanceCached(HybrisContextHolder.java:122) ~[coreserver.jar:?]
[java] at de.hybris.platform.core.HybrisContextHolder.getGlobalInstance(HybrisContextHolder.java:101) ~[coreserver.jar:?]
[java] at de.hybris.platform.core.Registry.getSingletonGlobalApplicationContext(Registry.java:1130) ~[coreserver.jar:?]
******
Read more...
Environment
SAP Commerce Cloud V2
Keywords
KBA , CEC-SCC-CLA-ENV-EMG , Environment Management , 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.
SAP Knowledge Base Article - Preview