Re: Log4j1.x bridge error: Unable to create Lookup for bundle java.lang.ClassCastException: class org.apache.logging.log4j.core.lookup.ResourceBundleLookup

"Piotr P. Karwasz" <[email protected]>
Newsgroups gmane.comp.jakarta.log4j.user
Message-ID <CAFmygFb3KS8ZxTtKDaybS+=aY4ZwQWwN7RaN7ACvFWh4aR4pJQ@mail.gmail.com>
Hi,

On Tue, Mar 8, 2022 at 7:48 AM Pooja Pandey
<[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.