I have two jar, one created with eclipse and another with maven. Both have the 
same dependencies but the one with maven have this error:

> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/axis2/AxisFault

I double check and maven include this dependency inside the exec jar: 
axis2-1.6.1.wso2v6.jar and this dependency have org\apache\axis2\AxisFault.class

I could be a problem with the class loader? Eclipse include this package inside 
the exec jar: org\eclipse\jdt\internal\jarinjarloader 

Saludos,
Ing. Jorge Infante Osorio.
CDAE.
Fac. 5.
UCI.
“En un mundo perfecto las pizzas serían una comida saludable, las laptops se 
cargarían desde una fuente de corriente inalámbrica y todos los JAR serían 
bundles de OSGI ”


-----Mensaje original-----
De: Wayne Fay [mailto:[email protected]] 
Enviado el: miércoles, 12 de junio de 2013 13:50
Para: Maven Users List
Asunto: Re: Include maven dependencies inside jar file

> Now I see all the dependencies include inside my execute jar like 
> Eclipse do it, but when I try it I see this error:
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/axis2/AxisFault

It seems you are missing a necessary dependency, thus the NoClassDefFoundError 
you ran into. Looks like you need to add a dependency to Axis2.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

http://www.uci.cu

http://www.uci.cu

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to