[logback-user] Tomcat 7 and LogbackValve - final method overridden

Ceki Gülcü ceki at qos.ch
Thu Sep 22 00:53:22 CEST 2011

Hi Paul,
OK. Thanks for the info. Could you please create a jira issue for this?

On 21/09/2011 8:04 PM, Paul Gifford wrote:
> Hi,
>    We're migrating from Tomcat 6 to Tomcat 7.  I was able to set up
> Tomcat 6 as instructed on this page:
> http://logback.qos.ch/access.html but when I try to do the same thing
> with Tomcat 7 I get the following exception:
> java.lang.VerifyError: JVMVRFY007 final method overridden;
> class=ch/qos/logback/access/tomcat/LogbackValve, method=stop()V, pc=0
> This is because LogbackValve.stop() overrides public final synchronized
> void stop() in org.apache.catalina.util.LifecycleBase.
> LogbackValve.stop() just sets started=false.  What are the consequences
> of removing the stop method from LogbackValve?  The variable "started"
> isn't used elsewhere in the class, but it's package protected...I didn't
> look that closely to see if it's used in by other classes.
> If "started" isn't needed then I suggest removing it so the stop()
> method can be removed so LogbackValve will work with Tomcat 7.
> Paul

More information about the Logback-user mailing list