Hi, i have a problem with my path on org.hibernate.tool.ant.HibernateToolTask, Here are the Exception and config files.
[hibernatetool] An exception occurred while running exporter #2:hbm2ddl (Generates database schema) [hibernatetool] To get the full stack trace run ant with -verbose [hibernatetool] Problems in creating a configuration for JPA. Have you remembered to add hibernate EntityManager jars to the classpath ? [hibernatetool] java.lang.reflect.InvocationTargetException [hibernatetool] javax.persistence.PersistenceException: [PersistenceUnit: junit] Unable to configure EntityManagerFactory [hibernatetool] org.hibernate.AnnotationException: No identifier specified for entity: org.dbsoft.modelo.Usuario [ant] Exiting /home/diego/workspace/OpenXava/build.xml.
BUILD FAILED /home/diego/workspace/Sas/build.xml:38: The following error occurred while executing this line: /home/diego/workspace/OpenXava/build.xml:982: Problems in creating a configuration for JPA. Have you remembered to add hibernate EntityManager jars to the classpath ?
######################################
<target name="defineHibernateTool"> <path id="jpatoolslib"> <path location="../OpenXava/lib/hibernate-tools.jar" /> <path location="../OpenXava/lib/freemarker.jar" /> <path location="../OpenXava/lib/commons-logging.jar" /> <path location="../OpenXava/lib/hibernate-entitymanager.jar" /> <path location="../OpenXava/lib/ejb3-persistence.jar" /> <path location="../OpenXava/lib/javaassist.jar" /> <path location="${jdbc.driver.jar}" /> <!-- Library from OpenXava in order to work the first time before WEB-INF/lib of new project is populated --> <fileset dir="../OpenXava/web/WEB-INF/lib"> <include name="**/*.jar"/> </fileset> <!-- Library of project to include custom libraries --> <fileset dir="../${project}/web/WEB-INF/lib"> <include name="**/*.jar"/> </fileset> <path location="../OpenXava/bin" /> <path location="${schema.path}" /> </path> <taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask" classpathref="jpatoolslib" /> </target>
I feel like I had googled the whole internet without finding what I want. please help me out.
|