-->
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: SchemaExportTask: "Could not configure datastore from f
PostPosted: Wed Apr 27, 2005 10:11 pm 
Senior
Senior

Joined: Tue Mar 02, 2004 6:17 pm
Posts: 151
Hibernate 3.0.2

When I run SchemaExport I get:

Schema text failed: Could not configure datastore from file: foo.hbm.xml

I'm not sure why it is even looking for datastore information in the mapping file when it should be looking in the config file. My Ant script contains:

Code:
    <schemaexport
      config="${src.dir}/schemaExport.cfg.xml"
      properties="${src.dir}/jdbc.hibernate.properties">
      <fileset dir="${targetDir}">
        <include name="**/*.hbm.xml"/>
      </fileset>
    </schemaexport>


I'm new to mapping files so your advice would be appreciated :)

Thanks,
Gili


Top
 Profile  
 
 Post subject: Re: SchemaExportTask: "Could not configure datastore fr
PostPosted: Wed Apr 27, 2005 11:14 pm 
Senior
Senior

Joined: Tue Mar 02, 2004 6:17 pm
Posts: 151
Running new Configuration() from within Java against the mapping files gave me more useful exceptions -- specifically nested exceptions -- which the Ant task did not. I tracked down and fixed the problem. Thanks anyway,

Gili


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.