An extension to Quarkus to support Vaadin Flow.
From Vaadin 25.4 onwards vaadin-quarkus is developed and released as part
of Flow, in the vaadin/flow repository:
- the extension:
vaadin-quarkus/ - the integration tests:
flow-tests/vaadin-quarkus-tests/
It follows Flow's version numbering there, so the release that goes with Vaadin
25.4 is vaadin-quarkus 25.4.0 rather than a 3.x one, and a new
vaadin-quarkus is published with every Flow release. The history of this
repository was carried over with the move, so git log and git blame on
those files still reach the commits made here.
Please open issues and pull requests for Vaadin 25.4 and later in vaadin/flow. This tracker stays open for the versions listed below.
Vaadin 25.3 and earlier are still served from this repository:
mainholds the 3.3 line, for Vaadin 25.3 Quarkus 3.33 (LTS)- 3.2 for Vaadin 25.2 and Quarkus 3.33 (LTS)
- 3.1 for Vaadin 25.1 and Quarkus 3.32
- 3.0 for Vaadin 25.0 and Quarkus 3.32
- 2.2 for Vaadin 24 and Quarkus 3.20
- 1.1 for Vaadin 23 and Quarkus 2
NOTE: The minimum supported Quarkus version for Vaadin 25.0 has been raised from 3.27 LTS to 3.32. This change is required because Flow now depends on Jackson 3.1.x and Jackson Annotations 2.21.x to address a security vulnerability.
To try it out, you can get a project https://github.com/vaadin/base-starter-flow-quarkus/
Starting with Quarkus 3.33.3.3, the native image build of a Vaadin application fails while it analyses the application, with:
Error: Class initialization of io.vertx.core.json.Json failed.
...
Caused by: java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/util/ByteArrayBuilder
The Quarkus Undertow extension checks whether Jackson is on the classpath. When it isn't, the extension defers the initialization of the Vert.x JSON classes to run time. The check only looks at the artifact name jackson-core, which Jackson 3, used by Vaadin, shares with Jackson 2. Quarkus therefore mistakes Jackson 3 for Jackson 2 and initializes the Vert.x JSON classes at build time, which requires Jackson 2. Before 3.33.3.3, another dependency happened to bring Jackson 2 in, which hid the problem. This is a Quarkus bug, tracked in quarkusio/quarkus#56989.
Until a Quarkus release with the fix is out, either stay on Quarkus 3.33.3.2 or earlier, or add Jackson 2 core to the application. The Quarkus BOM manages its version:
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>After executing the quarkus project with dev profile mvn quarkus:dev, the devUI can be accessed (with not overwritten configuration) at URL: http://localhost:8080/q/dev-ui/extensions
The extension sets quarkus.websocket.dispatch-to-worker=true as a default. This routes inbound Vaadin Push websocket frames through the Quarkus worker thread pool instead of the Vert.x event loop.
The Quarkus default (false) is unsafe for Vaadin applications. Vaadin's PushHandler acquires the session lock before dispatching, and application code is free to block while holding that lock (e.g. synchronous REST calls or database operations inside BeforeEnterObserver / AfterNavigationListener). With the Quarkus default, that blocking happens on the same Vert.x event loop that Push uses — deadlocking the loop and, if the REST client's response is pinned to the same loop, hanging the request indefinitely.
Override to false only if you fully control all session-locked code paths and have a reason to prefer event-loop dispatch (e.g. measurable latency-sensitive Push patterns with strictly non-blocking handlers).