ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From soodrah <rahul.s...@db.com>
Subject Re: Can't load log handler "org.apache.ignite.logger.java.JavaLoggerFileHandler"
Date Tue, 26 Dec 2017 21:46:54 GMT
I figured this out...I still get the error but its not stopping TomCat from
coming up. 
I added Parent dependency on springboot Pom
<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.5.4.RELEASE</version>
        <relativePath/> 
    </parent>
commented out all the hardcoded spring dependencies. 
added these into my webapp module
<dependency>
            <groupId>org.apache.ignite</groupId>
            <artifactId>ignite-core</artifactId>
            <version>${ignite.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.ignite</groupId>
            <artifactId>ignite-spring</artifactId>
            <version>${ignite.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.ignite</groupId>
            <artifactId>ignite-indexing</artifactId>
            <version>${ignite.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.ignite</groupId>
            <artifactId>ignite-log4j</artifactId>
            <version>${ignite.version}</version>
        </dependency>

Here is the error, which now is a warning

'ignite.cfg$child#0'
Can't load log handler "org.apache.ignite.logger.java.JavaLoggerFileHandler"
java.lang.ClassNotFoundException:
org.apache.ignite.logger.java.JavaLoggerFileHandler
java.lang.ClassNotFoundException:
org.apache.ignite.logger.java.JavaLoggerFileHandler
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.util.logging.LogManager$5.run(LogManager.java:965)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.util.logging.LogManager.loadLoggerHandlers(LogManager.java:958)
	at
java.util.logging.LogManager.initializeGlobalHandlers(LogManager.java:1578)
	at java.util.logging.LogManager.access$1500(LogManager.java:145)
	at
java.util.logging.LogManager$RootLogger.accessCheckedHandlers(LogManager.java:1667)
	at java.util.logging.Logger.getHandlers(Logger.java:1777)
	at
org.apache.ignite.logger.java.JavaLogger.findHandler(JavaLogger.java:399)
	at org.apache.ignite.logger.java.JavaLogger.configure(JavaLogger.java:229)
	at org.apache.ignite.logger.java.JavaLogger.<init>(JavaLogger.java:170)
	at org.apache.ignite.logger.java.JavaLogger.<init>(JavaLogger.java:126)
	at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.initLogger(IgnitionEx.java:2390)
	at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.initializeConfiguration(IgnitionEx.java:2058)
	at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1678)
	at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1652)
	at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1080)
	at
org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:998)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:884)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:783)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:653)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:622)
	at org.apache.ignite.Ignition.start(Ignition.java:347)
	at com.db.sl.ignite.IgniteNode.createAnIgniteInstance(IgniteNode.java:54)
	at
com.db.sl.inventory.impl.IgniteConnection.connect(IgniteConnection.java:15)
	at com.db.sl.inventory.InvServiceFactory.of(InvServiceFactory.java:26)
	at
com.db.sl.inventory.config.SpringConfig.createInvService(SpringConfig.java:75)
	at
com.db.sl.inventory.config.SpringConfig$$EnhancerBySpringCGLIB$$8436d1b8.CGLIB$createInvService$1(<generated>)
	at
com.db.sl.inventory.config.SpringConfig$$EnhancerBySpringCGLIB$$8436d1b8$$FastClassBySpringCGLIB$$79f5bf04.invoke(<generated>)
	at
org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
	at
org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:358)
	at
com.db.sl.inventory.config.SpringConfig$$EnhancerBySpringCGLIB$$8436d1b8.createInvService(<generated>)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
	at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1173)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1067)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
	at
org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)
	at
org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:835)
	at
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
	at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:189)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1193)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1095)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
	at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
	at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
	at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
	at
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
	at
org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
	at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)
	at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)
	at com.db.sl.inventory.Application.main(Application.java:17)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at
org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run(AbstractRunMojo.java:527)
	at java.lang.Thread.run(Thread.java:745)
Dec 26, 2017 2:20:49 PM java.util.logging.LogManager$RootLogger log
WARNING: Failed to initialize Log4JLogger (falling back to standard java
logging): java.lang.NoSuchMethodError:
org.apache.log4j.ConsoleAppender.<init>(Lorg/apache/log4j/Layout;Ljava/lang/String;)V
Dec 26, 2017 2:20:49 PM org.apache.ignite.logger.java.JavaLogger info




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

Mime
View raw message