我已经在本地主机上成功安装并测试了ASM(我们使用Hybris 1811)。然后,我想将其转移到我们的开发服务器上(实际上只是localextensions.xml
中的更改并重新生成了extensionsinfo.xml
),所以在我店面的extensionsinfo.xml
中有这样注册的插件:< / p>
<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手册(从.impex
开始)和本地主机(help.hybris.com
包括组件和Jsp)上相同的cms-content.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
答案 0 :(得分:2)
# Install assistedservicestorefront
# Replace Mystorefront with your storefront extension name
ant addoninstall -Daddonnames="assistedservicestorefront" -DaddonStorefront.yacceleratorstorefront="Mystorefront"
我认为您错过了安装Assistantservicestorefront附加组件,或者如果已经安装,请检查服务器上是否进行了以下更改。
将辅助服务店面添加到店面扩展的extensioninfo.xml中
喜欢
<requires-extension name="assistedservicestorefront "/>
在辅助服务店面内的 project.properties.template 中生成新的 project.properties 文件,该文件具有以下条目。
在以下属性中,用店面扩展名替换 yacceleratorstorefront 。
#Specifies the location of the spring context file added automatically to the global platform application context.
assistedservicestorefront.application-context=assistedservicestorefront-spring.xml
yacceleratorstorefront.additionalWebSpringConfigs.assistedservicestorefront=classpath:/assistedservicestorefront/web/spring/assistedservicestorefront-web-spring.xml
assistedservicestorefront.javascript.paths.mobile=/responsive/common/js/assistedservicestorefront.js;/responsive/common/js/jquery.tablesorter.pager.js;/responsive/common/js/jquery.tablesorter.min.js;/responsive/common/js/Chart.min.js;/responsive/common/js/asm.storefinder.js
assistedservicestorefront.javascript.paths.responsive=/responsive/common/js/assistedservicestorefront.js;/responsive/common/js/jquery.tablesorter.pager.js;/responsive/common/js/jquery.tablesorter.min.js;/responsive/common/js/Chart.min.js;/responsive/common/js/asm.storefinder.js
assistedservicestorefront.css.paths.mobile=/responsive/common/css/assistedservicestorefront.css;/responsive/common/css/storeFinder.css;/responsive/common/css/customer360.css
assistedservicestorefront.css.paths.responsive=/responsive/common/css/assistedservicestorefront.css;/responsive/common/css/storeFinder.css;/responsive/common/css/customer360.css
assistedservicestorefront.redirect.customer_and_cart=/cart
assistedservicestorefront.redirect.customer_only=/my-account
assistedservicestorefront.redirect.error=/
assistedservicestorefront.redirect.order=/my-account/order/%s
assistedservicestorefront.deeplink.link=/assisted-service/emulate
cscokpit.assistedservice.deeplink=true
assistedservicestorefront.profile.cookie.name=profile.tracking.pause
#AIF AJAX call timeout in milliseconds
assistedservicestorefront.aif.timeout=7000
因此,如果您不想在每个环境中都运行addoninstall命令,则可以手动进行这两个更改。您可以引用插件中生成的project.properties文件,并将所有这些属性复制到店面的project.properties或local.properteis文件中,然后提交更改。