Carlos38
(Carlos Silva)
1
Gentlemen, good afternoon. I have an application developed with Vaadin 7.2.3. This application never runs in production mode. I even using:
WebServlet (Value = “/ *”, asyncSupported = true)
VaadinServletConfiguration (ProductionMode = true, ui = SigUI.class)
public static class extends Servlet {VaadinServlet
}
Can anyone help me fix this error?
Thank you
Johannes13
(Johannes Dahlström)
3
Hi, could you show your actual servlet class? The snippet above does not even compile.
Carlos38
(Carlos Silva)
4
Hello Johannes . Thanks for your response . My servlet class is within the UI .
Follows :
public class SilvaUI extends UI{
private Navigator navigator;
protected static final String MAINVIEW = "main";
private static auxPermissoes userAtualPermissoes;
private static usuarioBean userAtualDados;
private static int diaVencimento;
private static smtpBean dadoSmtp;
@WebServlet(value = "/*", asyncSupported = true)
@VaadinServletConfiguration(productionMode = true, ui = SistemasabirUI.class)
public static class Servlet extends VaadinServlet {
}
@Override
protected void init(VaadinRequest request) {
navigator = new Navigator(this, this);
navigator.addView(MAINVIEW, new silvaWork(request));
navigator.addView("", new silvaLogin(request));
}
public Navigator getNavigator() {
return navigator;
}
}
Can you help me?
A hung
David3
(David Wall)
5
Do you also have a WEB-INF/web.xml file in your webapp? You might check that the servlet is not defined in there, too.
Carlos38
(Carlos Silva)
6
I have a WEB-INF/web.xml. It´s here:
<?xml version="1.0" encoding="UTF-8"?>
sistemaSabir
index.html
index.htm
index.jsp
default.html
default.htm
default.jsp
--------------
I have no servlet defined in web.xml.
Thanks.
A hug