While generating the scripts for the oracle from the jbpm-db-3.1-beta2 package, the build file had following target which passes 5 argument to the org.jbpm.db.JbpmSchema class.
But this didnt work for me, than I checkd the source code of the JbpmSchema class it doesnt have a if block for 5 argument it checks it till three than goes to error block.
I had to change the code of the class to generate the oracle scripts.
Please chnage the code and upload it so that this problem is resolved.