-->
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: invalid mapping exception
PostPosted: Sun Apr 29, 2007 12:51 pm 
Newbie

Joined: Sun Apr 29, 2007 12:10 pm
Posts: 6
Location: vijayawada
hi,
I need help regarding hibernate
while I 'm going thr' console application using hibernate-3.2 I'm getting
org.hibernate.InvalidMappingException :Could not parse mapping document from resource player.hbm.xml

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate-mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0 dtd">
<hibernate-mapping>
<class name="player"
table="playertable">

<id name="id" type="int" column="ID"
unsaved-value="0">
<generator class="increment"/>
</id>

<property name="name" type="string">
<column name="name"/>
</property>
<property name="place" type="string">
<column name="place"/>
</property>
</class>

</hibernate-mapping>


It's urgent.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 29, 2007 4:08 pm 
Senior
Senior

Joined: Sat Apr 21, 2007 11:01 pm
Posts: 144
It probably can't find your hbm.xml file on the class path. Did you write that file your self or use revenge? Can you paste the whole log of your application startup.

_________________
Everytime you get an answer to your question without giving credit; god kills a kitten. :(


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.