CNemo7539
06-22-2007, 09:28 PM
Hi All!
I have following config:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="spring">
<section name="context" type="Spring.Context.Support.ContextHandler, Spring.Core"/>
<section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core"/>
<section name="parsers" type="Spring.Context.Support.ConfigParsersSectionHandler , Spring.Core"/>
</sectionGroup>
</configSections>
<spring>
<context>
<resource uri="config://spring/objects"/>
<resource uri="file://dbProviders.xml"/>
</context>
<parsers>
<parser namespace="http://www.springframework.net/database"
type="Spring.Data.DatabaseConfigParser, Spring.Data"
schemaLocation="assembly://Spring.Data/Spring.Data/spring-database.xsd" />
</parsers>
<objects xmlns="http://www.springframework.net"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:v ="http://www.springframework.net/validation"
xmlns:tx="http://www.springframework.net/schema/tx"
xmlns:db="http://www.springframework.net/database"
xsi:schemaLocation=" http://www.springframework.net http://www.springframework.net/schema/objects/spring-objects.xsd
http://www.springframework.net/schema/tx http://www.springframework.net/schema/tx/spring-tx-1.1.xsd
http://www.springframework.net/database http://www.springframework.net/schema/db/spring-database.xsd">
<db:dbProvider id="DbProvider" provider="DB2Provider" connectionString="database=pcow"/>
<object id="transactionManager" type="Spring.Data.AdoPlatformTransactionManager, Spring.Data">
<property name="DbProvider" ref="DbProvider"/>
</object>
<object id="adoTemplate" type="Spring.Data.AdoTemplate, Spring.Data">
<property name="DbProvider" ref="DbProvider"/>
</object>
<object id="StateInformationReader" type="SafeAuto.Framework.DataAccess.StateInformationRead er, SafeAuto.Framework.DataAccess">
<property name="Template" ref="adoTemplate"/>
</object>
<object id="StateInfo" type="SafeAuto.Framework.Business.StateInformation, SafeAuto.Framework.Business">
<property name="Reader" ref="StateInformationReader"/>
</object>
<tx:attribute-driven/>
</objects>
</spring>
</configuration>
When I run app it throws exception "The 'http://www.springframework.net/schema/tx:attribute-driven' element is not declared."
What I'm doinf wrong?
I have following config:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="spring">
<section name="context" type="Spring.Context.Support.ContextHandler, Spring.Core"/>
<section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core"/>
<section name="parsers" type="Spring.Context.Support.ConfigParsersSectionHandler , Spring.Core"/>
</sectionGroup>
</configSections>
<spring>
<context>
<resource uri="config://spring/objects"/>
<resource uri="file://dbProviders.xml"/>
</context>
<parsers>
<parser namespace="http://www.springframework.net/database"
type="Spring.Data.DatabaseConfigParser, Spring.Data"
schemaLocation="assembly://Spring.Data/Spring.Data/spring-database.xsd" />
</parsers>
<objects xmlns="http://www.springframework.net"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:v ="http://www.springframework.net/validation"
xmlns:tx="http://www.springframework.net/schema/tx"
xmlns:db="http://www.springframework.net/database"
xsi:schemaLocation=" http://www.springframework.net http://www.springframework.net/schema/objects/spring-objects.xsd
http://www.springframework.net/schema/tx http://www.springframework.net/schema/tx/spring-tx-1.1.xsd
http://www.springframework.net/database http://www.springframework.net/schema/db/spring-database.xsd">
<db:dbProvider id="DbProvider" provider="DB2Provider" connectionString="database=pcow"/>
<object id="transactionManager" type="Spring.Data.AdoPlatformTransactionManager, Spring.Data">
<property name="DbProvider" ref="DbProvider"/>
</object>
<object id="adoTemplate" type="Spring.Data.AdoTemplate, Spring.Data">
<property name="DbProvider" ref="DbProvider"/>
</object>
<object id="StateInformationReader" type="SafeAuto.Framework.DataAccess.StateInformationRead er, SafeAuto.Framework.DataAccess">
<property name="Template" ref="adoTemplate"/>
</object>
<object id="StateInfo" type="SafeAuto.Framework.Business.StateInformation, SafeAuto.Framework.Business">
<property name="Reader" ref="StateInformationReader"/>
</object>
<tx:attribute-driven/>
</objects>
</spring>
</configuration>
When I run app it throws exception "The 'http://www.springframework.net/schema/tx:attribute-driven' element is not declared."
What I'm doinf wrong?