-->
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: Want to load *.hbm.xml file in memory
PostPosted: Tue Jun 10, 2008 11:36 am 
Newbie

Joined: Tue Jun 10, 2008 11:29 am
Posts: 1
Hi,
I want to load *.hbm.xml file in memory to check for the file programmatically.

I got hibernate-mapping-3.0.xsd and tried to generate code for objects by JAXB using command
xjc hibernate-mapping-3.0.xsd

I am getting the following error.
parsing a schema...
[ERROR] Property "Type" is already defined.
line 791 of file:/F:/Java/jaxb/hibernate-mapping-3.0.xsd

[ERROR] The following location is relevant to the above error
line 800 of file:/F:/Java/jaxb/hibernate-mapping-3.0.xsd
...
...
...
...
Failed to parse a schema.

Could anybody help me out.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 10, 2008 8:02 pm 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
Here is a good discussion of the problem you are having. This may shed some light on the topic:

https://jaxb.dev.java.net/guide/Dealing_with_errors.html

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


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.