NoClassDefFoundError while building on Hudson

While compiling a maven webapp using GWT on Hudson, I’ve got the following issue :

[ERROR] Exception in thread "main" java.lang.NoClassDefFoundError: com/google/gwt/dev/Compiler
[ERROR] Caused by: java.lang.ClassNotFoundException:
[ERROR]  at$
[ERROR]  at Method)
[ERROR]  at
[ERROR]  at java.lang.ClassLoader.loadClass(
[ERROR]  at sun.misc.Launcher$AppClassLoader.loadClass(
[ERROR]  at java.lang.ClassLoader.loadClass(
[ERROR]  at java.lang.ClassLoader.loadClassInternal(

This can be solved by telling gwt-maven-plugin to use a localWorker. Here is the config for pom.xml :


Then, you will happily see :

[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------

3 thoughts on “NoClassDefFoundError while building on Hudson

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s