Possible bug during executable .war file creation with spring-boot-maven-plugin
See original GitHub issueI’ve tested to set up JSF (Mojarra) with the currently Spring-Boot (1.5.6.RELEASE) and try to create an executable .war file with spring-boot-maven-plugin and the repackage goal.
The problem is that the application within this .war starts up but got problem to initialze. After some days of tests and tests and debug, I finally switch down the Spring-Boot Releases step by step and the last working Version for “executable .war Files” is 1.5.2.
Currently I can’t find the final error/bug/reason for this behavior.
I have forked a JSF/SpringBoot Demonstration and set it up with Version 1.5.3.RELEASE
If you follow the instructions (simple mvn clean install spring-boot:repackage
) and try to execute it with java -jar
you will see the error. Change in pom to a lower version and it runs perfectly.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
It’s a regression in Tomcat 8.5.14. I’ve opened https://bz.apache.org/bugzilla/show_bug.cgi?id=61503. There’s nothing much that we can do in Spring Boot so I’m going to close this. We’ll pick up a version of Tomcat that fixes the problem in due course.
Thanks for the sample. I’ve successfully reproduced the problem now.
As far as I can tell, the problem isn’t with Spring Boot itself but with the version of Tomcat that’s used. Spring Boot 1.5.2 works and it uses Tomcat 8.5.11. Spring Boot 1.5.3 and later fail and they use more recent versions of Tomcat 8.5. Crucially, Spring Boot 1.5.6 works if I set
<tomcat.version>8.5.11</tomcat.version>
in the application’s pom. Lastly, Spring Boot 1.5.6 fails with the latest version of Tomcat 8.5 (8.5.20) so the change in Tomcat’s still there.