Adding Add-On using Ivy


I’m trying to add Vaadin Add-On to my web application. I’m using Ivy dependency manager and Ant to build. I’ve added dependency for the Add-On MessageBox (!addon/messagebox), Add-On was downloaded by the Ivy, it’s stored in the Ivy directory, but after building and deploying project on the JBoss EAP 7.0.2 server, I got and error:

12:23:52,602 SEVERE [com.vaadin.server.DefaultErrorHandler]
(default task-28) : java.lang.NoClassDefFoundError: de/steinwedel/messagebox/MessageBox
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)

Have you used Ivy with Ant in your applications?


We are working on multiple projects with Eclipse/Ivy/Ant. It’s working quite well, and no troubles with addons.

Do you have some ivy-related clause in your war target ?
We use :

        <copy todir="${workdir}/WEB-INF/lib" flatten="true">
            <fileset refid="ivy.deps.default.fileset"/>