On Tue, Mar 8, 2022 at 7:48 AM Pooja Pandey
<pooja.pan...@asg.com.invalid> wrote:
> I am trying to migrate from log4j1.x to log4j2.17.2 using log4j1.x bridge 
> approach. I am getting below ClassCastException error message. Please let me 
> know if you have any idea how to fix this.
> 2022-03-08 01:41:17,023 http-nio-8088-exec-9 ERROR Unable to create Lookup 
> for bundle java.lang.ClassCastException: class 
> org.apache.logging.log4j.core.lookup.ResourceBundleLookup

Could you tell us if you have any Log4j libraries in Tomcat's
classpath (`lib` subfolder of Tomcat's installation folder)? I believe
this is related to my pet bug applied to the plugin loader:


If this was your situation, adding libraries to your application
certainly works, but removing them from Tomcat's server classpath also
should work.


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

Reply via email to