Description
Teh Kok How opened SPR-17599 and commented
#16725 is closed but it happens on Tomcat 9. The suggested code snippet does not work as it gives similar exception:
| org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'endpointExporterInitializer' defined in class path resource [com/graphql/book/AppConfig.class]: Initialization of bean failed; nested exception is java.lang.RuntimeException: java.lang.IllegalStateException: javax.websocket.server.ServerContainer not available
|
eh3rrera/graphql-java-spring-boot-example#10
graphql-java-kickstart/graphql-spring-boot#165
Response I get from [email protected]:
"Spring is throwing the exception. Tomcat ships with the
javax.websocket.server.ServerContainer class.
I don't believe there are any differences between Tomcat 8.5.x and
9.0.x when it comes to ClassLoader layout and class visibility.
I'd ask Spring how they are performing that sanity check to see why
they are throwing that exception."
Affects: 5.1.3
Issue Links:
- ServerEndpointExporter causes application context refresh to fail with an NPE when used in a Spring Boot app [SPR-12109] #16725 ServerEndpointExporter causes application context refresh to fail with an NPE when used in a Spring Boot app