Hi,<div><br></div><div>I am using logback (latest version) on Tomcat, and have this error when trying to start the application:</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><i>Exception in thread "RMI RenewClean-<ip>:<port>" java.lang.ClassCircularityError: java/util/logging/LogRecord</i></div>
</div><div><div><i>at org.slf4j.bridge.SLF4JBridgeHandler.getSLF4JLogger(SLF4JBridgeHandler.java:200)</i></div></div><div><div><i>at org.slf4j.bridge.SLF4JBridgeHandler.publish(SLF4JBridgeHandler.java:289)</i></div></div>
<div><div><i>at java.util.logging.Logger.log(Logger.java:458)</i></div></div><div><div><i>at java.util.logging.Logger.doLog(Logger.java:480)</i></div></div><div><div><i>at java.util.logging.Logger.logp(Logger.java:596)</i></div>
</div></blockquote><div><br></div><div>The error is blocking Tomcat startup.</div><div>The application has logback and jul-over-slf4j bridge JARs inside, and is using a servlet context listener to run <i>SLF4JBridgeHandler.removeHandlersForRootLogger()</i> and <i>SLF4JBridgeHandler.install()</i> on startup. The <i>logback.xml</i> used has <i>ch.qos.logback.classic.jul.LevelChangePropagator</i> context listener in it, with <i>resetJUL</i> set to <i>true</i>.</div>
<div>I saw a thread on this mailing list in <a href="http://mailman.qos.ch/pipermail/slf4j-user/2011-February/001044.html">February 2011</a> with the similar issue so it might be quite old. Tomcat version is 7, but the mail list thread and this <a href="http://stackoverflow.com/questions/2656565/classcircularityerror-when-running-tomcat6-from-eclipse">StackOverflow</a> question are using Tomcat 6 and having the same problem.</div>
<div><br></div><div>As the last answer on StackOverflow correctly says, error is reproducible only if the <i>LevelChangePropagator</i> element is in the beginning of <i>logback.xml</i>. Moving it to the end of the file fixes the issue, so it has an easy workaround.</div>
<div><br></div><div>If you have problems reproducing it please let me know, I'll try to provide a test project.</div><div><br clear="all">--<br>Best regards,<br>Sergey Parhomenko<br><br>
</div>