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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
spring integration
Hi,
I am trying to integrate spring in my Vaadin application.
I am using vaadin multi-prject demo application (backend, ui, production and widgset)
WildFly start correctly but I've the erro: Request was not handled by any registered handler.
can someone help me ?
My UI class:
@Viewport("user-scalable=no,initial-scale=1.0")
@Theme("myopenchattheme")
@SpringUI(path = "/*")
@Widgetset("net.teamteck.MyOpenChat.MyOpenChatAppWidgetset")
public class MyOpenChatUI extends UI {
private AccessControl accessControl = new BasicAccessControl();
@Override
protected void init(VaadinRequest vaadinRequest) {
...
}
@WebListener
public static class MyContextLoaderListener extends ContextLoaderListener {
}
...
@Configuration
@EnableVaadin
@ComponentScan("net.teamteck.MyOpenChat.backend.repository")
public static class MyConfiguration {
@Bean
public DataService dataService () {
return new DataServiceImpl();
}
}
@WebServlet(urlPatterns = "/*", name = "MyOpenChatUIServlet", asyncSupported = true)
public static class MyOpenChatUIServlet extends SpringVaadinServlet {
}
}
My applicationContext.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.1.xsd">
<bean class="net.teamteck.MyOpenChat.MyOpenChatUI.MyConfiguration" />
<!-- <context:component-scan base-package="net.teamteck.MyOpenChat" /> -->
</beans>
Can you set a breakpoint in the method "init" of class "MyOpenChatUI"?
So you can check if this method is executed.
And, create a constructor for this class, and set a breakpoint in it, to check if this class is created
<!-- <context:component-scan base-package="net.teamteck.MyOpenChat" /> -->
You commented out this line,
I guess that maybe the Spring "component-scan" function is not working,
so, your UI class will not be recognized as a Bean, and not be created automatically,
and of course, it can not handle your http request