question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spring Boot Remote Shell with embedded server works only if archive is JAR and not WAR

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:23 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
anand1stcommented, Jul 14, 2016

Unrelated but if you’ve noticed any regression, please report them (in separate issues) as we still have two weeks to work on that before GA. Thanks!

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.

0reactions
bric3commented, Nov 24, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found