-->
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: beta 3 configuration error
PostPosted: Wed Jan 10, 2007 5:45 pm 
Beginner
Beginner

Joined: Wed Jul 05, 2006 12:45 pm
Posts: 21
I installed and tried running the JUST released beta 3, and ran into an issue. My configuration worked under beta 2, but now there is an error thrown when the BuildSessionFactory() is called:

The source of the error is in Configuration.cs (DoConfigure method):

Code:
XmlNode sfNode = doc.DocumentElement.SelectSingleNode( "//" + CfgNamespacePrefix + ":session-factory", cfgNamespaceMgr );

if( sfNode == null )
{
     throw new MappingException( "<session-factory> element was not found in the configuration file." );
}


My configuration is in my App.config (or web.config), and is as follows:

Code:
   <hibernate-configuration xmlns="urn:nhibernate-configuration-2.0">
      <session-factory>
         <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
         <property name="dialect">NHibernate.Dialect.MsSql2005Dialect</property>
         <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
         <property name="connection.connection_string">xxx</property>
         <property name="connection.isolation">ReadCommitted</property>
         <property name="command_timeout">0</property>
         <property name="show_sql">true</property>
         <property name="command_timeout">0</property>
         <!-- Mapping files -->
         <mapping assembly="DFWHC.GroupOne.GoRes"/>
      </session-factory>
   </hibernate-configuration>


Has anyone run into this issue with beta 3, or sees anything wrong with my config?

Thank you.


Top
 Profile  
 
 Post subject: 2.2
PostPosted: Wed Jan 10, 2007 9:48 pm 
Beginner
Beginner

Joined: Mon Jan 08, 2007 11:59 pm
Posts: 31
I think the xmlns should read

urn:nhibernate-configuration-2.2

Regards
Job Samuel


Top
 Profile  
 
 Post subject: 2.2
PostPosted: Wed Jan 10, 2007 9:49 pm 
Beginner
Beginner

Joined: Mon Jan 08, 2007 11:59 pm
Posts: 31
I think the xmlns should read

urn:nhibernate-configuration-2.2

Regards
Job Samuel


Top
 Profile  
 
 Post subject: 2.2
PostPosted: Wed Jan 10, 2007 9:49 pm 
Beginner
Beginner

Joined: Mon Jan 08, 2007 11:59 pm
Posts: 31
I think the xmlns should read

urn:nhibernate-configuration-2.2

Regards
Job Samuel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 11, 2007 12:40 pm 
Beginner
Beginner

Joined: Wed Jul 05, 2006 12:45 pm
Posts: 21
Job,

Thanks, that got rid of the error.

For anyone else's benefit, i also had to change my mapping documents' xmlns reference as well:

Code:
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" ...


(note: 2.2)


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.