-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: schemaexport error hbm2ddl
PostPosted: Sat Feb 19, 2005 10:38 am 
Newbie

Joined: Sat Feb 19, 2005 10:23 am
Posts: 3
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>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.