PropellerheadNYC
11-28-2006, 11:31 PM
Hi All,
I'm trying to get started with Spring.Net and NHibernate, but I'm running into some difficulties. I'm starting with the NHibernate Spring integration build from last night (Spring.Data.NHibernate-20061128-0224).
I attempted to build the examples by:
1) removing the dead references to the core Spring.Net projects
2) replacing the missing dll references with refs to the libs in the lib/Net/2.0 directory (mostly Spring.Core, Spring.Data, and Spring.Aop)
3) the xcopy command in the Spring.Northwind.IntegrationTests project was failing due to the build actually happening in a different location. As a workaround, I just manually copied the Spring.Northwind.IntegrationTests.dll.config file to the build location since I knew I wasn't going to mess with it.
4) I removed the reference to the Spring.Data.NHibernate.Integration.Tests.dll.confi g file since it was nowhere to be found.
Once I did all that, the project appeared to build fine.
Next step, running the nunit tests. Using nunitGUI, I'm getting the following exception when running the Spring.Northwind.Integrationtests:
Spring.Northwind.IntegrationTests.FulfillmentServi ceTests.ProcessCustomerViaTxProxyFactoryObject : System.Configuration.ConfigurationErrorsException : Error instantiating context 'spring.root'.
----> Spring.Objects.FatalObjectException : Cannot instantiate Type [Spring.Context.Support.XmlApplicationContext] using ctor [Void .ctor(System.String, Boolean, System.String[])] : 'Exception has been thrown by the target of an invocation.'
----> System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
----> Spring.Objects.Factory.ObjectDefinitionStoreExcept ion : Error registering object with name 'DbProvider' defined in 'file [C:\Documents and Settings\salcoff.TRADING\My Documents\Misc Binaries\Spring.Data.NHibernate-20061128-0224\examples\Spring\Spring.Northwind\build\VS.Net .2005\Spring.Northwind.IntegrationTests\Debug\Dao. xml]' : Object class [Spring.Data.Support.SqlProvider, Spring.Data] not found.
<object id="DbProvider" type="Spring.Data.Support.SqlProvider, Spring.Data" xmlns="http://www.springframework.net"><property name="ConnectionString" value="Data Source=${db.datasource};Database=${db.database};Us er ID=${db.user};Password=${db.password};Tru...
----> System.TypeLoadException : Could not load type from string value 'Spring.Data.Support.SqlProvider, Spring.Data'.
----> System.TypeLoadException : Could not load type 'Spring.Data.Support.SqlProvider' from assembly 'Spring.Data, Version=2.1.1.0, Culture=neutral, PublicKeyToken=null'.
Which seems to indicate that the class SqlProvider is not found in the Spring.Data dll... Indeed, this class is not in the bundled Spring.Data dll.
I checked the nightly builds of the latest Spring.Net and this class is not included in the expected src directory or the dll, but it shows up in Fisheye.
Anyone know what's going on here? :confused:
Thanks,
Sam
I'm trying to get started with Spring.Net and NHibernate, but I'm running into some difficulties. I'm starting with the NHibernate Spring integration build from last night (Spring.Data.NHibernate-20061128-0224).
I attempted to build the examples by:
1) removing the dead references to the core Spring.Net projects
2) replacing the missing dll references with refs to the libs in the lib/Net/2.0 directory (mostly Spring.Core, Spring.Data, and Spring.Aop)
3) the xcopy command in the Spring.Northwind.IntegrationTests project was failing due to the build actually happening in a different location. As a workaround, I just manually copied the Spring.Northwind.IntegrationTests.dll.config file to the build location since I knew I wasn't going to mess with it.
4) I removed the reference to the Spring.Data.NHibernate.Integration.Tests.dll.confi g file since it was nowhere to be found.
Once I did all that, the project appeared to build fine.
Next step, running the nunit tests. Using nunitGUI, I'm getting the following exception when running the Spring.Northwind.Integrationtests:
Spring.Northwind.IntegrationTests.FulfillmentServi ceTests.ProcessCustomerViaTxProxyFactoryObject : System.Configuration.ConfigurationErrorsException : Error instantiating context 'spring.root'.
----> Spring.Objects.FatalObjectException : Cannot instantiate Type [Spring.Context.Support.XmlApplicationContext] using ctor [Void .ctor(System.String, Boolean, System.String[])] : 'Exception has been thrown by the target of an invocation.'
----> System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
----> Spring.Objects.Factory.ObjectDefinitionStoreExcept ion : Error registering object with name 'DbProvider' defined in 'file [C:\Documents and Settings\salcoff.TRADING\My Documents\Misc Binaries\Spring.Data.NHibernate-20061128-0224\examples\Spring\Spring.Northwind\build\VS.Net .2005\Spring.Northwind.IntegrationTests\Debug\Dao. xml]' : Object class [Spring.Data.Support.SqlProvider, Spring.Data] not found.
<object id="DbProvider" type="Spring.Data.Support.SqlProvider, Spring.Data" xmlns="http://www.springframework.net"><property name="ConnectionString" value="Data Source=${db.datasource};Database=${db.database};Us er ID=${db.user};Password=${db.password};Tru...
----> System.TypeLoadException : Could not load type from string value 'Spring.Data.Support.SqlProvider, Spring.Data'.
----> System.TypeLoadException : Could not load type 'Spring.Data.Support.SqlProvider' from assembly 'Spring.Data, Version=2.1.1.0, Culture=neutral, PublicKeyToken=null'.
Which seems to indicate that the class SqlProvider is not found in the Spring.Data dll... Indeed, this class is not in the bundled Spring.Data dll.
I checked the nightly builds of the latest Spring.Net and this class is not included in the expected src directory or the dll, but it shows up in Fisheye.
Anyone know what's going on here? :confused:
Thanks,
Sam