ANT is failing to find org.dbunit.ant.DbUnitTask -


so i'm writing ant build file run tests, , use following line without issue mxunit:

<taskdef name="mxunittask" classname="org.mxunit.ant.mxunitanttask" classpath="../mxunit/ant/lib/mxunit-ant.jar"/> 

but when download dbunit-2.4.8.jar http://sourceforge.net/projects/dbunit/files/ , put in same directory mxunit-ant.jar, added following line ant build file:

<taskdef name="dbunit" classname="org.dbunit.ant.dbunittask" classpath="../mxunit/ant/lib/dbunit-2.4.8.jar"/> 

for see warning in eclipse says:

taskdef class needed class org.dbunit.ant.dbunittask cannot found: org/slf4j/loggerfactory

when extract jar file have org.dbunit.ant.dbunittask class.. i'm confused ant complaining about.. idea issue is?

it looks need make sure dependencies of dbunit satisfied, installing dbunit-2.4.8.jar.

the specific error quote class org/slf4j/loggerfactory not being found suggests don't have slf4j classes needed. (probably latest version of slf4j-api.jar needed there.)


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -