ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ozgurnevres <ozgur.nev...@gmail.com>
Subject Configuration using spring xml - log4j error
Date Tue, 11 Apr 2017 09:08:49 GMT
Hi,

I am trying to configure Ignite using spring xml. I am trying to apply the
example here:

https://apacheignite-net.readme.io/v1.9/docs/configuration#section-spring-xml

But when I try to start the Ignite, I am getting the error below: (it is
actually warning, but Ignite does not start)

No appenders could be found for logger
(org.springframework.core.env.StandardEnvironment).
log4j:WARN please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.

I visited http://logging.apache.org/log4j/1.2/faq.html#noconfig for "more
info" but still I don't understand what I am missing.

Any suggestions?
Thanks

My config.xml file is like below:

<?xml version="1.0" encoding="utf-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:util="http://www.springframework.org/schema/util"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
                          
http://www.springframework.org/schema/beans/spring-beans.xsd
                           http://www.springframework.org/schema/util
                          
http://www.springframework.org/schema/util/spring-util.xsd">
  <bean id="grid.cfg"
class="org.apache.ignite.configuration.IgniteConfiguration">
    <property name="localHost" value="127.0.0.1"/>
    <property name="clientMode" value="false"/>
    <property name="jvmMaxMemoryMb" value="6144"/>
    <property name="gridName" value="myGrid1"/>
    <property name="discoverySpi">
      <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
        <property name="ipFinder">
          <bean
class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
            <property name="addresses">
              <list>
                <value>192.168.1.100:48500</value>
              </list>
            </property>
          </bean>
        </property>
        <property name="socketTimeout" value="300" />
      </bean>
    </property>
  </bean>
</beans>



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Configuration-using-spring-xml-log4j-error-tp11872.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message