PDA

View Full Version : Field not found: 'DefaultXmlObjectDefinitionParser.log'


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

blega
12-12-2006, 02:53 PM
Hello,

I too use Spring+Nhibernate.
And I jumped on the 1.1 preview 3.
But as a matter of fact, I have to go back to the
old set of assemblies for my Spring+Nhibernate stack.

As far as I understand, the build of Nhibernate is broken since
01-12-06 for the same reason as yours : pb with Common.Logging 2.1.0.0
and Common.Logging 1.1.0.2

For more info see the continuous integration site (http://ciweb.codestreet.com:88/ccnet/default.aspx?_action_ViewBuildReport=true&server=ciweb&project=Spring.Data.NHibernate&build=log20061210131528.xml)

The truth is the latest version of Spring.Data.Nhibernate in CVS
(20061128-0224 and onwards) can't work with the Spring.Data shipped with 1.1preview3 because of
a new class Spring.Ado.Support.IAdoExceptionTranslator recently added
in Spring.Data.

Spring.Data has moved on, I guess.

Or maybe I missed something ?

Actually this doesn't fix your problem ;)
Just, my 2 cents.

Bertrand.

Mark Pollack
12-12-2006, 04:48 PM
Hi,
I will put the preview 3 .dlls into the build for nhibernate and other integration projects and resolve the issues (probably minor) as a result of the update. Sorry for the confusion. I'll post back here when it is done.
Mark

Mark Pollack
12-13-2006, 08:23 PM
Hi,

Ok...lets start from a clean slate....pick up the "1213-1510" dated .zip file from the download page (http://www.springframework.net/downloads/Spring.Data.NHibernate/) and let me know if you still have any issues. The .dlls used are the PR3 with one additional change - In the PR3 release I did not properly move the 'ORM' related exceptions in Spring.Dao.Orm to Spring.Dao. This is now fixed.

Thanks for your patience.

Cheers,
Mark

Mark Pollack
12-13-2006, 08:31 PM
Hi Rob,

If you manage to get SpringAir working with NHibernate can you contribute the code base, we can incorporate it into the example. That being said, SpringAir needs to have a bit more complex functionality to truely exercise a data layer. It is now simply performs 'gets' without a transactional context - as I'm sure you already know.

Cheers,
Mark