-->
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.  [ 1 post ] 
Author Message
 Post subject: Could not configure datastore from file
PostPosted: Thu Sep 29, 2005 4:10 pm 
Newbie

Joined: Thu Sep 29, 2005 3:43 pm
Posts: 1
I am trying to obtain URL from the hibernate configuration file(connectMapping.xml) on web logic 8.1 , it is there in the .war file and it keep throwing me excpetion below,but when i debugged the code i can see the mapping file and the path though, how come it's not able to find it.Is it finding it difficult to point to right path since it is in .war file?. i have no idea what's going on with it.Please help

Thanks in advance

Code

URL url = getClass().getClassLoader().getResource(getMappingFile());
try {
this.cfg.addFile(url.getFile());
}
catch (Exception e) {
log.error("Error adding hibernate file with url"
+ url.toString(), e);
throw e;
}


Error
org.dom4j.DocumentException: C:\bea\user_projects\myserver\.wlnotdelete\extract\myserver_TEST_Portal_test-portal\test-portal.war!\WEB-INF\classes\connectMapping.xml (The system cannot find the path specified) Nested exception:

Error adding hibernate file with urlzip:C:/bea/user_projects/myserver/.wlnotdelete/extract/myserver_TEST_Portal_test-portal/test-portal.war!/WEB-INF/classes/connectMapping.xml
org.hibernate.MappingException: Could not configure datastore from file: C:/bea/user_projects/myserver/.wlnotdelete/extract/myserver_TEST_Portal_test-portal/test-portal.war!/WEB-INF/classes/connectMapping.xml


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.