https://bz.apache.org/bugzilla/show_bug.cgi?id=62899
--- Comment #4 from Dapeng Zhang <zdap...@google.com> --- I tested with your patch (commit afdadae11b6876f3df25d3105230556b3ab27ab7) locally with my own project. Both on Linux and Mac. I didn't see such timeout failure any more. Thank you for the fix! However, on Mac, unlike testing with tomcat-embed-core-9.0.12 or tomcat-embed-core-9.0.13, testing with the patch I have to add an extra runtime dependency for the artifact https://search.maven.org/search?q=a:javax.annotation-api otherwise, my test will see ClassNotFoundException: Exception in thread "main" org.apache.catalina.LifecycleException: A child container failed during start at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:928) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:261) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:523) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:801) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.startup.Tomcat.start(Tomcat.java:394) at AsyncReadEmbedded.main(AsyncReadEmbedded.java:76) ...... Caused by: java.lang.ClassNotFoundException: javax.annotation.Resource at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496) -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org