RobertClayton
12-12-2006, 12:23 AM
Hi,
I am trying to use the Spring Hibernate module within a Web application.
I am using the latest nightly build of the Spring.Data.NHibernate ( NHibernate-20061128-0224 ). There appeared to be no example web application in the build so I constructed one based on the SpringAir Spring.NET 1.1 Preview 3 and Spring.Northwind examples ( replacing Spring ADO types with the equivilent Spring NHibernate base classes etc )
I am referencing the core assemblies ( Spring.Core, Spring.Web etc ) from NHibernate-20061128-0224 ( not Preview 3 ).
I get the following exception.
Field not found:'Spring.Objects.Factory.Xml.DefaultXmlObject DefinitionParser.log'
the full stack trace is below
-------------------------------------------------------------
[MissingFieldException: Field not found: 'Spring.Objects.Factory.Xml.DefaultXmlObjectDefini tionParser.log'.]
Spring.Objects.Factory.Xml.WebObjectDefinitionPars er.GetScope(String value) +0
Spring.Objects.Factory.Xml.WebObjectDefinitionPars er.ParseObjectDefinition(XmlElement element, String id, XmlResourceReader reader) +169
Spring.Objects.Factory.Xml.DefaultXmlObjectDefinit ionParser.ParseObjectDefinition(XmlElement element, XmlResourceReader parser) +284
Spring.Objects.Factory.Xml.DefaultXmlObjectDefinit ionParser.RegisterObjectDefinition(XmlElement element, XmlResourceReader parser) +64
Spring.Objects.Factory.Xml.DefaultXmlObjectDefinit ionParser.ParseElement(XmlElement element, XmlResourceReader parser) +171
Spring.Objects.Factory.Xml.XmlResourceReader.Regis terObjectDefinitions(XmlElement root) +371
Spring.Objects.Factory.Xml.XmlObjectDefinitionRead er.RegisterObjectDefinitions(XmlElement objectsElement, IResource resource) +74
Spring.Objects.Factory.Xml.XmlObjectDefinitionRead er.LoadObjectDefinitions(IResource resource) +540
Spring.Context.Support.AbstractXmlApplicationConte xt.LoadObjectDefinitions(XmlObjectDefinitionReader objectDefinitionReader) +156
Spring.Context.Support.AbstractXmlApplicationConte xt.RefreshObjectFactory() +128
Spring.Context.Support.AbstractApplicationContext. Refresh() +265
Spring.Context.Support.WebApplicationContext..ctor (String name, Boolean caseSensitive, IApplicationContext parentContext, String[] configurationLocations) +96
Spring.Context.Support.WebApplicationContext..ctor (String name, Boolean caseSensitive, String[] configurationLocations) +55
I am not sure how to proceed, any guidance is greatly appreciated. If I need to provide more information please let me know.
Thanks
Rob Clayton
I am trying to use the Spring Hibernate module within a Web application.
I am using the latest nightly build of the Spring.Data.NHibernate ( NHibernate-20061128-0224 ). There appeared to be no example web application in the build so I constructed one based on the SpringAir Spring.NET 1.1 Preview 3 and Spring.Northwind examples ( replacing Spring ADO types with the equivilent Spring NHibernate base classes etc )
I am referencing the core assemblies ( Spring.Core, Spring.Web etc ) from NHibernate-20061128-0224 ( not Preview 3 ).
I get the following exception.
Field not found:'Spring.Objects.Factory.Xml.DefaultXmlObject DefinitionParser.log'
the full stack trace is below
-------------------------------------------------------------
[MissingFieldException: Field not found: 'Spring.Objects.Factory.Xml.DefaultXmlObjectDefini tionParser.log'.]
Spring.Objects.Factory.Xml.WebObjectDefinitionPars er.GetScope(String value) +0
Spring.Objects.Factory.Xml.WebObjectDefinitionPars er.ParseObjectDefinition(XmlElement element, String id, XmlResourceReader reader) +169
Spring.Objects.Factory.Xml.DefaultXmlObjectDefinit ionParser.ParseObjectDefinition(XmlElement element, XmlResourceReader parser) +284
Spring.Objects.Factory.Xml.DefaultXmlObjectDefinit ionParser.RegisterObjectDefinition(XmlElement element, XmlResourceReader parser) +64
Spring.Objects.Factory.Xml.DefaultXmlObjectDefinit ionParser.ParseElement(XmlElement element, XmlResourceReader parser) +171
Spring.Objects.Factory.Xml.XmlResourceReader.Regis terObjectDefinitions(XmlElement root) +371
Spring.Objects.Factory.Xml.XmlObjectDefinitionRead er.RegisterObjectDefinitions(XmlElement objectsElement, IResource resource) +74
Spring.Objects.Factory.Xml.XmlObjectDefinitionRead er.LoadObjectDefinitions(IResource resource) +540
Spring.Context.Support.AbstractXmlApplicationConte xt.LoadObjectDefinitions(XmlObjectDefinitionReader objectDefinitionReader) +156
Spring.Context.Support.AbstractXmlApplicationConte xt.RefreshObjectFactory() +128
Spring.Context.Support.AbstractApplicationContext. Refresh() +265
Spring.Context.Support.WebApplicationContext..ctor (String name, Boolean caseSensitive, IApplicationContext parentContext, String[] configurationLocations) +96
Spring.Context.Support.WebApplicationContext..ctor (String name, Boolean caseSensitive, String[] configurationLocations) +55
I am not sure how to proceed, any guidance is greatly appreciated. If I need to provide more information please let me know.
Thanks
Rob Clayton