https://bz.apache.org/bugzilla/show_bug.cgi?id=65476
Bug ID: 65476 Summary: Examples web application fails to start with Java 8 (NullPointerException at ExamplesConfig) Product: Tomcat 9 Version: unspecified Hardware: PC Status: NEW Severity: normal Priority: P2 Component: Examples Assignee: dev@tomcat.apache.org Reporter: knst.koli...@gmail.com Target Milestone: ----- Testing release candidates for Tomcat 9.0.51 and 10.0.9, the examples web application fails to start when running with Java 8 (8u292). Trying to access http://localhost:8080/examples/ results in error 404 and in an NullPointerException in a log file. See https://markmail.org/message/rbgoaevos2f556sr https://markmail.org/message/fnn57hj2zqeilmaf The error goes away if I use Java 11 (11.0.11) or Java 16 (16.0.1). Stacktrace for Tomcat 10.0.9 is the following: [[[ org.apache.catalina.startup.HostConfig.deployDirectory Error deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\examples] java.lang.IllegalStateException: Error starting child at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:729) [... - well-known, skipping] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/examples]] at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726) ... 37 more Caused by: java.lang.NullPointerException at websocket.ExamplesConfig.getAnnotatedEndpointClasses(ExamplesConfig.java:60) at org.apache.tomcat.websocket.server.WsSci.onStartup(WsSci.java:111) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5168) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ... 38 more ]]] Source code of ExamplesConfig: https://github.com/apache/tomcat/blob/10.0.9/webapps/examples/WEB-INF/classes/websocket/ExamplesConfig.java#L54 -- 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