-->
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.  [ 5 posts ] 
Author Message
 Post subject: org.hibernate.MappingException: Error reading resource:
PostPosted: Tue Aug 01, 2006 3:20 pm 
Newbie

Joined: Tue Aug 01, 2006 3:10 pm
Posts: 7
I have searched many forums for the answer to this problem.
I keep getting the following error :
org.hibernate.MappingException: Error reading resource:

this is my mapping file:

<?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="src.coniferworkbench.DBSequenceRead"
table="SEQUENCE">
<id name="sequence_pk" type="String" column="SEQUENCE_PK">
<generator class="native" />
</id>

<property name="seq_id">
<column name="seq_id" />
</property>
[...more properties...]

</class>
</hibernate-mapping>


any assitance or pointing to assitance would be greatly appreciated.

thanks in advance!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 01, 2006 4:34 pm 
Expert
Expert

Joined: Thu Sep 22, 2005 10:29 am
Posts: 285
Location: Almassera/Valencia/Spain/EU/Earth/Solar system/Milky Way/Local Group/Virgo Supercluster
post the full stack trace


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 01, 2006 6:00 pm 
Newbie

Joined: Tue Aug 01, 2006 3:10 pm
Posts: 7
pepelnm wrote:
post the full stack trace


for some reason that is the only message in the stack trace. i believe it is because the error occurs while reading to initialize the session.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 01, 2006 6:19 pm 
Expert
Expert

Joined: Thu Sep 22, 2005 10:29 am
Posts: 285
Location: Almassera/Valencia/Spain/EU/Earth/Solar system/Milky Way/Local Group/Virgo Supercluster
post the full line
org.hibernate.MappingException: Error reading resource:
but which resource?

post your hibernate.cfg.xml


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 01, 2006 8:09 pm 
Newbie

Joined: Tue Aug 01, 2006 3:10 pm
Posts: 7
it was the resource that i originally posted (the hibernate-mapping file). i just let 'myeclipse' generate new classes and now it doesnt produce that error. now i get a database foreign-key error; hopefully something that can be easily and quickly resolved.

thank you for your consideration, pepelnm.


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