Thank you, Mark! This answers my question and offers two (three) good solutions. I appreciate the quick, accurate, and constructive response.
Dan On Wed, Jan 4, 2023 at 10:38 AM Mark Thomas <ma...@apache.org> wrote: > On 04/01/2023 15:11, Daniel McCue wrote: > > Apache Tomcat/9.0.58 reports an error on shutdown: "Failed to clear soft > > references from ObjectStreamClass$Caches for web application [ROOT]" > > > > The error is reported for web applications: [ROOT], [host-manager], and > > [manager] -- the only applications deployed in Tomcat. > > > > The traceback shows a ClassCastException in > > org.apache.catalina.loader.WebappClassLoaderBase.clearCache > > > > I have searched the FAQ, configuration documentation, and web (google > > search), but found only framework-specific solutions like "delete the > > directory, CATALINA_BASE/conf/Catalina/localhost/awi", which doesn't > exist > > in my configuration. > > > > There is a reference to ClassCastExceptions in the release notes for > Tomcat > > 9.0.70, but it suggests moving app-specific .jar files to the shared > > loader. I have loaded none of my own apps -- only the ones that come > with > > tomcat and tomcat-admin. I cannot find any app-specific .jar files in > > Catalina.properties or anywhere in CATALINA_BASE or its subdirectories. > > > > I have updated all software on my Ubuntu machine as of today (4-jan-2022) > > using "sudo apt-get update; sudo apt-get upgrade". > > I have rebooted the machine and ensured that no files existed in > > CATALINA_BASE/lib, but the problem persists. > > > > How can I find my configuration error or stale cache data or somehow > clean > > up the shutdown process? > > There is no configuration error. > > There is no stale cache data. > > The warning results from using a JRE that includes a fix for [1] > https://bugs.openjdk.org/browse/JDK-8277072 > > Newer versions of Tomcat that have [2] (9.0.64 onwards) check for the > fix and don't attempt to clear the cache if the fix is present. > > You can just ignore the warning. > > If you want to silence the warning you can set the context attribute > clearReferencesObjectStreamClassCaches="false" > > Mark > > [1] https://bugs.openjdk.org/browse/JDK-8277072 > [2] > > https://github.com/apache/tomcat/commit/385d4095ccf354c2f9c527283f3ed2832de1a1cf > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >