Hi Ceki,<div><br></div><div>I've attached the test project to LOGBACK-740. Sorry for taking time, cutting our codebase to include only the artifacts you need to reproduce the issue took more time than expected.</div><div>
Somewhere on the way of cutting the code, the message changed from <span style="background-color:rgb(255,255,255);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17px"><i>java.lang.ClassCircularityError: java/util/logging/LogRecord</i></span> to <i>java.lang.ClassCircularityError: org/slf4j/helpers/NOPLogger</i>. I hope that's still the same error.</div>
<div><br clear="all">--<br>Best regards,<br>Sergey Parhomenko<br><br>
<br><br><div class="gmail_quote">On 28 August 2012 17:38, ceki <span dir="ltr"><<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 28.08.2012 16:22, Sergey Parhomenko wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hi,<br>
<br>
I am using logback (latest version) on Tomcat, and have this error when<br>
trying to start the application:<br>
<br></div>
/Exception in thread "RMI RenewClean-<ip>:<port>"<br>
java.lang.<u></u>ClassCircularityError: java/util/logging/LogRecord/<br>
/at<br>
org.slf4j.bridge.<u></u>SLF4JBridgeHandler.<u></u>getSLF4JLogger(<u></u>SLF4JBridgeHandler.java:200)/<br>
/at<br>
org.slf4j.bridge.<u></u>SLF4JBridgeHandler.publish(<u></u>SLF4JBridgeHandler.java:289)/<br>
/at java.util.logging.Logger.log(<u></u>Logger.java:458)/<br>
/at java.util.logging.Logger.<u></u>doLog(Logger.java:480)/<br>
/at java.util.logging.Logger.logp(<u></u>Logger.java:596)/<div class="im"><br>
<br>
<br>
The error is blocking Tomcat startup.<br>
The application has logback and jul-over-slf4j bridge JARs inside, and<br>
is using a servlet context listener to run<br></div>
/SLF4JBridgeHandler.<u></u>removeHandlersForRootLogger()/ and<br>
/SLF4JBridgeHandler.install()/ on startup. The /logback.xml/ used has<br>
/ch.qos.logback.classic.jul.<u></u>LevelChangePropagator/ context listener in<br>
it, with /resetJUL/ set to /true/.<div class="im"><br>
I saw a thread on this mailing list in February 2011<br></div>
<<a href="http://mailman.qos.ch/pipermail/slf4j-user/2011-February/001044.html" target="_blank">http://mailman.qos.ch/<u></u>pipermail/slf4j-user/2011-<u></u>February/001044.html</a>> with<div class="im"><br>
the similar issue so it might be quite old. Tomcat version is 7, but the<br>
mail list thread and this StackOverflow<br></div>
<<a href="http://stackoverflow.com/questions/2656565/classcircularityerror-when-running-tomcat6-from-eclipse" target="_blank">http://stackoverflow.com/<u></u>questions/2656565/<u></u>classcircularityerror-when-<u></u>running-tomcat6-from-eclipse</a>><div class="im">
<br>
question are using Tomcat 6 and having the same problem.<br>
<br>
As the last answer on StackOverflow correctly says, error is<br></div>
reproducible only if the /LevelChangePropagator/ element is in the<br>
beginning of /logback.xml/. Moving it to the end of the file fixes the<div class="im"><br>
issue, so it has an easy workaround.<br>
<br>
If you have problems reproducing it please let me know, I'll try to<br>
provide a test project.<br>
</div></blockquote>
<br>
Please do. You could attach it to [1] which would be very much appreciated.<br>
<br>
[1] <a href="http://jira.qos.ch/browse/LOGBACK-740" target="_blank">http://jira.qos.ch/browse/<u></u>LOGBACK-740</a><div class="HOEnZb"><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
--<br>
Best regards,<br>
Sergey Parhomenko<br>
<br>
</blockquote>
<br>
<br>
<br></div></div><span class="HOEnZb"><font color="#888888">
-- <br>
Ceki<br>
<a href="http://tinyurl.com/proLogback" target="_blank">http://tinyurl.com/proLogback</a><br>
______________________________<u></u>_________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/<u></u>listinfo/logback-user</a><br>
</font></span></blockquote></div><br></div>