Re: Fwd: NoClassDefFoundError during graceful shutdown

2016-02-10 Thread Hrishikesh Gadre
Oh BTW the jar file still exits on the filesystem (i.e. its not being touched during the execution of Tomcat). On Wed, Feb 10, 2016 at 6:31 PM, Hrishikesh Gadre wrote: > Hi Chris, > > I added a check to see if this jar file exists (and is readable) both > inside the ServletFilter init(...) and d

Re: Fwd: NoClassDefFoundError during graceful shutdown

2016-02-10 Thread Hrishikesh Gadre
Hi Chris, I added a check to see if this jar file exists (and is readable) both inside the ServletFilter init(...) and destroy(...) methods. Most of the times the check passes. But when I get NoClassDefFoundError, I see that check is passing during invocation of init(...) method but not during des

Re: Fwd: NoClassDefFoundError during graceful shutdown

2016-02-10 Thread Hrishikesh Gadre
Hi Chris, Thanks for the response. >>This looks like a different issue than you originally reported. Has that other issue gone away? Or is this the root cause of the originally-reported issue? I think it is the root cause for the original issue. As per my understanding, the FileNotFoundException

Re: Fwd: NoClassDefFoundError during graceful shutdown

2016-02-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hdishikesh, On 2/10/16 2:12 PM, Hrishikesh Gadre wrote: > Hi Chris, > > I did some more troubleshooting by enabling Tomcat debug logs. It > turns out that the class loading is failing due to > FileNotFoundException for antlr-runtime.jar file. I am no

Re: Fwd: NoClassDefFoundError during graceful shutdown

2016-02-10 Thread Hrishikesh Gadre
Hi Chris, I did some more troubleshooting by enabling Tomcat debug logs. It turns out that the class loading is failing due to FileNotFoundException for antlr-runtime.jar file. I am not sure why is that the case since I can see that jar file at the location mentioned. Feb 10, 2016 10:00:24 AM org

Re: Fwd: NoClassDefFoundError during graceful shutdown

2016-02-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hrishikesh, On 2/8/16 9:50 AM, Christopher Schultz wrote: > Hrishikesh, > > On 2/6/16 1:17 PM, Hrishikesh Gadre wrote: >> Thanks for the reply. Let me try this out. But do you think its a >> bug in Tomcat ? > > No. There's nothing Tomcat can do abou

Re: Fwd: NoClassDefFoundError during graceful shutdown

2016-02-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hrishikesh, On 2/8/16 9:50 AM, Christopher Schultz wrote: > Hrishikesh, > > On 2/6/16 1:17 PM, Hrishikesh Gadre wrote: >> Thanks for the reply. Let me try this out. But do you think its >> a bug in Tomcat ? > > No. There's nothing Tomcat can do abou

Re: Fwd: NoClassDefFoundError during graceful shutdown

2016-02-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hrishikesh, On 2/6/16 1:17 PM, Hrishikesh Gadre wrote: > Thanks for the reply. Let me try this out. But do you think its a > bug in Tomcat ? No. There's nothing Tomcat can do about this, aside from allowing your application to load /more/ classes on

Re: Fwd: NoClassDefFoundError during graceful shutdown

2016-02-06 Thread Hrishikesh Gadre
Hi Chris, Thanks for the reply. Let me try this out. But do you think its a bug in Tomcat ? Because as an application developer I should be able to invoke arbitrary application logic during the ServletFilter::destroy(...) method without bothering about the class loading related issues (Note that t

Re: Fwd: NoClassDefFoundError during graceful shutdown

2016-02-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hrishikesh, On 2/5/16 6:57 PM, Hrishikesh Gadre wrote: > We are getting NoClassDefFoundErrors during Tomcat graceful > shutdown process (i.e. using "catalina.sh stop" command). We are > using Tomcat with version 6.0.44. Note that this error can not

Fwd: NoClassDefFoundError during graceful shutdown

2016-02-05 Thread Hrishikesh Gadre
Hi, We are getting NoClassDefFoundErrors during Tomcat graceful shutdown process (i.e. using "catalina.sh stop" command). We are using Tomcat with version 6.0.44. Note that this error can not be reproduced consistently. I found following article on the stackoverflow.com which suggests class loader