java.lang.ClassCastException:org.apache.logging.log4j.core.LoggerContext无法转换为de.hybris.platform.util.logging.log4j2.HybrisLoggerContext

2020-09-23 03:22发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)嗨, 我正在使用SAP hyb...

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

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


嗨,

我正在使用SAP hybris 6.3。 构建获得成功,但是启动服务器时出现错误。 请帮助我解决问题。

严重:在org。上de.hybris.platform.util.logging.log4j2.HybrisLog4j2ConfigurationFactory.getConfiguration(HybrisLog4j2ConfigurationFactory.java:55ache)处配置类arco.storefront.filters.HybrisStorefrontContextLoaderListener java.lang.ExceptionInInitializerError的应用程序侦听器时出错。 org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:265)上的.logging.log4j.core.config.ConfigurationFactory $ Factory.getConfiguration(ConfigurationFactory.java:427)在org.apache.logging处 org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:620)上的.log4j.core.LoggerContext.reconfigure(LoggerContext.java:599)在org.apache.logging.log4j.core.LoggerContext.start (LoggerContext.java:226)在org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:152)在org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java :45),网址为org.apache.logging.log4j.LogManager.ge org上的org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:103)的tContext(LogManager.java:194)org的org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:43) org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:29)上的.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:42)在org.slf4j.LoggerFactory.getLogger(LoggerFactory.java) :358),位于org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155),位于org.apache.commons.logging.LogFactory.getLog(LogFactory.java:669),位于de.hybris.platform。 spring.HybrisContextLoaderListener(HybrisContextLoaderListener.java:62)位于sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native方法)位于sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)在sun.reflect.DelegatingConstructorInstance(AccessorImpl。 :45),位于java.lang.reflect org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:116)处的java.lang.Class.newInstance(Class.java:442)处的.Constructor.newInstance(Constructor.java:423)。 org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)上的catalina.core.StandardContext.listenerStart(StandardContext.java:4932)org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java: 150)在org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1565)在org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1575)在java.util.concurrent Java的.FutureTask.run(FutureTask.java:266)在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)在java。 lang.Thread.run(Thread.java:748)原因:java.lang.ClassCastException:org.apache.logging.log4j.core.LoggerContext无法转换为de.hybris.platform.util.logging。 位于org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:753)上de.hybris.platform.util.logging.HybrisLogger.setLevel(HybrisLogger.java:478)上的log4j2.HybrisLoggerContext org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:516)的parseCatsAndRenderers(PropertyConfigurator.java:672)在de.hybris.platform.core.Log4JUtils.readConfig(Log4JUtils.java:103)的org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:516) .core.Log4JUtils.startup(Log4JUtils.java:56),位于de.hybris.platform.util.Utilities。(Utilities.java:124)... 32更多