-----Original Message----- From: Daniel Mikusa [mailto:dmik...@pivotal.io] Sent: Thursday, February 12, 2015 9:52 AM To: Tomcat Users List Subject: Re: tomcat severe error when shutting down service but startup is clean
On Thu, Feb 12, 2015 at 9:43 AM, Wirth, Kevin <kwi...@astoriabank.com> wrote: > If I move it won't the app break because it will look for the driver > in the folder and not find it? > 1.) Please don't top post. Reply inline like this or at the bottom. 2.) No. The app doesn't look for the driver in that specific location. It looks on the classpath. Since the lib directory is also on the classpath, it will still be available. Dan Sorry about that. Ok I moved the driver and that message cleared up but now I get these at shutdown: Feb 12, 2015 9:57:01 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: The web application [/identityiq] appears to have started a thread named [Thread-3] but has failed to stop it. This is very likely to create a memory leak. Feb 12, 2015 9:57:01 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: The web application [/identityiq] appears to have started a thread named [com.google.inject.internal.util.$Finalizer] but has failed to stop it. This is very likely to create a memory leak. Feb 12, 2015 9:57:01 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: The web application [/identityiq] appears to have started a thread named [Thread-7] but has failed to stop it. This is very likely to create a memory leak. Feb 12, 2015 9:57:01 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: The web application [/identityiq] appears to have started a thread named [Thread-8] but has failed to stop it. This is very likely to create a memory leak. Feb 12, 2015 9:57:01 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: The web application [/identityiq] appears to have started a thread named [Thread-9] but has failed to stop it. This is very likely to create a memory leak. Feb 12, 2015 9:57:01 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: The web application [/identityiq] appears to have started a thread named [Thread-10] but has failed to stop it. This is very likely to create a memory leak. Feb 12, 2015 9:57:01 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: The web application [/identityiq] appears to have started a thread named [Thread-11] but has failed to stop it. This is very likely to create a memory leak. Feb 12, 2015 9:57:01 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks SEVERE: The web application [/identityiq] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@6dd89c3d]) and a value of type [sailpoint.api.Meter.MeterSet] (value [sailpoint.api.Meter$MeterSet@27f9a122]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. Feb 12, 2015 9:57:01 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks SEVERE: The web application [/identityiq] created a ThreadLocal with key of type [com.google.inject.internal.InjectorImpl$1] (value [com.google.inject.internal.InjectorImpl$1@83080e8]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@285f038b]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. Feb 12, 2015 9:57:01 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks SEVERE: The web application [/identityiq] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@6dd89c3d]) and a value of type [sailpoint.api.Meter.MeterSet] (value [sailpoint.api.Meter$MeterSet@75e1af61]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. Feb 12, 2015 9:57:01 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks SEVERE: The web application [/identityiq] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@6dd89c3d]) and a value of type [sailpoint.api.Meter.MeterSet] (value [sailpoint.api.Meter$MeterSet@33c145bd]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. Feb 12, 2015 9:57:01 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks SEVERE: The web application [/identityiq] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@6dd89c3d]) and a value of type [sailpoint.api.Meter.MeterSet] (value [sailpoint.api.Meter$MeterSet@55c995d6]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. Feb 12, 2015 9:57:01 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks SEVERE: The web application [/identityiq] created a ThreadLocal with key of type [com.google.inject.internal.InjectorImpl$1] (value [com.google.inject.internal.InjectorImpl$1@83080e8]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@258c409a]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. Feb 12, 2015 9:57:01 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks SEVERE: The web application [/identityiq] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@6dd89c3d]) and a value of type [sailpoint.api.Meter.MeterSet] (value [sailpoint.api.Meter$MeterSet@1ae551b8]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. Feb 12, 2015 9:57:01 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks SEVERE: The web application [/identityiq] created a ThreadLocal with key of type [com.google.inject.internal.InjectorImpl$1] (value [com.google.inject.internal.InjectorImpl$1@83080e8]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@455814d3]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. Feb 12, 2015 9:57:01 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks SEVERE: The web application [/identityiq] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@6dd89c3d]) and a value of type [sailpoint.api.Meter.MeterSet] (value [sailpoint.api.Meter$MeterSet@19bf4c36]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. > > -----Original Message----- > From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] > Sent: Thursday, February 12, 2015 9:37 AM > To: Tomcat Users List > Subject: Re: tomcat severe error when shutting down service but > startup is clean > > You need to move, not copy. > > Copying is not enough, as webapp jars are preferred over Tomcat ones. > Also having the same class in two places may result in a behaviour > that you do not expect. > http://tomcat.apache.org/tomcat-7.0-doc/class-loader-howto.html > > > 2015-02-12 17:33 GMT+03:00 Wirth, Kevin <kwi...@astoriabank.com>: > > Ok, I will copy the driver into tomcat\lib and see what happens. > > Thank > you. > > > > -----Original Message----- > > From: Daniel Mikusa [mailto:dmik...@pivotal.io] > > Sent: Thursday, February 12, 2015 9:31 AM > > To: Tomcat Users List > > Subject: Re: tomcat severe error when shutting down service but > > startup is clean > > > > On Thu, Feb 12, 2015 at 9:06 AM, Wirth, Kevin > > <kwi...@astoriabank.com> > > wrote: > > > >> I keep getting these weird tomcat errors on shutdown on a newly > >> built system using tomcat 7.0.57 on a windows 2012 server with jdk > >> 1.7 that I can't figure out. This is the catalina log: > >> Feb 12, 2015 8:54:31 AM > >> org.apache.catalina.loader.WebappClassLoader > >> clearReferencesJdbc > >> SEVERE: The web application [/identityiq] registered the JDBC > >> driver [com.microsoft.sqlserver.jdbc.SQLServerDriver] but failed to > >> unregister it when the web application was stopped. To prevent a > >> memory leak, the JDBC Driver has been forcibly unregistered. > >> > > > > This is saying that there was a problem unregistering this JDBC driver. > > It's my understanding that this is common for JDBC drivers and why > > it's > generally recommended that you put them in either $CATALINA_HOME/lib > or $CATALINA_BASE/lib instead of bundled with the web app. Can you > give that a try and see if this message goes away? > > > > > >> Feb 12, 2015 8:54:31 AM > >> org.apache.catalina.loader.WebappClassLoader > >> clearReferencesThreads > >> SEVERE: The web application [/identityiq] appears to have started a > >> thread named [Thread-3] but has failed to stop it. This is very > >> likely to create a memory leak. > >> > > > > Something (possibly your JDBC driver) in your app is starting a thread. > > Because the app starts the thread, it's responsible to cleaning it up. > > This message is telling you that the thread is not being cleaned up. > > If > you take a thread dump when your app is running and then stop the app, > you should be able to get an idea as to what created this thread. > > > > > >> > >> The jdbc driver I am using is in the folder identityiq under the > >> webapps directory in tomcat. It is the sqljdbc4.jar driver. This > >> driver is not in the tomcat\lib directory. Please help because I > >> am getting no help from the vender. Thank you. > >> > > > > Is there any reason it's bundled with the app and not in the lib > directory? Usually you'd put JDBC drivers in the lib directory. > > > > Dan > > > > On Thu, Feb 12, 2015 at 9:06 AM, Wirth, Kevin > > <kwi...@astoriabank.com> > > wrote: > > > >> I keep getting these weird tomcat errors on shutdown on a newly > >> built system using tomcat 7.0.57 on a windows 2012 server with jdk > >> 1.7 that I can't figure out. This is the catalina log: > >> Feb 12, 2015 8:54:31 AM > >> org.apache.catalina.loader.WebappClassLoader > >> clearReferencesJdbc > >> SEVERE: The web application [/identityiq] registered the JDBC > >> driver [com.microsoft.sqlserver.jdbc.SQLServerDriver] but failed to > >> unregister it when the web application was stopped. To prevent a > >> memory leak, the JDBC Driver has been forcibly unregistered. > >> Feb 12, 2015 8:54:31 AM > >> org.apache.catalina.loader.WebappClassLoader > >> clearReferencesThreads > >> SEVERE: The web application [/identityiq] appears to have started a > >> thread named [Thread-3] but has failed to stop it. This is very > >> likely to create a memory leak. > >> > >> The jdbc driver I am using is in the folder identityiq under the > >> webapps directory in tomcat. It is the sqljdbc4.jar driver. This > >> driver is not in the tomcat\lib directory. Please help because I > >> am getting no help from the vender. Thank you. > >> > >> Kevin Wirth > >> Sr. Systems Engineer > >> Information Services > >> Astoria Bank > >> * (516) 327-7762 | * kwi...@astoriabank.com<mailto: > >> kwi...@astoriabank.com> > >> > >> Astoria Federal Savings is now Astoria Bank. We can now be > >> contacted at our new email addresses @astoriabank.com. > >> > >> > >> This e-mail and any attachments that accompany it are confidential > >> and may be legally privileged. It is intended solely for the use of > >> the > >> individual(s) to whom it was intended to be addressed. Access to > >> this e-mail by anyone else is unauthorized. If you are not the > >> intended recipient, please immediately return the e-mail to the > >> sender and delete the original and any copy from your computer. If > >> the reader of this message is not the intended recipient, or an > >> employee or agent responsible for delivering this message to its > >> intended recipient, you are herewith notified that any > >> dissemination, distribution, copying or retention of this > >> communication or the information contained > herein is strictly prohibited. > >> > > Astoria Federal Savings is now Astoria Bank. We can now be > > contacted at > our new email addresses @astoriabank.com. > > > > > > This e-mail and any attachments that accompany it are confidential > > and > may be legally privileged. It is intended solely for the use of the > individual(s) to whom it was intended to be addressed. Access to this > e-mail by anyone else is unauthorized. If you are not the intended > recipient, please immediately return the e-mail to the sender and > delete the original and any copy from your computer. If the reader of > this message is not the intended recipient, or an employee or agent > responsible for delivering this message to its intended recipient, you > are herewith notified that any dissemination, distribution, copying or > retention of this communication or the information contained herein is > strictly prohibited. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > Astoria Federal Savings is now Astoria Bank. We can now be contacted > at our new email addresses @astoriabank.com. > > > This e-mail and any attachments that accompany it are confidential and > may be legally privileged. It is intended solely for the use of the > individual(s) to whom it was intended to be addressed. Access to this > e-mail by anyone else is unauthorized. If you are not the intended > recipient, please immediately return the e-mail to the sender and > delete the original and any copy from your computer. If the reader of > this message is not the intended recipient, or an employee or agent > responsible for delivering this message to its intended recipient, you > are herewith notified that any dissemination, distribution, copying or > retention of this communication or the information contained herein is > strictly prohibited. > Astoria Federal Savings is now Astoria Bank. We can now be contacted at our new email addresses @astoriabank.com. This e-mail and any attachments that accompany it are confidential and may be legally privileged. It is intended solely for the use of the individual(s) to whom it was intended to be addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, please immediately return the e-mail to the sender and delete the original and any copy from your computer. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to its intended recipient, you are herewith notified that any dissemination, distribution, copying or retention of this communication or the information contained herein is strictly prohibited.