-
Notifications
You must be signed in to change notification settings - Fork 168
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
DeploymentConfigurationFactory can't load flow-build-info.json on Quarkus #9713
Labels
Comments
For Vaadin
@Override
protected DeploymentConfiguration createDeploymentConfiguration(Properties initParameters) {
initParameters.remove(DeploymentConfigurationFactory.DEV_MODE_ENABLE_STRATEGY);
return new DefaultDeploymentConfiguration(getClass(), initParameters);
} |
Thank you @mshabarov , unfortunately that workaround is not possible because of https://github.com/vaadin/flow/issues/9755 |
18 tasks
Acceptance Criteria
|
caalador
added a commit
to vaadin/quarkus
that referenced
this issue
Jun 11, 2021
Add a ResourceProvider for Quarkus. fixes vaadin/flow#9713
caalador
added a commit
to vaadin/quarkus
that referenced
this issue
Jun 16, 2021
Add a ResourceProvider for Quarkus. fixes vaadin/flow#9713
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
DeploymentConfigurationFactory
class usesDeploymentConfiguration.class.getClassLoader()
to loadflow-build-info.json
file. Unfortunately, Quarkus loads vaadin jars in a classloader different from the 'app' classloader which actually contains theflow-build-info.json
file. That makes theDeploymentConfigurationFactory
class fail to find theflow-build-info.json
file, ultimately failing to initialize withThe solution is to use context class loader:
Thread.currentThread().getContextClassLoader().getResources(tokenResource)
. Alternatively we can use Vaadin 19 and take advantage of the new Lookup SPI.Versions:
The text was updated successfully, but these errors were encountered: