NoClassDefFoundError: Could not initialize class org.apache.axis2.description.AxisService

Nidheesh picture Nidheesh · Feb 5, 2013 · Viewed 8.3k times · Source

While running the application I was getting the following errors.

java.lang.NoClassDefFoundError: Could not initialize class org.apache.axis2.description.AxisService

AxisService class is in axis2-kernel-1.6.2.jar file. Some of the classes from this jar are working fine without any issues, but some classes are throwing NoClassDefFoundError from this jar file at runtime. AxisService class is present in axis2-kernel-1.6.2.jar, even it throws error.

This is working fine in local machine. But error getting in Oracle r12 server.I have already set the class path for the jar file.

I am Using Java version is 1.6 and Apache axis2.1.6.2.

Answer

athabaska picture athabaska · Jun 13, 2013

Had the same issue. I had included only jars that I needed to compile the application. When I included everything from \axis2-1.6.2\lib\ folder, this exception were gone.