Schema text failed: Resource: net/sf/JColegioip/Personas/CiudadExamen.hbm.xml not found
but the classpath is correct
Hibernate version:2.1.8
Full stack trace of any exception that occurs: Buildfile: C:\Documents and Settings\vns\Escritorio\eclipse\workspace\JColegio\build.xml init: [echo] + =================================== + [echo] + + [echo] + Running Init + [echo] + + [echo] + =================================== + [echo] Database=postgresql [echo] Application server=tomcat all: clean: [echo] + =================================== + [echo] + + [echo] + Clean project + [echo] + + [echo] + =================================== + [delete] Deleting directory C:\Documents and Settings\vns\Escritorio\eclipse\workspace\JColegio\bin [delete] Deleting directory C:\Documents and Settings\vns\Escritorio\eclipse\workspace\JColegio\sql init: [echo] + =================================== + [echo] + + [echo] + Running Init + [echo] + + [echo] + =================================== + [mkdir] Created dir: C:\Documents and Settings\vns\Escritorio\eclipse\workspace\JColegio\bin [mkdir] Created dir: C:\Documents and Settings\vns\Escritorio\eclipse\workspace\JColegio\sql [echo] Database=postgresql [echo] Application server=tomcat test: [echo] + =================================== + [echo] + + [echo] + Running All Test + [echo] + + [echo] + =================================== + init: [echo] + =================================== + [echo] + + [echo] + Running Init + [echo] + + [echo] + =================================== + [echo] Database=postgresql [echo] Application server=tomcat java: [echo] + =================================== + [echo] + + [echo] + Running Javac + [echo] + + [echo] + =================================== + [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 21 source files to C:\Documents and Settings\vns\Escritorio\eclipse\workspace\JColegio\bin [javac] Since fork is true, ignoring compiler setting. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. xdoclet: [echo] + =================================== + [echo] + + [echo] + Running xDoclet + [echo] + + [echo] + =================================== + xdoclet.hibernate.mapping: [echo] + =================================== + [echo] + + [echo] + Running xDoclet.hibernate.mapping + [echo] + + [echo] + =================================== + [hibernatedoclet] (XDocletMain.start 47 ) Running <hibernate/> [hibernatedoclet] Generating mapping file for net.sf.JColegioip.Personas.CiudadExamen. [hibernatedoclet] net.sf.JColegioip.Personas.CiudadExamen [hibernatedoclet] Generating mapping file for net.sf.JColegioip.Infraestructura.Grado. [hibernatedoclet] net.sf.JColegioip.Infraestructura.Grado [hibernatedoclet] Generating mapping file for net.sf.JColegioip.Infraestructura.Materia. [hibernatedoclet] net.sf.JColegioip.Infraestructura.Materia [hibernatedoclet] Generating mapping file for net.sf.JColegioip.Personas.Especialidad. [hibernatedoclet] net.sf.JColegioip.Personas.Especialidad [hibernatedoclet] Generating mapping file for net.sf.JColegioip.Infraestructura.Edificio. [hibernatedoclet] net.sf.JColegioip.Infraestructura.Edificio [hibernatedoclet] Generating mapping file for net.sf.JColegioip.Infraestructura.Seccion. [hibernatedoclet] net.sf.JColegioip.Infraestructura.Seccion [hibernatedoclet] Generating mapping file for net.sf.JColegioip.Infraestructura.Clase. [hibernatedoclet] net.sf.JColegioip.Infraestructura.Clase [hibernatedoclet] Generating mapping file for net.sf.JColegioip.Personas.Direccion. [hibernatedoclet] net.sf.JColegioip.Personas.Direccion [hibernatedoclet] Generating mapping file for net.sf.JColegioip.Transacciones.AnnoEscolar. [hibernatedoclet] net.sf.JColegioip.Transacciones.AnnoEscolar [hibernatedoclet] Generating mapping file for net.sf.JColegioip.Infraestructura.Aula. [hibernatedoclet] net.sf.JColegioip.Infraestructura.Aula [hibernatedoclet] Generating mapping file for net.sf.JColegioip.Personas.Beca. [hibernatedoclet] net.sf.JColegioip.Personas.Beca [hibernatedoclet] Generating mapping file for net.sf.JColegioip.Transacciones.Nota. [hibernatedoclet] net.sf.JColegioip.Transacciones.Nota [hibernatedoclet] Generating mapping file for net.sf.JColegioip.Transacciones.Inscripcion. [hibernatedoclet] net.sf.JColegioip.Transacciones.Inscripcion [hibernatedoclet] Generating mapping file for net.sf.JColegioip.Personas.EscuelaProcedencia. [hibernatedoclet] net.sf.JColegioip.Personas.EscuelaProcedencia [hibernatedoclet] Generating mapping file for net.sf.JColegioip.Transacciones.Registro. [hibernatedoclet] net.sf.JColegioip.Transacciones.Registro [hibernatedoclet] Generating mapping file for net.sf.JColegioip.Personas.Persona. [hibernatedoclet] net.sf.JColegioip.Personas.Persona [hibernatedoclet] net.sf.JColegioip.Personas.Pariente [hibernatedoclet] net.sf.JColegioip.Personas.Matricula [hibernatedoclet] (XDocletMain.start 47 ) Running <hibernatecfg/> [hibernatedoclet] Generating hibernate.cfg.xml configuration file schemaexport: [schemaexport] (cfg.Environment 483 ) Hibernate 2.1.8 [schemaexport] (cfg.Environment 512 ) hibernate.properties not found [schemaexport] (cfg.Environment 543 ) using CGLIB reflection optimizer [schemaexport] (cfg.Environment 572 ) using JDK 1.4 java.sql.Timestamp handling [schemaexport] (cfg.Configuration 943 ) configuring from file: hibernate.cfg.xml [schemaexport] (cfg.Configuration 332 ) Mapping resource: net/sf/JColegioip/Personas/CiudadExamen.hbm.xml BUILD FAILED: C:\Documents and Settings\vns\Escritorio\eclipse\workspace\JColegio\build.xml:73: The following error occurred while executing this line: C:\Documents and Settings\vns\Escritorio\eclipse\workspace\JColegio\build.xml:103: The following error occurred while executing this line: C:\Documents and Settings\vns\Escritorio\eclipse\workspace\JColegio\build.xml:192: Schema text failed: Resource: net/sf/JColegioip/Personas/CiudadExamen.hbm.xml not found Total time: 13 seconds
Name and version of the database you are using: postgresql 8
The generated SQL (show_sql=true): yes it is
<target name="schemaexport"> <taskdef name="schemaexport" classname="net.sf.hibernate.tool.hbm2ddl.SchemaExportTask" classpathref="classpath"/> <path id="update.schema.classpath"> <pathelement path="${build}"/> </path> <schemaexport config="${build}/hibernate.cfg.xml" quiet="no" text="no" drop="no" delimiter=";" output="${sql}/schema-export.sql"> <fileset dir="update.schema.classpath"> <include name="**/*.hbm.xml"/> </fileset> </schemaexport> </target>
|