Skip to content

Error running the application as WAR in tomcat 9 [SPR-17599] #22131

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

Metadata

Metadata

Assignees

Labels

for: external-projectNeeds a fix in external projectin: coreIssues in core modules (aop, beans, core, context, expression)in: webIssues in web modules (web, webmvc, webflux, websocket)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions