I am using Hibernate 3.0, hsqldb 1.7.1
When I run ant schema, I am getting following error
Buildfile: build.xml
[schemaexport] (cfg.Environment 478 ) Hibernate 2.1.7
[schemaexport] (cfg.Environment 512 ) loaded properties from
resource hibernate.properties: {hibernate.connection.username=sa, hibernate.con
nection.password=, hibernate.cglib.use_reflection_optimizer=true, hibernate.dial
ect=net.sf.hibernate.dialect.HSQLDialect, hibernate.connection.url=jdbc:hsqldb:d
ata/music, hibernate.connection.driver_class=org.hsqldb.jdbcDriver}
[schemaexport] (cfg.Environment 538 ) using CGLIB reflection
optimizer
[schemaexport] (cfg.Environment 567 ) using JDK 1.4 java.sql
.Timestamp handling
[schemaexport] (cfg.Configuration 169 ) Mapping file: C:\works
pace\Hibernate_Example\src\com\oreilly\hh\Track.hbm.xml
[schemaexport] (cfg.Binder 230 ) Mapping class: src.com
.oreilly.hh.Track -> TRACK
[schemaexport] (dialect.Dialect 86 ) Using dialect: net.sf.
hibernate.dialect.HSQLDialect
[schemaexport] (cfg.Configuration 632 ) processing one-to-many
association mappings
[schemaexport] (cfg.Configuration 641 ) processing one-to-one
association property references
[schemaexport] (cfg.Configuration 666 ) processing foreign key
constraints
[schemaexport] (cfg.Configuration 632 ) processing one-to-many
association mappings
[schemaexport] (cfg.Configuration 641 ) processing one-to-one
association property references
[schemaexport] (cfg.Configuration 666 ) processing foreign key
constraints
[schemaexport] (hbm2ddl.SchemaExport 98 ) Running hbm2ddl schema
export
[schemaexport] (hbm2ddl.SchemaExport 117 ) exporting generated sc
hema to database
[schemaexport] (connection.DriverManagerConnectionProvider 42 ) Using Hibernate
built-in connection pool (not for production use!)
[schemaexport] (connection.DriverManagerConnectionProvider 43 ) Hibernate conne
ction pool size: 20
[schemaexport] (connection.DriverManagerConnectionProvider 77 ) using driver: o
rg.hsqldb.jdbcDriver at URL: jdbc:hsqldb:data/music
[schemaexport] (connection.DriverManagerConnectionProvider 78 ) connection prop
erties: {user=sa, password=}
[schemaexport] (hbm2ddl.SchemaExport 165 ) schema export unsucces
sful
[schemaexport] java.sql.SQLException: Wrong database file version
[schemaexport] at org.hsqldb.Trace.getError(Unknown Source)
[schemaexport] at org.hsqldb.Trace.check(Unknown Source)
[schemaexport] at org.hsqldb.Trace.check(Unknown Source)
[schemaexport] at org.hsqldb.Log.open(Unknown Source)
[schemaexport] at org.hsqldb.Database$Logger.openLog(Unknown Source)
[schemaexport] at org.hsqldb.Database.open(Unknown Source)
[schemaexport] at org.hsqldb.Database.<init>(Unknown Source)
[schemaexport] at org.hsqldb.jdbcConnection.openStandalone(Unknown Source)
[schemaexport] at org.hsqldb.jdbcConnection.<init>(Unknown Source)
[schemaexport] at org.hsqldb.jdbcDriver.connect(Unknown Source)
[schemaexport] at java.sql.DriverManager.getConnection(DriverManager.java:512)
[schemaexport] at java.sql.DriverManager.getConnection(DriverManager.java:140)
[schemaexport] at net.sf.hibernate.connection.DriverManagerConnectionProvider.g
etConnection(DriverManagerConnectionProvider.java:101)
[schemaexport] at net.sf.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExpo
rt.java:119)
[schemaexport] at net.sf.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExpor
t.java:84)
[schemaexport] at net.sf.hibernate.tool.hbm2ddl.SchemaExportTask.execute(Schema
ExportTask.java:142)
[schemaexport] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:275)
[schemaexport] at org.apache.tools.ant.Task.perform(Task.java:364)
[schemaexport] at org.apache.tools.ant.Target.execute(Target.java:341)
[schemaexport] at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelpe
r2.java:142)
[schemaexport] at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHe
lper.java:91)
[schemaexport] at org.apache.tools.ant.Main.runBuild(Main.java:653)
[schemaexport] at org.apache.tools.ant.Main.startAnt(Main.java:187)
[schemaexport] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
[schemaexport] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
BUILD FAILED
Target `schema' does not exist in this project.
Is anybody faced the same problem? Immediate response is appreciated!!!
|