Spring Boot Remote Shell with embedded server works only if archive is JAR and not WAR
See original GitHub issueI was running a Spring Boot application (v1.3.6) with embedded undertow in a WAR archive. Recently, I’ve added remote-shell commands and they worked just fine using mvn spring-boot:run
. Once packaged into WAR, java -jar {filename}.war and upon ssh into the shell and typing help
, I get the following exception.
java.io.IOException: Cannot resolve jar:file:{path-to-WAR-archive}!/WEB-INF/classes
All my shell commands were not loaded either.
Issue Analytics
- State:
- Created 7 years ago
- Comments:23 (10 by maintainers)
Top Results From Across the Web
Is it possible with Spring Boot to serve up JSPs with a JAR ...
When running a Spring Boot application that uses an embedded servlet container (and is packaged as an executable archive), there are some limitations...
Read more >Spring Framework RCE, Early Announcement
A jar file can be executable. A war file is deployable. Because Spring Boot produces one file for both purposes, it is sometimes...
Read more >Spring Boot Application as a Service - Baeldung
Spring Boot applications may be packaged both as WAR and JAR files. The latter embeds a web server within a JAR file, which...
Read more >SpringShell RCE vulnerability: Guidance for protecting against ...
Packaged as a traditional Java web archive (WAR) and deployed in a standalone Tomcat instance; typical Spring Boot deployments using an ...
Read more >Apache Tomcat 9 (9.0.70) - Changelog
As part of this addition, configuration of archive indexing moves from ... Log warning if a listener is not nested inside a Server...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Had direct dependencies on elasticsearch-1.5.2
FilterBuilder
for custom searches. This class no longer exists in elasticsearch-2.3.x. No regression issues related to spring boot or data libraries.This issue is a bit old, but since we had this issue as well, I published a quick fix resolving this issue in (https://github.com/crashub/crash/pull/119).
It might be worth investigating https://github.com/corda/crash fork as well for other updates.