Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
kielni opened this Issue · 1 comment

2 participants

@kielni

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(Class.java:2389)
[testng] at java.lang.Class.getConstructor0(Class.java:2699)
[testng] at java.lang.Class.newInstance0(Class.java:326)
[testng] at java.lang.Class.newInstance(Class.java:308)
[testng] at org.testng.internal.ClassHelper.newInstance(ClassHelper.java:48)
[testng] at org.testng.TestNG.setListenerClasses(TestNG.java:654)
[testng] at org.testng.TestNG.configure(TestNG.java:1271)
[testng] at org.testng.TestNG.privateMain(TestNG.java:1172)
[testng] at org.testng.TestNG.main(TestNG.java:1146)
[testng] Caused by: java.lang.ClassNotFoundException: org.apa

I replaced the included velocity-1.4-dep.jar with velocity-1.7-dep.jar from http://velocity.apache.org/engine/releases/velocity-1.7/ and then it worked fine.

@dwdyer
Owner

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.