Ant task Java code is the same as that I'm using. Also I'm change hibernate.hbm2ddl.auto=update => hibernate.hbm2ddl.auto=create-drop to mimic the same beaviour.
But the same error get up.
It is strage, in unit tests if i run only one test all is ok; if I run more tests the JbpmException emerge. My unit tests deploy in setup and run tests on workflow ...
Very strange.... sometimes jbpm found properties in the db and sometimes do not find ...