Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 1 month ago
Vaadin+Spring boot in J2EE
Hello,
trying to figure out how to run Vaadin with spring boot in wildfly8.2. I see in logs that spring framework is initialized but in the main UI class none of my beans are injected! Please can you tell me whether it is even possible and tested or spring boot integration is supported with embedded tomcat/jetty only?
INFO [io.undertow.servlet] (MSC service thread 1-7) Initializing Spring embedded WebApplicationContext
My start class:
@SpringBootApplication
@ComponentScan("my.test")
@EnableAutoConfiguration
@EnableScheduling
@EnableAsync
public class AdminBootApplication extends SpringBootServletInitializer {
public static void main(String[] args) {
SpringApplication.run(AdminBootApplication.class, args);
}
// @Override
// protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
// return application.sources(AdminBootApplication.class);
// }
}
and my UI class
@Theme("mytheme")
@Widgetset("my.test.MyAppWidgetset")
@Push
@SpringUI
public class AdminUI extends UI implements LocalizationDE {
@Value("${project.version}")
private String projectVersion;
@Override
public void init(VaadinRequest request) {
//project version NULL !
}
}
If I use jetty/tomcat it works really good, but deployment to wildfly does not use spring.
Thanks.
Last updated on
You cannot reply to this thread.