-->
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.  [ 3 posts ] 
Author Message
 Post subject: SchemaExportTask cannot read document from file.
PostPosted: Fri Jan 27, 2006 5:15 pm 
Beginner
Beginner

Joined: Fri Jun 10, 2005 2:22 pm
Posts: 27
I'm upgrading from Hibernate 3.0.5 to Hibernate 3.1 and am unable to generate my schema script. The SchemaExportTask prints an error:

Schema text failed: Could not read mapping document from file: /home/dhicks/workspace/ems/build/webapp/WEB-INF/classes/Event.hbm.xml

There is no other text to the message. This is, of course, in an Ant build script. This also all worked fine with Hibernate 3.0.5.

Any clues to help out? Is there some kind of debugging I can turn on that will show me more of what might be wrong?

Thanks,
Dave


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 30, 2006 11:51 am 
Beginner
Beginner

Joined: Fri Jun 10, 2005 2:22 pm
Posts: 27
Well, I finally figured it out.

There were a few places in the mapping document where apparently I had incorrect settings. It's unfortunate that the schema generator doesn't indicate these errors in any way.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 30, 2006 12:29 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
ant -verbose and you get it.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.