You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Mike Guo <ho...@163.com> on 2015/07/23 12:36:01 UTC

log4j2 initialize Log4j failed

Hi, all.


I tried to use log4j2 under tomato 8.x.  

when I deploy my application to tomcat 8.x, the compile success and install deploy success. 
but the application can’t be start, I checked the tomcat log:


371 ERROR StatusLogger LogManager returned an instance of org.apache.logging.slf4j.SLF4JLoggerContextFactory which do     es not implement org.apache.logging.log4j.core.impl.Log4jContextFactory. Unable to initialize Log4j.
 372 23-Jul-2015 18:24:38.008 SEVERE [http-nio-8080-exec-26] org.apache.catalina.core.StandardContext.startInternal On     e or more Filters failed to start. Full details will be found in the appropriate container log file
 373 23-Jul-2015 18:24:38.009 SEVERE [http-nio-8080-exec-26] org.apache.catalina.core.StandardContext.startInternal Co     ntext [/51ershouwang] startup failed due to previous errors
 374 23-Jul-2015 18:24:38.064 INFO [http-nio-8080-exec-26] org.apache.catalina.startup.HostConfig.deployWAR Deployment      of web application archive /usr/local/tomcat8024/webapps/51ershouwang.war has finished in 2,408 ms


would you please help me take a look about this issue?


thanks so much


Mike.G


Re: log4j2 initialize Log4j failed

Posted by Mike Guo <ho...@163.com>.
for this issue. I just did stupid thing. I copy all jar file into the directly which they are conflict.


thanks

Mike.G

> 在 2015年7月23日,下午6:36,Mike Guo <ho...@163.com> 写道:
> 
> Hi, all.
> 
> 
> I tried to use log4j2 under tomato 8.x.  
> 
> when I deploy my application to tomcat 8.x, the compile success and install deploy success. 
> but the application can’t be start, I checked the tomcat log:
> 
> 
> 371 ERROR StatusLogger LogManager returned an instance of org.apache.logging.slf4j.SLF4JLoggerContextFactory which do     es not implement org.apache.logging.log4j.core.impl.Log4jContextFactory. Unable to initialize Log4j.
> 372 23-Jul-2015 18:24:38.008 SEVERE [http-nio-8080-exec-26] org.apache.catalina.core.StandardContext.startInternal On     e or more Filters failed to start. Full details will be found in the appropriate container log file
> 373 23-Jul-2015 18:24:38.009 SEVERE [http-nio-8080-exec-26] org.apache.catalina.core.StandardContext.startInternal Co     ntext [/51ershouwang] startup failed due to previous errors
> 374 23-Jul-2015 18:24:38.064 INFO [http-nio-8080-exec-26] org.apache.catalina.startup.HostConfig.deployWAR Deployment      of web application archive /usr/local/tomcat8024/webapps/51ershouwang.war has finished in 2,408 ms
> 
> 
> would you please help me take a look about this issue?
> 
> 
> thanks so much
> 
> 
> Mike.G
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org