-->
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: Resource not found
PostPosted: Fri Jan 25, 2008 6:31 am 
Beginner
Beginner

Joined: Wed Mar 14, 2007 4:29 am
Posts: 33
Hi,

i'having the exception: "resource not found Mapping\user.hbm.xml" while loading this configuration file:

<?xml version="1.0" encoding="utf-8" ?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" >
<session-factory name="SessionName">
<property name="dialect">NHibernate.Dialect.Oracle9Dialect</property>
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.driver_class">NHibernate.Driver.OracleClientDriver</property>
<property name="connection.connection_string">Data Source=**;User ID=**;Password=**;</property>
<property name="connection.isolation">ReadCommitted</property>
<property name="connection.show_sql">true</property>
<!-- HBM Mapping Files -->
<mapping assembly="MyAssembly" />
<mapping resource="Mapping/user.hbm.xml" assembly="MyAssembly"/>
</session-factory>
</hibernate-configuration>

Do you have an idea ? I don't understand why it doesn't find the resource beause the Mapping directory is in the same directory than the .exe
If i specify <mapping resource="C:\ ....\Mapping\user.hbm.xml" it's the same !

:/


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 26, 2008 1:17 am 
Regular
Regular

Joined: Tue Dec 25, 2007 3:41 pm
Posts: 57
Location: Argentina
Did you set the file as embedded resource ?

_________________
Dario Quintana


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.