Project: springxd
Issue XD-1945: XD_CONFIG_LOCATION doesn't seem to be set for log4j config files 
Starting xd-singlenode and then ctrl-c to shut down produces WARN message that should be suppressed according to log4j config Setting XD_CONFIG_LOCATION explicitly works for suppressing the message. The message I see: [2014-07-10 09:39:59.786] boot - 58034 WARN [Thread-2] --- MBeanRegistry: Failed to unregister MBean InMemoryDataTree [2014-07-10 09:39:59.786] boot - 58034 WARN [Thread-2] --- MBeanRegistry: Error during unregister javax.management.InstanceNotFoundException: org.apache.ZooKeeperService:name0=StandaloneServer_port-1,name1=InMemoryDataTree com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1095) com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:427) com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:415) com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:546) org.apache.zookeeper.jmx.MBeanRegistry.unregister(MBeanRegistry.java:115) org.apache.zookeeper.jmx.MBeanRegistry.unregister(MBeanRegistry.java:132) org.apache.zookeeper.server.ZooKeeperServer.unregisterJMX(ZooKeeperServer.java:465) org.apache.zookeeper.server.ZooKeeperServer.shutdown(ZooKeeperServer.java:458) org.apache.zookeeper.server.NIOServerCnxnFactory.shutdown(NIOServerCnxnFactory.java:271) org.apache.zookeeper.server.ZooKeeperServerMain.shutdown(ZooKeeperServerMain.java:132) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:606) org.springframework.xd.dirt.zookeeper.EmbeddedZooKeeper.stop(EmbeddedZooKeeper.java:176) org.springframework.xd.dirt.zookeeper.EmbeddedZooKeeper.stop(EmbeddedZooKeeper.java:204) org.springframework.context.support.DefaultLifecycleProcessor.doStop(DefaultLifecycleProcessor.java:229) org.springframework.context.support.DefaultLifecycleProcessor.access$300(DefaultLifecycleProcessor.java:51) org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.stop(DefaultLifecycleProcessor.java:363) org.springframework.context.support.DefaultLifecycleProcessor.stopBeans(DefaultLifecycleProcessor.java:202) org.springframework.context.support.DefaultLifecycleProcessor.onClose(DefaultLifecycleProcessor.java:118) org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:888) org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:841) org.springframework.boot.builder.ParentContextCloserApplicationListener$ContextCloserListener.onApplicationEvent(ParentContextCloserApplicationListener.java:100) org.springframework.boot.builder.ParentContextCloserApplicationListener$ContextCloserListener.onApplicationEvent(ParentContextCloserApplicationListener.java:84) org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:98) org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:333) org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:880) org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:809)
Story points: 3