-->
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: Namespace prefix 'hbm' is not defined.
PostPosted: Thu Jun 21, 2007 2:14 pm 
Newbie

Joined: Thu Jun 21, 2007 1:33 pm
Posts: 2
I have noticed that when I am developing locally NHibernate works without an error, but when I deploy the ASP.NET application to other environments I will get the error: Namespace prefix 'hbm' is not defined.

It changes from various mapping files here is the stack trace:

[XPathException: Namespace prefix 'hbm' is not defined.]
MS.Internal.Xml.XPath.UndefinedXsltContext.LookupNamespace(String prefix) +1508507
MS.Internal.Xml.XPath.BaseAxisQuery.SetXsltContext(XsltContext context) +15
MS.Internal.Xml.XPath.CompiledXpathExpr.SetContext(XmlNamespaceManager nsManager) +58
System.Xml.XmlNode.SelectNodes(String xpath, XmlNamespaceManager nsmgr) +47
NHibernate.Cfg.HbmBinder.GetMetas(XmlNode node) +73
NHibernate.Cfg.HbmBinder.BindProperty(XmlNode node, Property property, Mappings mappings) +836
NHibernate.Cfg.HbmBinder.CreateProperty(IValue value, String propertyName, Type parentClass, XmlNode subnode, Mappings mappings) +323
NHibernate.Cfg.HbmBinder.PropertiesFromXML(XmlNode node, PersistentClass model, Mappings mappings) +1211
NHibernate.Cfg.HbmBinder.BindRootClass(XmlNode node, RootClass model, Mappings mappings) +2404
NHibernate.Cfg.HbmBinder.BindRoot(XmlDocument doc, Mappings mappings) +392
NHibernate.Cfg.Configuration.AddValidatedDocument(XmlDocument doc, String name) +55

Has anyone received this error before?

Thanks,
Andy


Top
 Profile  
 
 Post subject: Solved
PostPosted: Thu Jun 21, 2007 4:18 pm 
Newbie

Joined: Thu Jun 21, 2007 1:33 pm
Posts: 2
It turned out I didn't have my singleton configured correctly which was causing it to rebuild each data call.

Andy


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 04, 2009 11:39 am 
Newbie

Joined: Tue Sep 02, 2008 6:56 pm
Posts: 2
Andy, can you explain little more what you meant "I didn't have my singleton configured correctly" we have the same problem. When we run website locally we not have problem but when make deploy to production server we received this error.


Top
 Profile  
 
 Post subject: Re: Namespace prefix 'hbm' is not defined.
PostPosted: Thu Feb 03, 2011 5:26 am 
Newbie

Joined: Thu Feb 03, 2011 5:18 am
Posts: 1
Hello,
We are currently experiencing the same error (Namespace hbm is not defined) in several websites. Does anyone know the cause of this problem?
Andy, I will also appreciate it if you explain what you meant by "i didn' t have my singleton configured correctly" and how you implement it to solve this problem.
Thanks,
Mayi


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.