Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


java.lang.NoClassDefFoundError: org/apache/velocity/context/Context #27

kielni opened this Issue · 1 comment

2 participants


I'm using testng 6.4 and got this error:

[testng] Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/velocity/context/Context
[testng] at java.lang.Class.getDeclaredConstructors0(Native Method)
[testng] at java.lang.Class.privateGetDeclaredConstructors(
[testng] at java.lang.Class.getConstructor0(
[testng] at java.lang.Class.newInstance0(
[testng] at java.lang.Class.newInstance(
[testng] at org.testng.internal.ClassHelper.newInstance(
[testng] at org.testng.TestNG.setListenerClasses(
[testng] at org.testng.TestNG.configure(
[testng] at org.testng.TestNG.privateMain(
[testng] at org.testng.TestNG.main(
[testng] Caused by: java.lang.ClassNotFoundException: org.apa

I replaced the included velocity-1.4-dep.jar with velocity-1.7-dep.jar from and then it worked fine.


Sorry for the very late response to this. The class it's complaining about is definitely in velocity-dep-1.4.jar so if it's not being found it suggests a problem with the classpath when you're running TestNG. I'm not seeing a problem with TestNG 6.8 so I'll close this for now. Re-open if you have any more information that points to a bug in ReportNG.

@dwdyer dwdyer closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.