点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)在自定义商店前端.additio...
点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)在自定义商店前端.additio...
加入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]
嗨-似乎对
addoninstall
命令有些困惑。 首先,让我们谈谈您的声明:请注意,此属性未添加到店面的
project.properties
文件中; 而是将其添加到插件的project.properties
文件中。第二,您不必手动进行;
addoninstall
命令可以为您完成此操作。 请浏览 https://help.hybris.com/1811/hcd/8adf7365866910149ceb975f778d809d.html a>仔细:因此,您需要做的就是再次安装 assistedservicestorefront AddOn 您之前的尝试。
请注意,除了为AddOn生成相关的project.properties文件之外,
addoninstall
命令还将AddOn添加到店面的extensioninfo.xml文件中。因此,执行
addoninstall
命令后,需要检查两个地方:插件的
project.properties
店面的
extensioninfo.xml
一周热门 更多>