Quando mando compilar o meu projeto (build), recebo a seguinte mensagem
extension-library-variants:
init:
deps-clean:
Deleting directory /home/usuario/workspace/Diagon/build
Deleting directory /home/usuario/workspace/Diagon/dist
clean:
extension-library-variants:
init:
deps-jar:
Created dir: /home/usuario/workspace/Diagon/build/classes
project-extension-init:
xdoclet-hibernate:
17/11/2006 09:42:57 xdoclet.XDocletMain start
INFO: Running <hibernate/>
Generating mapping file for dao.User.
dao.User
xdoclet-hibernate-build:
Compiling 19 source files to /home/usuario/workspace/Diagon/build/classes
Note: /home/usuario/workspace/Diagon/src/dao/HibernateUtil.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Copying 66 files to /home/usuario/workspace/Diagon/build/classes
hibernate-test-user-props:
hibernate-load-user-props:
hibernate-resources:
compile:
hibernate-schema-export:
17/11/2006 09:42:59 org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.2.0
17/11/2006 09:42:59 org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
17/11/2006 09:42:59 org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : cglib
17/11/2006 09:42:59 org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
17/11/2006 09:42:59 org.hibernate.cfg.Configuration addFile
INFO: Reading mappings from file: /home/usuario/workspace/Diagon/build/classes/dao/User.hbm.xml
17/11/2006 09:42:59 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: dao.User -> USER
17/11/2006 09:42:59 org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.HSQLDialect
17/11/2006 09:43:00 org.hibernate.tool.hbm2ddl.SchemaExport execute
INFO: Running hbm2ddl schema export
17/11/2006 09:43:00 org.hibernate.tool.hbm2ddl.SchemaExport execute
INFO: writing generated schema to file: /home/usuario/workspace/Diagon/build/schema-export.sql
17/11/2006 09:43:00 org.hibernate.tool.hbm2ddl.SchemaExport execute
INFO: exporting generated schema to database
17/11/2006 09:43:00 org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Using Hibernate built-in connection pool (not for production use!)
17/11/2006 09:43:00 org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Hibernate connection pool size: 20
17/11/2006 09:43:00 org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: autocommit mode: false
17/11/2006 09:43:00 org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: using driver: org.hsqldb.jdbcDriver at URL: jdbc:hsqldb:file:Diagon
17/11/2006 09:43:00 org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: connection properties: {user=SA, password=****}
17/11/2006 09:43:00 org.hibernate.tool.hbm2ddl.SchemaExport execute
SEVERE: schema export unsuccessful
java.sql.SQLException: Wrong database file version
at org.hsqldb.jdbc.jdbcUtil.sqlException(Unknown Source)
at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)
at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
at org.hsqldb.jdbcDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
at org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.prepare(ManagedProviderConnectionHelper.java:28)
at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:180)
at org.hibernate.tool.hbm2ddl.SchemaExportTask.execute(SchemaExportTask.java:146)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:240)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:293)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:131)
hibernate-schema-export-build:
Created dir: /home/usuario/workspace/Diagon/dist
Building jar: /home/usuario/workspace/Diagon/dist/Diagon.jar
jar:
BUILD SUCCESSFUL (total time: 3 seconds)
já apaguei o arquivo do banco de dados e criei um novo, o que devo fazer?
OBS: estou usando HSQLDB