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.  [ 4 posts ] 
Author Message
 Post subject: eclipse app, hibernate, and the network
PostPosted: Fri Aug 26, 2005 3:36 pm 
Newbie

Joined: Fri Aug 26, 2005 3:27 pm
Posts: 1
I have an Eclipse RCP app using Hibernate which works fine when attached to the network. However when I run the code on a machine that is disconnected from the network, I get the following message indicating that the hbm.xml file for my class cannot be found:

org.hibernate.MappingException: Error reading resource: myclass.hbm.xml

I have read the posts suggesting changing the dtd header, upgrading the parser version, and playing with the classloader without success. I'd appreciate any suggestions on how to resolve this issue. Thanks,

Dave


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 26, 2005 4:17 pm 
Expert
Expert

Joined: Wed Apr 06, 2005 5:03 pm
Posts: 273
Location: Salt Lake City, Utah, USA
post the full exception stack trace


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 26, 2005 11:11 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
You have old xml-apis.jar and xerces-x.x.x.jar - try with last hibernate version or delete
cml-apis and xerses from library path

What is your hibernate version ?


Top
 Profile  
 
 Post subject: Re: eclipse app, hibernate, and the network
PostPosted: Sat Aug 27, 2005 3:57 am 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
neuralnet wrote:
I have read the posts suggesting changing the dtd header


Do you have <!DOCTYPE hibernate-mapping SYSTEM "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> at the top of the mappings and main configuration file? Are you using Hibernate 3?

If your answers are no and yes, your app is probably failing because it is going to the Internet in search of the version 2 DTD.


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