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.

[ERROR] javax.servlet.ServletException: Failed to load application class

Romuald MAIRE
1 decade ago Aug 21, 2009 12:08pm
Joonas Lehtinen
1 decade ago Aug 21, 2009 12:18pm
Romuald MAIRE
1 decade ago Aug 31, 2009 2:24pm
Marc Englund
1 decade ago Aug 31, 2009 6:11pm

Hi,

Your application is not finding the default widgetset (a.k.a the client-side GWT components). Quite often this happens when running the application as root (/*) locally, and then under a specified path on the server (e.g /myapp/*). If this is indeed the case, you have two options:

a) Let tomcat serve the resources statically: Extract the widgetsets and themes from the JAR - they are in a directory called VAADIN, which should be placed right next to WEB-INF (i.e /some/path/WEB-INF and /some/path/VAADIN).

b) Have Vaadin serve the resources dynamically: This requires you to register ApplicationServlet to /VAADIN/* - just add another servlet-mapping for your application with the uri-pattern /VAADIN/*

Hope this helps!

Best Regards,
Marc

Romuald MAIRE
1 decade ago Sep 01, 2009 8:29pm
Joonas Lehtinen
1 decade ago Sep 01, 2009 8:46pm
Romuald MAIRE
1 decade ago Sep 01, 2009 9:18pm
Romuald MAIRE
1 decade ago Sep 03, 2009 7:38am
Artur Signell
1 decade ago Sep 03, 2009 9:12am

http://proresil.ch/Test/UIDL must be mapped to your servlet, otherwise it won't work. Opening the http://proresil.ch/Test/UIDL URL in your browser should NOT give "404 Not Found". Mapping /* to your servlet in your web.xml should be enough for both /VAADIN and /UIDL so I'm not sure where the problem is. If it works on a local Tomcat and not in your providers' Tomcat, the providers' Tomcat must be somehow configured differently. Of course you can also try to add a /UIDL mapping to your web.xml but I really do not see why it would help.

Romuald MAIRE
1 decade ago Sep 03, 2009 12:55pm
Joonas Lehtinen
1 decade ago Sep 03, 2009 12:59pm
Romuald MAIRE
1 decade ago Sep 03, 2009 1:12pm
Joonas Lehtinen
1 decade ago Sep 03, 2009 1:33pm
Romuald MAIRE
1 decade ago Sep 03, 2009 2:15pm
Joonas Lehtinen
1 decade ago Sep 03, 2009 2:25pm
Romuald MAIRE
1 decade ago Sep 03, 2009 3:03pm
Joonas Lehtinen
1 decade ago Sep 03, 2009 3:16pm
Romuald MAIRE
1 decade ago Sep 03, 2009 3:30pm
Jens Jansson
1 decade ago Sep 04, 2009 5:14am
priyanka Kulathilaka
1 decade ago Aug 05, 2012 9:32am