Could you execute ant with the -v switch and paste the output ? You will see the classpath of the restgen task. Continue reading...