ant - hbm2dll java.lang.ExceptionInInitializerError -
i'm trying use ant taks hbm2dll every time try execute it, have java.lang.exceptionininitializererror.
here's ant task:
<taskdef name="hibernatetool" classname="org.hibernate.tool.ant.hibernatetooltask" classpathref="generatepath"/> <!-- copy hibernate properties file generated.path --> <copy todir="${basedir}/${output.path}/${generated.path}/classes" file="${basedir}/${input.path}/${data-model.path}/hibernate.properties"/>  <hibernatetool destdir="${basedir}/${output.path}/${generated.path}/classes">     <jpaconfiguration persistenceunit="${data-model-package}.dm_${data-model-version}"/>     <classpath>         <path location="${basedir}/${output.path}/${generated.path}/classes" />     </classpath>      <property key="default-cascade" value="save-update"/>     <property key="defaultcascade" value="save-update"/>      <hbm2ddl         drop="false"         create="true"         export="false"         outputfilename="../../${sql-scripts.path}/mysqlscript.sql"         delimiter=";"         format="false"/>      <hbm2cfgxml ejb3="false"/>     <hbm2hbmxml/> </hibernatetool> and error output is:
 [exec] [hibernatetool] executing hibernate tool jpa configuration  [exec] [hibernatetool] 1. task: hbm2ddl (generates database schema)  [exec]  [exec] build failed  [exec] my/path/to/xml/file.xml:10: java.lang.exceptionininitializererror does have idea?
thanks !
ant-contrib-0.6 jar missing in classpath
Comments
Post a Comment