Tomcat 7.x and below show exception logs when the stopping with Codehaus Cargo on JDK 11

Description

While stopping on JDK 11, some Tomcat 7.x and below output the following:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 INFO: Stopping ProtocolHandler ["http-bio-49933"] Sep 08, 2019 2:00:58 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesResourceBundles SEVERE: Failed to clear ResourceBundle references for web application [/simple-war] java.lang.NoSuchFieldException: loaderRef at java.base/java.lang.Class.getDeclaredField(Class.java:2412) at org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesResourceBundles(WebappClassLoaderBase.java:3018) at org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:2233) at org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:2101) at org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:663) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224) at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5853) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224) at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1587) at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1576) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834)

The logged messages / errors seem not to have any impact on the actual functionality: the container stops properly without any issues.

Tomcat 8.x and above do not suffer from this issue.

Status

Assignee

Unassigned

Reporter

S. Ali Tokmen

Components

Fix versions

Priority

Major
Configure