-->
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.  [ 9 posts ] 
Author Message
 Post subject: Could not read mappings from resource: *.hbm.xml
PostPosted: Sun Dec 04, 2005 5:52 pm 
Beginner
Beginner

Joined: Sun Dec 04, 2005 4:28 pm
Posts: 24
Here is my source folders:

quickstart
|
|__WEB-INF
|
|__classes
|__hibernate.cfg.xml, FileToSave.hbm.xml, Upload.java, FileToSave.java
|
|__lib
|__(hibernate3.jar, and its dependents)

org.hibernate.MappingException: Could not read mappings from resource: FileToSave.hbm.xml

PLEASE HELP !!!

I don't have any classpath. What is the classpath for this running under Tomcat??

Does this got to do with location of hibernate3.jar ???


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 04, 2005 8:52 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
you're going to get in trouble if you double post ;)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 05, 2005 12:24 am 
Newbie

Joined: Fri Dec 02, 2005 8:10 am
Posts: 8
Insufficient information. Only the directory structure is not sufficient to reply to this. Tomcat does have all files in the classes folder under its classpath. Post your mapping part from hibernate configuration file.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 05, 2005 3:27 am 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
his post is actually part of a different post.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 05, 2005 5:44 am 
Newbie

Joined: Mon Dec 05, 2005 2:30 am
Posts: 3
You should probably post the rest of the output you get, but from my limited experience with Hibernate, it's more likely to be a parsing or other error of some sorts in your mapping file rather than Hibernate not being able to read your file.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 05, 2005 5:47 am 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
... and this is why double posting is a bad thing.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 05, 2005 7:47 am 
Newbie

Joined: Fri Dec 02, 2005 8:20 am
Posts: 4
You could try to validate the contents of FileToSave.hbm.xml against the dtd (http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd).


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 05, 2005 12:26 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
alright everyone. we have two groups of people now in two different places trying to solve the same problem. http://forum.hibernate.org/viewtopic.ph ... highlight=


Top
 Profile  
 
 Post subject: Work http://hibernate.sourceforge.net/hibernate-mapping-3
PostPosted: Tue Dec 06, 2005 1:07 am 
Beginner
Beginner

Joined: Sun Dec 04, 2005 4:28 pm
Posts: 24
steinar@bluenine.se wrote:
You could try to validate the contents of FileToSave.hbm.xml against the dtd (http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd).



This works.


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