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.
Noob doubt
I create one vaadin project, so he create one AppUI with my servlet
@WebServlet(urlPatterns = "/*", name = "CartorioUIServlet", asyncSupported = true)
@VaadinServletConfiguration(ui = CartorioUI.class, productionMode = false)
public static class CartorioUIServlet extends VaadinServlet {
so then I add one add-on (brTextfield): https://vaadin.com/directory#!addon/brtextfield
but the problem are that addon have one UI too
@WebServlet(
value = {"/*"},
asyncSupported = true
)
@VaadinServletConfiguration(
productionMode = false,
ui = BrtextfieldUI.class
)
public static class Servlet extends VaadinServlet {
public Servlet() {
}
}
so when I try to run my project I got the error:
java.lang.IllegalStateException: Multiple servlets map to path: /*: com.brtextfield.BrtextfieldUI$Servlet,CartorioUIServlet
Can I disable the UI from brTextfield?? how?
tks
Depending on your deploy configuration you can try to add either a web-fragment.xml (maven jar artifact) or web.xml (maven war artifact) in order to disable the servlet
...
<servlet>
<servlet-name>com.brtextfield.BrtextfieldUI$Servlet</servlet-name>
<servlet-class>com.brtextfield.BrtextfieldUI$Servlet</servlet-class>
<enabled>false</enabled>
</servlet>
...
HTH
Marco