Ver Mensaje Individual
  #5 (permalink)  
Antiguo 09/03/2010, 10:17
Pelirr
 
Fecha de Ingreso: diciembre-2008
Mensajes: 233
Antigüedad: 15 años, 4 meses
Puntos: 1
Respuesta: "${lib.dir} not found" en build.xml en eclipse

Increible pero cierto, al final el problema era ... ¡un guión! en el fichero Message.hgm.xml tenía puesto column="NEXT_MESSAGE-ID" en lugar de column="NEXT_MESSAGE_ID". Arreglado este error, me crea la tabla en la bbdd, pero no sé porqué no puedo acceder a ella. Y al echar a correr el schemaexport, no puede hacer bien el build y dá el siguiente error:

uildfile: C:\Documents and Settings\empalacios\workspaceManningJP\HelloWorldJ P\build.xml
clean:
[delete] Deleting directory C:\Documents and Settings\empalacios\workspaceManningJP\HelloWorldJ P\bin
[mkdir] Created dir: C:\Documents and Settings\empalacios\workspaceManningJP\HelloWorldJ P\bin
compile:
[javac] Compiling 3 source files to C:\Documents and Settings\empalacios\workspaceManningJP\HelloWorldJ P\bin
copymetafiles:
[copy] Copying 3 files to C:\Documents and Settings\empalacios\workspaceManningJP\HelloWorldJ P\bin
schemaexport:
[hibernatetool] Executing Hibernate Tool with a Standard Configuration
[hibernatetool] 1. task: hbm2ddl (Generates database schema)
[hibernatetool] 09-mar-2010 16:25:37 org.hibernate.cfg.Environment <clinit>
[hibernatetool] INFO: Hibernate 3.3.2.GA
[hibernatetool] 09-mar-2010 16:25:37 org.hibernate.cfg.Environment <clinit>
[hibernatetool] INFO: hibernate.properties not found
[hibernatetool] 09-mar-2010 16:25:37 org.hibernate.cfg.Environment buildBytecodeProvider
[hibernatetool] INFO: Bytecode provider name : javassist
[hibernatetool] 09-mar-2010 16:25:37 org.hibernate.cfg.Environment <clinit>
[hibernatetool] INFO: using JDK 1.4 java.sql.Timestamp handling
[hibernatetool] 09-mar-2010 16:25:37 org.hibernate.cfg.Configuration configure
[hibernatetool] INFO: configuring from file: hibernate.cfg.xml
[hibernatetool] 09-mar-2010 16:25:37 org.hibernate.cfg.Configuration addResource
[hibernatetool] INFO: Reading mappings from resource : hello/Message.hbm.xml
[hibernatetool] 09-mar-2010 16:25:37 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
[hibernatetool] INFO: Mapping class: hello.Message -> MESSAGES
[hibernatetool] 09-mar-2010 16:25:38 org.hibernate.cfg.Configuration doConfigure
[hibernatetool] INFO: Configured SessionFactory: null
[hibernatetool] 16:25:38,384
[hibernatetool] An exception occurred while running exporter #2:hbm2ddl (Generates database schema)
[hibernatetool] To get the full stack trace run ant with -verbose
[hibernatetool] org.hibernate.HibernateException: The dialect was not set. Set the property hibernate.dialect.

BUILD FAILED
C:\Documents and Settings\empalacios\workspaceManningJP\HelloWorldJ P\build.xml:64: org.hibernate.HibernateException: The dialect was not set. Set the property hibernate.dialect.

Total time: 2 seconds

¿Tiene alguien alguna idea de porqué?

Muchas gracias, un saludo