Logs show this:
io.package.website.configuration.VaadinAppShell' is not a CDI bean. Falling back to default instantiation.
Currently push works only when there is a user interaction with the frontend - for example a usern needs to click a button to force changes to the frontend.
build.gradle:
`plugins {
id "java"
id "application"
id 'org.jetbrains.kotlin.jvm' version "${kotlinVersion}"
id 'org.jetbrains.kotlin.kapt' version "${kotlinVersion}"
id "org.jetbrains.kotlin.plugin.allopen" version "${kotlinVersion}"
id 'org.jetbrains.kotlin.plugin.jpa' version "${kotlinVersion}"
id 'com.github.gmazzo.buildconfig' version '5.3.5'
id "com.vaadin" version "${vaadinPluginVersion}"
id 'io.quarkus'
}
Describe the bug
I am getting this error on the frontend using vaadin with quarkus: https://192.168.1.100/VAADIN/static/push/vaadinPush.js could not be loaded. Push will not work. Looks like this: Push does not work at all.
Logs show this: io.package.website.configuration.VaadinAppShell' is not a CDI bean. Falling back to default instantiation.
Currently push works only when there is a user interaction with the frontend - for example a usern needs to click a button to force changes to the frontend.
Gradle properties
quarkusPluginId=io.quarkus quarkusPluginVersion=3.12.0 quarkusPlatformGroupId=io.quarkus.platform quarkusPlatformArtifactId=quarkus-bom quarkusPlatformVersion=3.12.0 vaadinVersion=24.4.4 vaadinPluginVersion=24.4.4 kotlinVersion=2.0.0
build.gradle: `plugins { id "java" id "application" id 'org.jetbrains.kotlin.jvm' version "${kotlinVersion}" id 'org.jetbrains.kotlin.kapt' version "${kotlinVersion}" id "org.jetbrains.kotlin.plugin.allopen" version "${kotlinVersion}" id 'org.jetbrains.kotlin.plugin.jpa' version "${kotlinVersion}" id 'com.github.gmazzo.buildconfig' version '5.3.5' id "com.vaadin" version "${vaadinPluginVersion}" id 'io.quarkus' }
apply plugin: 'kotlin'
repositories { mavenCentral() maven { url = uri("https://plugins.gradle.org/m2/") } maven { url "https://maven.vaadin.com/vaadin-addons" } google() gradlePluginPortal() }
dependencies { implementation enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}")
// implementation "com.vaadin:vaadin-core:${vaadinVersion}" implementation "com.vaadin:vaadin-quarkus-extension:${vaadinVersion}"
}
def props = new Properties() props.load(new FileInputStream(new File("src/main/resources/application.properties")))
group 'io.package' version '1.0.0-SNAPSHOT'
java { sourceCompatibility = JavaVersion.VERSION_21 targetCompatibility = JavaVersion.VERSION_21 }
test { systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager" } allOpen { annotation("jakarta.ws.rs.Path") annotation("jakarta.enterprise.context.ApplicationScoped") annotation("jakarta.persistence.Entity") annotation("io.quarkus.test.junit.QuarkusTest") }
compileKotlin { kotlinOptions.jvmTarget = JavaVersion.VERSION_21 kotlinOptions.javaParameters = true kotlinOptions { freeCompilerArgs += "-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi" freeCompilerArgs += "-opt-in=kotlinx.coroutines.ObsoleteCoroutinesApi" freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn" freeCompilerArgs += "-opt-in=kotlin.ExperimentalStdlibApi" } }
compileTestKotlin { kotlinOptions.jvmTarget = JavaVersion.VERSION_21 kotlinOptions.javaParameters = true kotlinOptions { freeCompilerArgs += "-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi" freeCompilerArgs += "-opt-in=kotlinx.coroutines.ObsoleteCoroutinesApi" freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn" freeCompilerArgs += "-opt-in=kotlin.ExperimentalStdlibApi" } }
application { mainClass.set("io.minifyimage.website.App") }
jar { zip64 = true exclude 'META-INF/.RSA', 'META-INF/.SF', 'META-INF/*.DSA' duplicatesStrategy(DuplicatesStrategy.EXCLUDE) from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
} `
Expected behavior
Push should work.
Actual behavior
Push does not work which means that the website contents does not change.
How to Reproduce?
Steps:
Output of
uname -a
orver
Darwin MacBook-Air.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:14:59 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T8122 arm64
Output of
java -version
OpenJDK Runtime Environment Zulu22.30+13-CA (build 22.0.1+8) OpenJDK 64-Bit Server VM Zulu22.30+13-CA (build 22.0.1+8, mixed mode, sharing)
Quarkus version or git rev
3.12.0
Build tool (ie. output of
mvnw --version
orgradlew --version
)8.7
Additional information
No response