没有名为" assistedServicePathRestrictionEvaluator"的bean。 当我们在自定义店面local.properties中为AssistantedServiceStoreFront-Web-Spring.xml添加属性设置时

2020-09-10 23:22发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)在自定义商店前端.additio...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


在自定义商店前端.additionalWebSpringConfigs.assistedservicestorefront = classpath:/assistedservicestorefront/web/spring/assistedservicestorefront-web-spring.xml中添加了此属性

根据 https完成: //answers.sap.com/questions/12758476/asm-not-working-on-a-custom-storefront.html

[localhost-startStop-1] [ContextLoader]上下文初始化失败org.springframework.beans.factory.BeanCreationException:创建名称为'defaultStorefrontTenantDefaultFilterChainList'的bean时出错:FactoryBean的singleton对象的后处理失败; 嵌套的异常是org.springframework.beans.factory.BeanCreationException:在类路径资源[assistedservicestorefront/web/spring/assistedservicestorefront-web-spring.xml]中定义名称为'AssistedservicestorefrontFilterListMergeDirective'的bean创建错误:无法解析对bean'assistedServiceFilter'的引用 设置添加时; 嵌套的异常是org.springframework.beans.factory.BeanCreationException:在类路径资源[assistedservicestorefront/web/spring/assistedservicestorefront-web-spring.xml]中创建名称为'assistedServiceFilter'的bean时出错:无法解析对bean'assistedServicePathRestrictionEvaluator'的引用 同时设置bean属性" assistedServicePathRestrictionEvaluator"; 嵌套异常是org.springframework.beans.factory.NoSuchBeanDefinitionException:在org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:121)上找不到名为" assistedServicePathRestrictionEvaluator"的bean。[springbeans-4.3.17 .RELEASE.jar:4.3.17.RELEASE],位于org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1640)〜[spring-beans-4.3.17.RELEASE.jar:4.3.17。 RELEASE]位于org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:254)〜[spring-beans-4.3.17.RELEASE.jar:4.3.17.RELEASE]位于org.springframework.beans。 factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)〜[spring-beans-4.3.17.RELEASE.jar:4.3.17.RELEASE]在org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory .java:297)〜[spring-beans-4.3.17.RELEASE.jar:4.3.17.RELEASE]在org.springframework.beans.fa ctory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)〜[spring-beans-4.3.17.RELEASE.jar:4.3.17.RELEASE]在org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory .java:761)〜[spring-beans-4.3.17.RELEASE.jar:4.3.17.RELEASE]在org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)〜[spring-context- 4.3.17.RELEASE.jar:4.3.17.RELEASE],位于org.springframework.context.support.AbstractApplicationContext .__ refresh(AbstractApplicationContext.java:543)〜[spring-context-4.3.17.RELEASE.jar:4.3.17 [RELEASE],位于org.springframework.web.context的org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:41010)〜[spring-context-4.3.17.RELEASE.jar:4.3.17.RELEASE] .ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)〜[spring-web-4.3.17.RELEASE.jar:4.3.17.RELEASE]在org.springfr amework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)[spring-web-4.3.17.RELEASE.jar:4.3.17.RELEASE]位于de.hybris.platform.spring.HybrisContextLoaderListener.doInitWebApplicationContext(HybrisContextLoaderListener。 java:225)[coreserver.jar :?]在de.hybris.platform.spring.HybrisContextLoaderListener.initWebApplicationContext(HybrisContextLoaderListener.java:199)[coreserver.jar :?]在org.springframework.web.context.ContextLoaderListener.contextInitialized( ContextLoaderListener.java:107)[spring-web-4.3.17.RELEASE.jar:4.3.17.RELEASE]位于de.hybris.platform.spring.HybrisContextLoaderListener.contextInitialized(HybrisContextLoaderListener.java:95)[coreserver.jar :? ]在org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4745)[catalina.jar:8.5.23]在org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5207)[catalina .jar:8.5.23],位于org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)[catalina.jar: 8.5.23]在org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1419)[catalina.jar:8.5.23]在org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase .java:1409)[catalina.jar:8.5.23] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[?:1.8.0_181] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor .java:1149)[?:1.8.0_181] at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)[?:1.8.0_181] at java.lang.Thread.run(Thread.java :748)[?:1.8.0_181]