Deploying vaadin for JBoss 7.0 gives me a ClassNotFoundException

I created a new Vaadin project (6.6.5) in eclipse and I tried to deploy it to JBoss 7.0, but it gives me a GWT ClassNotFoundException

Caused by: java.lang.ClassNotFoundException: com.google.gwt.user.client.ui.HasWidgets from [Module "deployment.test.war:main" from Service Module Loader]
    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)
    ... 64 more

Do I need to do something to deploy gwt libraries?

+5
source share
4 answers

It seems that some of the GWT classes in gwt-user.jar needed to compile the widget on the client side of Vaadin are loaded by JBoss7 unnecessarily.

vaadin.jar contains links to gwt-user.jar, but this is not required at run time, only at widgetset compilation time. However, JBoss wants to load these classes causing the problem.

JBoss : http://community.jboss.org/thread/169575?tstart=0

, gwt-user.jar WEB-INF/lib vaadin.jar, , .

+5

Vaadin Eclipse gwt jar, Eclipse .

com.google.gwt.user.client, , gwt-user.jar.

gwt-dev.jar GWT.

? ( ) WEB-INF/lib, , GWT.

() , . , GWT (, HasWidgets).

+1

, com.google.gwt. ** . , gwt .

+1

Vaadin has currently published an add-in to fix this, see https://vaadin.com/directory#!addon/vaadin-application-server-class-loader-workaround

0
source

All Articles