-
Notifications
You must be signed in to change notification settings - Fork 167
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
Production of dev.bundle fails in ear with multiple wars #20358
Comments
Having it called for every |
Callstack:
I suspect I understand the cause for this now; Our project uses "skinnywar". That means we have one ear with multiple wars, and the things the wars share is put in ear\lib:
I assume this means everything in lib is on the classpath for every war, so any listener you have in vaadin-dev will be triggered for all wars, even for ptsmc-static which only contains static files. The pom-file for the ear contains this:
|
You could try excluding whole |
Describe the bug
I'm upgrading from 24.5.0.beta5 to 24.5.1, so dev.bundle needs to be recreated.
At startup I get this:
While the actual file looks like this:
It looks like the cause is that DevModeInitializer is running in parallel, once for each of my wars.
Expected-behavior
No response
Reproduction
My setup is a multi-module maven project with a vaadin "widgetset" as one of the modules.
This produces an ear containing several wars and a vaadin "widgetset" jar, which we run on wildfly.
At boot, I got two of these:
And then later on, when I accessed the 1st vaadin page I got
Checking in node_modules I saw that the file had been renamed for some reason:
Suspecting that Vaadin is interfering with itself while processing things in parallel, I set a breakpoint in DevModeInitializer.initDevModeHandler
After doing a clean-frontend and a restart, the breakpoint was hit 4 times. I let the 1st one complete before letting the other ones continue, and now everything works as expected.
Looking at the context at each breakpoint, it looks like DevModeInitializer is called once for each war in the ear, no matter if the war uses vaadin or not.
System Info
Windows 10 Enterprise 22H2
Firefox 131.0.3 (64-bit)
Vaadin 24.5.1
The text was updated successfully, but these errors were encountered: