[ https://issues.apache.org/jira/browse/IBATIS-517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12705783#action_12705783 ]
Sudhakar Kanagarajan commented on IBATIS-517: --------------------------------------------- I am also facing the same problem. Is there a plan to fix this issue? > can not use mappingLocations in > org.springframework.orm.ibatis.SqlMapClientFactoryBean > -------------------------------------------------------------------------------------- > > Key: IBATIS-517 > URL: https://issues.apache.org/jira/browse/IBATIS-517 > Project: iBatis for Java > Issue Type: Bug > Affects Versions: 2.3.2 > Environment: windows xp sp2 eng, sun jdk 1.6.0, resin 3.1.4, spring > 2.5.4, struts2 2.1.1 > Reporter: sinosaga > > in spring 2.5.4 we can use mappingLocations in > org.springframework.orm.ibatis.SqlMapClientFactoryBean like below: > spring-ibatis.xml: > <bean id="sqlMapClient" > class="org.springframework.orm.ibatis.SqlMapClientFactoryBean"> > <property name="dataSource" ref="dataSource"/> > <property name="configLocation" value="/WEB-INF/sqlmap-config.xml"/> > <property name="mappingLocations" value="classpath*:**/*.sqlmap.xml"/> > <!--<property name="lobHandler" ref="lobHandler"/>--> > <!--<property name="useTransactionAwareDataSource" value="true"/>--> > </bean> > sqlmap-config.xml: > <sqlMapConfig> > <settings cacheModelsEnabled="true" > lazyLoadingEnabled="true" > enhancementEnabled="true" > useStatementNamespaces="true" > /> > </sqlMapConfig> > but the resin report: > org.xml.sax.SAXParseException: The content of element type "sqlMapConfig" > is incomplete, it must match > "(properties?,settings?,resultObjectFactory?,typeAlias*,typeHandler*,transactionManager?,sqlMap+)+". > I suggest that we can change the > http://ibatis.apache.org/dtd/sql-map-config-2.dtd from > <!ELEMENT sqlMapConfig (properties?, settings?, resultObjectFactory?, > typeAlias*, typeHandler*, transactionManager?, sqlMap+)+> > to > <!ELEMENT sqlMapConfig (properties?, settings?, resultObjectFactory?, > typeAlias*, typeHandler*, transactionManager?, sqlMap*)+> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.