I know there have been discussions wrt to dbunit here. I have read most of them but I cant seem to find a solution to my problem.
I have set up hibernate and spring.
remove the first line in your dataset.xml file
and replace it with this
otherwise DBUnit tries to load the db tables schema from a DTD file and if no DTD is provided it will never match on any tables. Using the plain xml header will cause DBUnit to skip this DTD - table check that is throwing the error you see.
You must also do what Grzegorz did and have hibernate do a create-drop for your tables by including
or
configuration.setProperty(Environment.HBM2DDL_AUTO, "create-drop");