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.

Full Stack App with Spring dev mode packaged war doesn't work in tomcat

See original GitHub issue

When using platform snapshot and flow-maven-plugin snapshot the war resulting from running mvn package (without production mode) fails to deploy in tomcat. More info in https://github.com/vaadin/bakery-app-starter-flow-spring/issues/824

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
Legiothcommented, Jun 14, 2019

That would mean that any build that explicitly or implicitly uses mvn package would be in an intermediate development mode that does non-production logging and such, but still doesn’t use the webpack dev server. I believe that would be a significant improvement over the current situation.

The one situation that would be slightly weird is still if you build a .war or otherwise deploy directly from e.g. Eclipse, since it would then pick a mode based on the last time you did run something through Maven. I think this would still be a relatively good trade-off.

1reaction
caaladorcommented, Jun 14, 2019

We could have the build-frontend goal add a conf "dev-server": false, into flow-build-info.json so that then if you do a package the dev-server wouldn’t be used, but we would fall on the generated bundles. This would mean also that the prepare-frontend goal should always remove this configuration so that when running mvn jetty:run we wouldn’t be left without the dev-server even if we didn’t clean.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deploy a Spring Boot WAR into a Tomcat Server - Baeldung
In this tutorial, we'll create a simple Spring Boot application and adapt it to work within Tomcat. 2. Setting up a Spring Boot...
Read more >
Deployed Spring-Boot war doesn't work in Tomcat
My deployed war was "app.war" named, so, the wrong URL which I was requesting: host-address:8080/resource-uri. The right URL is:.
Read more >
Deploy a Spring Boot Application into Tomcat - Okta Developer
Create a Spring Boot app with Java 11 and deploy into Tomcat 9. ... Open up a console and run java -version to...
Read more >
Spring Boot Reference Documentation
Try the How-to documents. They provide solutions to the most common questions. Learn the Spring basics. Spring Boot builds on many other Spring...
Read more >
Apache Tomcat 8 (8.5.84) - Changelog
AprLifecycleListener does not show dev version suffix for libtcnative ... when working with the URL provided for the root of a packed WAR....
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