【发布时间】:2019-10-22 16:36:09
【问题描述】:
我已经在我的本地主机上成功安装并测试了 ASM(我们使用 Hybris 1811)。然后我想将它转移到我们的开发服务器上(实际上只是在localextensions.xml 中更改并重新生成了extensionsinfo.xml),所以在我的店面extensionsinfo.xml 中有这样注册的插件:
<requires-extension name="assistedservicestorefront "/>
但它不会在视图中生成文件:
[DefaultCMSComponentRendererRegistry] Error processing component tag. currentComponent [AssistedServiceComponentModel (8796814312508@2)] exception:
File [/WEB-INF/views/responsive/cms/assistedservicecomponent.jsp] not found
我已导入与安装 ASM 手册(来自 help.hybris.com)和本地主机(cms-content.impex 以包括组件和 Jsp)中相同的 .impex 文件。
即使我在 HAC 中运行更新,我也尝试同步内容目录。我检查了 HAC 中的扩展,它包含与我本地机器上相同的 ASM 扩展:assistedservicefacades、assistedserviceservices、assistedservicestorefront。
当我检查后台时,具有该 ID 的组件确实存在,并且在在线目录中。
如何生成这些文件?或者我应该以某种方式用我的自定义视图覆盖它们?但我认为这是不好的方法。
更新:我还尝试将此条目添加到我的店面的project.properties:
sikob2cstorefront.additionalWebSpringConfigs.assistedservicestorefront=classpath\:/assistedservicestorefront/web/spring/assistedservicestorefront-web-spring.xml
但后来我收到了加载 bean 的错误:
Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultStorefrontTenantDefaultFilterChainList': Post-processing of FactoryBean's singleton object failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AssistedservicestorefrontFilterListMergeDirective' defined in class path resource [assistedservicestorefront/web/spring/assistedservicestorefront-web-spring.xml]: Cannot resolve reference to bean 'assistedServiceFilter' while setting add; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'assistedServiceFilter' defined in class path resource [assistedservicestorefront/web/spring/assistedservicestorefront-web-spring.xml]: Cannot resolve reference to bean 'assistedServicePathRestrictionEvaluator' while setting bean property 'assistedServicePathRestrictionEvaluator'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'assistedServicePathRestrictionEvaluator' available
【问题讨论】:
-
您是否将
assistedservicestorefront安装为插件? -
是的,在我的本地机器上,我将它作为插件安装了
ant addoninstall -Daddonnames="assistedservicestorefront" -DaddonStorefront.yacceleratorstorefront="mystorefront",因此它更新了extensionsinfo.xml,我可以在 hac 中看到扩展。 -
因此您也需要在其他环境中运行相同的命令。让我详细添加答案。