You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Bill Phillips <wi...@gmail.com> on 2016/09/21 21:49:59 UTC

log4j2 configuration in tomcat 8.5.5

My team has elected me to upgrade Tomcat from 7.X to 8.5.5+ on our very
old and very large web application.

Under Tomcat 7.x, this application uses the tomcat-juli-adapters to replace
JULI with log4j1.16. Worked like a charm for years.


Under Tomcat 8.5.5, I'm getting exceptions such as:
       java.lang.NoClassDefFoundError: org/apache/juli/WebappProperties


Googling this led me to the discovery that log4j1.x support via
tomcat-juli-adapters was
discontinued in Tomcat 8.5, as described here:

https://bz.apache.org/bugzilla/show_bug.cgi?id=58588


My understanding is that JULI can be replaced by log4j2 without the
adapters,
but I cannot find a description on how to do this.


Can anyone describe to me how this is done?


It is no longer covered in the user documentation as it was on earlier
versions:

https://tomcat.apache.org/tomcat-8.5-doc/logging.html



Thanks,

Bill

Re: log4j2 configuration in tomcat 8.5.5

Posted by Mark Thomas <ma...@apache.org>.
On 21/09/2016 22:49, Bill Phillips wrote:
> My team has elected me to upgrade Tomcat from 7.X to 8.5.5+ on our very
> old and very large web application.
> 
> Under Tomcat 7.x, this application uses the tomcat-juli-adapters to replace
> JULI with log4j1.16. Worked like a charm for years.
> 
> 
> Under Tomcat 8.5.5, I'm getting exceptions such as:
>        java.lang.NoClassDefFoundError: org/apache/juli/WebappProperties
> 
> 
> Googling this led me to the discovery that log4j1.x support via
> tomcat-juli-adapters was
> discontinued in Tomcat 8.5, as described here:
> 
> https://bz.apache.org/bugzilla/show_bug.cgi?id=58588
> 
> 
> My understanding is that JULI can be replaced by log4j2 without the
> adapters,
> but I cannot find a description on how to do this.
> 
> 
> Can anyone describe to me how this is done?

https://logging.apache.org/log4j/log4j-2.6.1/log4j-jul/index.html

should point you in the right direction.

Mark


> 
> 
> It is no longer covered in the user documentation as it was on earlier
> versions:
> 
> https://tomcat.apache.org/tomcat-8.5-doc/logging.html
> 
> 
> 
> Thanks,
> 
> Bill
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org