Maven: "java.lang.NoClassDefFoundError" while running appium tests for Android on Jenkins

Hi, I’ve run into “java.lang.NoClassDefFoundError” while running Android Test cases. All the test cases are running fine except one or two cases which keeps on throwing the error(not consistently). I’m using appium 1.5.2v, and haven’t added any selenium dependencies in pom, using the ones downloaded along with appium.

It’s working fine on my local system. The error is occurring only while running as Jenkins job.
Any help in fixing this is appreciated.

Can you post the full stack trace.