Hi Piotr, -> 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:
I don't have log4j libraries in tomcat classpath. After adding those web, jcl, jul jars, the issue is fixed. Do you have any idea when this log4j2.17.3 would be released?? We would like to use that for the fix you have provided for LOG4J2-3426. -----Original Message----- From: Piotr P. Karwasz <piotr.karw...@gmail.com> Sent: Tuesday, March 8, 2022 8:04 PM To: Log4J Users List <log4j-user@logging.apache.org> Subject: Re: Log4j1.x bridge error: Unable to create Lookup for bundle java.lang.ClassCastException: class org.apache.logging.log4j.core.lookup.ResourceBundleLookup *** External email: Verify sender before opening attachments or links *** Hi, 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: https://issues.apache.org/jira/browse/LOG4J2-3427 If this was your situation, adding libraries to your application certainly works, but removing them from Tomcat's server classpath also should work. Piotr --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org