-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full Stack App with Spring dev mode packaged war doesn't work in tomcat #5876
Comments
This need investigation and decisions on what does it mean to run dev mode war.
What is the advantage of running in dev mode instead of production mode? |
To further complicate things, there are differences between "war" and "war" as well. It might potentially still work when run as an exploded war from the project as happens e.g. when using A completely standalone Isn't this the reason why some files paths are written into |
If you build a war file and deploy it, there is no reason to run any webpack server at all? If I deploy my demo to a local Tomcat to show to a customer later today, I certainly do not want it to be broken because I changed something in my workspace. There should be no connection between my workspace and my deployed version |
That would mean that any developer using a server for which there isn't any run-in-place Maven plugin or similar would not be able to benefit from the immediate reloading enabled by the webpack dev server. A related question is whether we have any way of detecting whether the use is running from a .war (which is potentially exploded by the servlet engine) or not? Otherwise, there wouldn't be any good way of knowing whether to start a webpack dev server. |
Indeed, neither will they have Java hot deploy unless the explicitly request it through a debug connection, defined for the external server. Why would we hot deploy static files and use old versions of Java classes? |
Sure, but do we have any way of distinguishing between the situations where hot delpoy is available and not? |
Until there is a resolution to this issue, this should explicitly be mentioned in the release notes as a known limitation, linking to this issue. |
We could have the |
That would mean that any build that explicitly or implicitly uses 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. |
Can be reproduced using latest snapshots for flow and flow-maven-plugin |
The latest was a issue with the spring add-on: vaadin/spring#451 |
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 vaadin/bakery-app-starter-flow-spring#824
The text was updated successfully, but these errors were encountered: