ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sherryhw <shishuang...@gmail.com>
Subject Re: What is the path for Log4j configuration?
Date Thu, 14 Dec 2017 18:27:58 GMT
I moved the log4j2.xml into the resources folder now.
--resources
  |--config
      |--data-node-config.xml
  |--log4j2.xml

Now when I start the data-node, the spring log file is fine at first, can
printout the debug mode of spring log, however, it still fails at Ignite.
"Exception in thread "main" class org.apache.ignite.IgniteException: Failed
to instantiate Spring XML application context
[springUrl=..../target/classes/config/data-node-config.xml, err=Error
creating bean with name
'org.apache.ignite.configuration.IgniteConfiguration#0' defined in URL
[...target/classes/config/data-node-config.xml]: Cannot create inner bean
'org.apache.ignite.logger.log4j2.Log4J2Logger#d2de489' of type
[org.apache.ignite.logger.log4j2.Log4J2Logger] while setting bean property
'gridLogger'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.apache.ignite.logger.log4j2.Log4J2Logger#d2de489' defined in
URL [..../target/classes/config/data-node-config.xml]: Bean instantiation
via constructor failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed to instantiate
[org.apache.ignite.logger.log4j2.Log4J2Logger]: Constructor threw exception;
nested exception is class org.apache.ignite.IgniteCheckedException: Log4j
configuration path was not found: /log4j2.xml]
"

So the issue should be within the ignite trying to configure the log.
Do you have any ideas how to resolve it?
If I use absolute path, it could work correctly.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Mime
View raw message