简体   繁体   English

Hybris服务器-错误StatusLogger-无法创建类de.hybris.platform.util.logging.log4j2.HybrisLog4j2LoggerContextFactory

[英]Hybris Server - ERROR StatusLogger - Unable to create class de.hybris.platform.util.logging.log4j2.HybrisLog4j2LoggerContextFactory

At the build process from the SAP hybris platform I gain the following error: 在SAP hybris平台的构建过程中,我遇到以下错误:

 [java] ERROR StatusLogger Cannot start ShutdownCallbackRegistry, already shutting down.
 [java] ERROR StatusLogger Unable to create class de.hybris.platform.util.logging.log4j2.HybrisLog4j2LoggerContextFactory specified in file:/D:/Projects/make/hybris/bin/platform/ext/core/resources/META-INF/log4j-provider.properties
 [java]  java.lang.IllegalStateException: Shutdown in progress
 [java]     at java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66)
 [java]     at java.lang.Runtime.addShutdownHook(Runtime.java:211)
 [java]     at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry.addShutdownHook(DefaultShutdownCallbackRegistry.java:151)
 [java]     at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry.start(DefaultShutdownCallbackRegistry.java:137)
 [java]     at org.apache.logging.log4j.core.impl.Log4jContextFactory.initializeShutdownCallbackRegistry(Log4jContextFactory.java:125)
 [java]     at org.apache.logging.log4j.core.impl.Log4jContextFactory.<init>(Log4jContextFactory.java:92)
 [java]     at org.apache.logging.log4j.core.impl.Log4jContextFactory.<init>(Log4jContextFactory.java:58)
 [java]     at de.hybris.platform.util.logging.log4j2.HybrisLog4j2LoggerContextFactory.<init>(HybrisLog4j2LoggerContextFactory.java:22)
 [...]

Does anybody know where this come from? 有人知道这是哪里来的吗?

I found an answear on the expers site: 我在expers网站上发现了一个answear:

Just shut down your Hybris server and delete below 4 files from your data folder: hybristomcat.java.id, hybristomcat.java.pid, hybristomcat.java.status, hybristomcat.lock 只需关闭您的Hybris服务器并从数据文件夹中删除以下4个文件: hybristomcat.java.id,hybristomcat.java.pid,hybristomcat.java.status,hybristomcat.lock

And now restart the server. 现在重新启动服务器。 These 4 files would be created again once server is started and Hybris would map these tomcat server properties with your machine's JVM. 服务器启动后,将再次创建这4个文件,并且Hybris会将这些tomcat服务器属性与您的计算机的JVM映射。

This solution worked for me. 这个解决方案对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM