Loading...
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.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Vaadin Application deployment error

Aibek Nurtaev
1 decade ago Jul 26, 2012 4:49am
Tobias Demuth
1 decade ago Jul 26, 2012 5:55am
Henri Sara
1 decade ago Jul 26, 2012 6:35am
Aibek Nurtaev
1 decade ago Jul 26, 2012 8:33am
Henri Sara
1 decade ago Jul 26, 2012 9:54am

Two ways to solve this:

  1. Put Vaadin JAR only in the WAR, not in the shared library directory
  2. Write your own MyApplicationServlet returning "new MyApplication()" instead of using reflection based on a parameter in web.xml

The latter approach, while it might sound complicated, is very short and only requires one or two one-line methods in a subclass of AbstractApplicationServlet to create a new application instance and minor changes in your web.xml (change which servlet is used, remove the "application" parameter).

Aibek Nurtaev
1 decade ago Jul 26, 2012 10:53am
ppor cheery
1 decade ago Sep 18, 2012 2:49pm