Hybris 6.6中的多租户设置问题

2020-09-07 21:03发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)我们正在尝试建立多租户,一个用于...

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

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


我们正在尝试建立多租户,一个用于b2c,另一个用于pim。 遵循了帮助中给出的步骤

  1. 在平台文件夹

  2. 中创建了tenant_b2c.properties和tenant_pim.properties。
  3. 将扩展合并到配置文件夹

  4. 中的localextensions.xml中
  5. 已安装。tenants= b2c,pim已在配置文件夹的local.properties中更新

在服务器启动中,引发以下异常。

WARN [localhost-startStop-1] [CloseAwareApplicationContext]上下文初始化期间遇到异常-取消刷新尝试:org.springframework.beans.factory.UnsatisfiedDependencyException:创建名称为" org.springframework.scheduling.support.PeriodicTrigger#"的bean时出错 2':通过构造函数参数表示的不满意依赖性0:无法将[null]类型的参数值转换为所需的类型[long]:无法将'null'类型的值转换为所需类型'long'; 嵌套的异常是java.lang.IllegalArgumentException:无法将类型为'null'的值转换为所需的类型'long':PropertyEditor [org.springframework.beans.propertyeditors.CustomNumberEditor]返回了类型为'null'的不合适值相关原因:org.springframework .beans.factory.UnsatisfiedDependencyException:创建名称为'org.springframework.scheduling.support.PeriodicTrigger#2'的bean时出错:通过构造函数参数0表示的不满足依赖性:无法将类型[null]的参数值转换为所需的类型[long] :无法将'null'类型的值转换为所需的'long'类型; 嵌套异常是java.lang.IllegalArgumentException:无法将类型为" null"的值转换为所需的类型" long":PropertyEditor [org.springframework.beans.propertyeditors.CustomNumberEditor]返回了类型为" null"的不合适值WARN [localhost-startStop- 1] [CloseAwareApplicationContext]在上下文初始化期间遇到异常-取消刷新尝试:org.springframework.beans.factory.UnsatisfiedDependencyException:创建名称为" org.springframework.scheduling.support.PeriodicTrigger#2"的bean时出错:通过构造函数参数表示的不满意依赖关系 0:无法将类型为[null]的参数值转换为所需的类型[long]:无法将类型为'null'的值转换为所需类型为'long'; 嵌套的异常是java.lang.IllegalArgumentException:无法将类型为'null'的值转换为所需的类型'long':PropertyEditor [org.springframework.beans.propertyeditors.CustomNumberEditor]返回了类型为'null'的不合适值相关原因:org.springframework .beans.factory.UnsatisfiedDependencyException:创建名称为'org.springframework.scheduling.support.PeriodicTrigger#2'的bean时出错:通过构造函数参数0表示的不满足依赖性:无法将类型[null]的参数值转换为所需的类型[long] :无法将'null'类型的值转换为所需的'long'类型; 嵌套异常是java.lang.IllegalArgumentException:无法将类型为" null"的值转换为所需的类型为" long"的类:PropertyEditor [org.springframework.beans.propertyeditors.CustomNumberEditor]返回了类型为" null"的不合适值,错误[localhost-startStop- 1] [HybrisContextFactory]初始化全局应用程序上下文时出错! org.springframework.beans.factory.UnsatisfiedDependencyException:创建名称为" org.springframework.scheduling.support.PeriodicTrigger#2"的bean时出错:通过构造函数参数0表示的依赖关系未满足:无法将类型为[null]的参数值转换为所需的类型 [long]:无法将'null'类型的值转换为所需的'long'类型; 嵌套的异常是java.lang.IllegalArgumentException:无法将类型为'null'的值转换为所需的类型'long':PropertyEditor [org.springframework.beans.propertyeditors.CustomNumberEditor]在org.springframework.beans返回了类型为'null'的不合适值 .factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:723)〜[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE]在org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor( ConstructorResolver.java:189)〜[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE]在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1193)〜[spring -beans-4.3.11.RELEASE.jar:4.3.11.RELEASE],位于org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1095)〜[spring-beans-4.3.11.RELEASE。 jar:4.3.11.RELEASE]在org.springframework.beans.factory.sup port.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)〜[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java :483)〜[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE]在org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject(AbstractBeanFactory.java:306)〜[spring-beans -4.3.11.RELEASE.jar:4.3.11.RELEASE],位于org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)〜[spring-beans-4.3.11.RELEASE.jar: 在org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)〜[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE]中的[4.3.11.RELEASE]。 springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)〜[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE]在org.springframework.be ans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)〜[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE]在org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext .java:867)〜[spring-context-4.3.11.RELEASE.jar:4.3.11.RELEASE]在org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)〜[spring-context- de.hybris.platform.core.HybrisContextFactory.refreshContext(HybrisContextFactory.java:95)的4.3.11.RELEASE.jar:4.3.11.RELEASE] de.hybris.platform.core.HybrisContextFactory的[coreserver.jar :?] $ ApplicationContextFactory.build(HybrisContextFactory.java:263)[coreserver.jar :?]位于de.hybris.platform.core.HybrisContextHolder.getApplicationInstance(HybrisContextHolder.java:87)[coreserver.jar :?]位于de.hybris.platform .core.AbstractTenant.createCoreApplicationContext(AbstractTenant.java:711)[coreserver.jar :?]在de.hybris.pla tform.core.AbstractTenant.doStartupSafe(AbstractTenant.java:749)[coreserver.jar :?] at de.hybris.platform.core.AbstractTenant.doStartUp(AbstractTenant.java:683)[coreserver.jar :?] at de。 hybris.platform.core.Registry.assureTenantStarted(Registry.java:657)[coreserver.jar :?]在de.hybris.platform.core.Registry.activateTenant(Registry.java:718)[coreserver.jar :?]在 de.hybris.platform.core.Registry.activateMasterTenant(Registry.java:625)上的de.hybris.platform.core.Registry.setCurrentTenant(Registry.java:565)[coreserver.jar :?] [coreserver.jar :? ]在de.hybris.platform.core.Registry.startup(Registry.java:443)[coreserver.jar :?]在de.hybris.platform.spring.HybrisContextLoaderListener.startRegistry(HybrisContextLoaderListener.java:317)[coreserver.jar :?]在de.hybris.platform.spring.HybrisContextLoaderListener.doInitWebApplicationContext(HybrisContextLoaderListener.java:203)[coreserver.jar :?]在de.hybris.platform.spring.HybrisContextLoaderListener.initWebApplicationContext(HybrisContextLoa derListener.java:191)[coreserver.jar :?]位于org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)[spring-web-4.3.11.RELEASE.jar:4.3.11.RELEASE ]在de.hybris.platform.spring.HybrisContextLoaderListener.contextInitialized(HybrisContextLoaderListener.java:87)[coreserver.jar :?]在org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5110)[catalina.jar :7.0.82],位于org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5633)[catalina.jar:7.0.82],位于org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java: 145)[catalina.jar:7.0.82]在org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1700)[catalina.jar:7.0.82]在org.apache.catalina.core中。 ContainerBase $ StartChild.call(ContainerBase.java:1690)[catalina.jar:7.0.82]在java.util.concurrent.FutureTask.run(FutureTask.java:266)[?:1.8.0_181]在java.util中。 current.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:114 9)[?:1.8.0_181]在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)[?:1.8.0_181]在java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]

可能是什么问题?

观察-1.当我们分别运行b2c和pim时,也不例外。 2.当我们以租户模式在OOTB b2c(服装)店面中运行pim时,也不例外。3.从tenant_x.properties文件中获取spring.xml中的占位符值。 必须在local.properties中定义它们

3条回答
天桥码农
2020-09-07 21:42

嗨-您不应在 platform 文件夹中创建 tenant_b2c.properties tenant_pim.properties ; 而是应该在 config 文件夹中创建 local_tenant_b2c.properties local_tenant_pim.properties

一周热门 更多>