Browse Source
Previously, all destruction was done in the stop method including closing any Closeables registered with the server. One of these Closeables managed the lifecycle of the DeploymentManager for the servlet deployment. Closing it made the servlet context unusable in `@PreDestroy` methods and upon restart. This commit moves the closing of the registered Closeables into destroy(). This allows `@PreDestory` methods to use the ServletContext. It also allows the server to be stopped and then restarted without making the ServletContext unusable as it's left running while the server itself is stopped and not accepting requests. Fixes gh-47141pull/48100/head
2 changed files with 13 additions and 15 deletions
Loading…
Reference in new issue