-->
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: NHibernate.Search - Could not find the dialect in the config
PostPosted: Fri Nov 14, 2008 4:16 am 
Newbie

Joined: Thu Mar 06, 2008 5:57 am
Posts: 7
Hi,

[b]Hibernate.Search version:[/b] 651

I'm simply trying to run the NHibernate.Search.Tests from the trunk without altering the code and I get:

[b]Full stack trace of any exception that occurs:[/b]

ERROR [TestRunnerThread] Configuration [(null)]- Could not compile the mapping document: NHibernate.Search.Tests.Analyzer.MyEntity.hbm.xml
NHibernate.MappingException: Could not compile the mapping document: NHibernate.Search.Tests.Analyzer.MyEntity.hbm.xml ---> System.InvalidOperationException: Could not find the dialect in the configuration
at NHibernate.Dialect.Dialect.GetDialect(IDictionary`2 props)
at NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc)
--- End of inner exception stack trace ---

ERROR [TestRunnerThread] TestCase [(null)]- Error while setting up the test fixture
NHibernate.MappingException: Could not compile the mapping document: NHibernate.Search.Tests.Analyzer.MyEntity.hbm.xml ---> System.InvalidOperationException: Could not find the dialect in the configuration
at NHibernate.Dialect.Dialect.GetDialect(IDictionary`2 props)
at NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc)
--- End of inner exception stack trace ---
at NHibernate.Cfg.Configuration.LogAndThrow(Exception exception)
at NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc)
at NHibernate.Cfg.Configuration.ProcessMappingsQueue()
at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream, String name)
at NHibernate.Cfg.Configuration.AddResource(String path, Assembly assembly)
at NHibernate.Test.TestCase.Configure() in src\NHibernate.Search\src\NHibernate.Search.Tests\TestCase.cs:line 190
at NHibernate.Test.TestCase.TestFixtureSetUp() in src\NHibernate.Search\src\NHibernate.Search.Tests\TestCase.cs:line 60

Thoughts?

Sincerely,
-Mihai


Top
 Profile  
 
 Post subject: Re: NHibernate.Search - Could not find the dialect in the config
PostPosted: Tue Jun 16, 2009 5:13 am 
Newbie

Joined: Thu Mar 06, 2008 5:57 am
Posts: 7
Turns out I was missing the "hibernate.cfg.xml" file. Case closed.


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.