-->
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.  [ 2 posts ] 
Author Message
 Post subject: Schema Export Problem
PostPosted: Wed Jul 14, 2004 10:06 am 
Senior
Senior

Joined: Fri Jun 18, 2004 10:17 am
Posts: 140
I am running schemaexport task from ANT. It finds the hibernate.properties and all the values in it, it finds my HBMs yet when it comes to the crunch it fails with user must specify JDBC connection...

Code:
[schemaexport] 2004-07-14 14:56:22,157 -  INFO (net.sf.hibernate.cfg.Environment
:462) - Hibernate 2.1.4
[schemaexport] 2004-07-14 14:56:22,407 -  INFO (net.sf.hibernate.cfg.Environment
:496) - [b]loaded properties from resource hibernate.properties: {hibernate.connect
ion.username=sa, hibernate.connection.password=pass, hibernate.cglib.use_refl
ection_optimizer=true, hibernate.dialect=net.sf.hibernate.dialect.SQLServerDiale
ct, hibernate.connection.url=jdbc:jtds:sqlserver://localhost:1433/db_iQ;charset=
Cp1252;TDS=7.0, hibernate.connection.driver_class=net.sourceforge.jtds.jdbc.Driv
er}[/b]
[schemaexport] 2004-07-14 14:56:22,423 -  INFO (net.sf.hibernate.cfg.Environment
:522) - using CGLIB reflection optimizer
[schemaexport] 2004-07-14 14:56:25,657 -  INFO (net.sf.hibernate.cfg.Configurati
on:166) - Mapping file: F:\jakarta-tomcat-5.0.25\webapps\iq\WEB-INF\classes\com\
qas\newmedia\intranet\iq\dto\core\workflow\Workflow.hbm.xml
[schemaexport] 2004-07-14 14:56:27,470 -  INFO (net.sf.hibernate.cfg.Binder:229)
- Mapping class: com.qas.newmedia.intranet.iq.dto.core.workflow.Workflow -> Wor
kflows
[schemaexport] 2004-07-14 14:56:28,423 -  INFO (net.sf.hibernate.cfg.Binder:560)
- Mapping collection: com.qas.newmedia.intranet.iq.dto.core.workflow.Workflow.o
wners -> Owners
[schemaexport] 2004-07-14 14:56:28,923 -  INFO (net.sf.hibernate.cfg.Binder:200)
- Mapping joined-subclass: com.qas.newmedia.intranet.iq.dto.myemployment.tools.
holidayform.HolidayFormWorkflow -> HolidayFormWorkflows
[schemaexport] 2004-07-14 14:56:28,938 -  INFO (net.sf.hibernate.cfg.Configurati
on:166) - Mapping file: F:\jakarta-tomcat-5.0.25\webapps\iq\WEB-INF\classes\com\
qas\newmedia\intranet\iq\dto\schedules\Schedule.hbm.xml
[schemaexport] 2004-07-14 14:56:29,095 -  INFO (net.sf.hibernate.cfg.Binder:229)
- Mapping class: com.qas.newmedia.intranet.iq.dto.schedules.Schedule -> Schedul
es
[schemaexport] 2004-07-14 14:56:29,376 -  INFO (net.sf.hibernate.cfg.Binder:169)
- Mapping subclass: com.qas.newmedia.intranet.iq.dto.schedules.ProductSchedule
-> Schedules
[schemaexport] 2004-07-14 14:56:29,438 -  INFO (net.sf.hibernate.cfg.Binder:169)
- Mapping subclass: com.qas.newmedia.intranet.iq.dto.schedules.QAForSchedule ->
Schedules
[schemaexport] 2004-07-14 14:56:29,532 -  INFO (net.sf.hibernate.cfg.Binder:169)
- Mapping subclass: com.qas.newmedia.intranet.iq.dto.schedules.DataAcquisitionS
chedule -> Schedules
[schemaexport] 2004-07-14 14:56:29,626 -  INFO (net.sf.hibernate.cfg.Binder:169)
- Mapping subclass: com.qas.newmedia.intranet.iq.dto.schedules.ProjectSchedule
-> Schedules
[schemaexport] 2004-07-14 14:56:29,626 -  INFO (net.sf.hibernate.cfg.Binder:229)
- Mapping class: com.qas.newmedia.intranet.iq.dto.schedules.ScheduleUpdate -> S
cheduleUpdates
[schemaexport] 2004-07-14 14:56:29,626 -  INFO (net.sf.hibernate.cfg.Binder:229)
- Mapping class: com.qas.newmedia.intranet.iq.dto.schedules.ScheduleLink -> Sch
eduleLinks
[schemaexport] 2004-07-14 14:56:29,829 -  INFO (net.sf.hibernate.dialect.Dialect
:82) - Using dialect: net.sf.hibernate.dialect.SQLServerDialect
[schemaexport] 2004-07-14 14:56:29,845 -  INFO (net.sf.hibernate.cfg.Configurati
on:613) - processing one-to-many association mappings
[schemaexport] 2004-07-14 14:56:29,845 -  INFO (net.sf.hibernate.cfg.Binder:1168
) - Mapping collection: com.qas.newmedia.intranet.iq.dto.schedules.Schedule.upda
tes -> ScheduleUpdates
[schemaexport] 2004-07-14 14:56:29,845 -  INFO (net.sf.hibernate.cfg.Binder:1168
) - Mapping collection: com.qas.newmedia.intranet.iq.dto.schedules.Schedule.link
s -> ScheduleLinks
[schemaexport] 2004-07-14 14:56:29,845 -  INFO (net.sf.hibernate.cfg.Configurati
on:622) - processing one-to-one association property references
[schemaexport] 2004-07-14 14:56:29,845 -  INFO (net.sf.hibernate.cfg.Configurati
on:647) - processing foreign key constraints
[schemaexport] 2004-07-14 14:56:30,235 -  INFO (net.sf.hibernate.cfg.Configurati
on:613) - processing one-to-many association mappings
[schemaexport] 2004-07-14 14:56:30,235 -  INFO (net.sf.hibernate.cfg.Configurati
on:622) - processing one-to-one association property references
[schemaexport] 2004-07-14 14:56:30,235 -  INFO (net.sf.hibernate.cfg.Configurati
on:647) - processing foreign key constraints
[schemaexport] 2004-07-14 14:56:30,360 -  INFO (net.sf.hibernate.tool.hbm2ddl.Sc
hemaExport:98) - Running hbm2ddl schema export
[schemaexport] 2004-07-14 14:56:30,360 -  INFO (net.sf.hibernate.tool.hbm2ddl.Sc
hemaExport:112) - writing generated schema to file: schema-export.sql
[schemaexport] 2004-07-14 14:56:30,376 -  INFO (net.sf.hibernate.tool.hbm2ddl.Sc
hemaExport:117) - exporting generated schema to database
[schemaexport] 2004-07-14 14:56:30,423 -  WARN (net.sf.hibernate.connection.User
SuppliedConnectionProvider:25) - No connection properties specified - the user m
ust supply JDBC connections
[schemaexport] 2004-07-14 14:56:30,563 - ERROR (net.sf.hibernate.tool.hbm2ddl.Sc
hemaExport:165) - [b]schema export unsuccessful
[schemaexport] java.lang.UnsupportedOperationException: The user must supply a J
DBC connection[/b][schemaexport]  at net.sf.hibernate.connection.UserSuppliedConnectionProvider.ge
tConnection(UserSuppliedConnectionProvider.java:32)
[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:269)
[schemaexport]  at org.apache.tools.ant.Task.perform(Task.java:364)
[schemaexport]  at org.apache.tools.ant.Target.execute(Target.java:301)
[schemaexport]  at org.apache.tools.ant.Target.performTasks(Target.java:328)
[schemaexport]  at org.apache.tools.ant.Project.executeTarget(Project.java:1215)

[schemaexport]  at org.apache.tools.ant.Project.executeTargets(Project.java:1063
)
[schemaexport]  at org.apache.tools.ant.Main.runBuild(Main.java:632)
[schemaexport]  at org.apache.tools.ant.Main.startAnt(Main.java:183)
[schemaexport]  at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
[schemaexport]  at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)

BUILD SUCCESSFUL
Total time: 17 seconds
C:\dev>


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 14, 2004 10:49 am 
Senior
Senior

Joined: Fri Jun 18, 2004 10:17 am
Posts: 140
my fault .. text="no",

sorry!


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

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.