BeanCreation Excepton Plz help
Dear all
i am traying //this.npjt = new NamedParameterJdbcTemplate(dataSource);
with context.xml
<bean id="npjt" class="org.springframework.jdbc.core.namedparam.Na medParameterJdbcTemplate">
<constructor-arg ref="portailCarburantDataSource"/>
</bean>
<bean id="commonJdbcTemplateTest" class="com.carrefour.fr.portail.carburant.CommonJd bcTemplate">
<property name="npjt" ref="npjt"></property>
</bean>
I am getting following excepton plz help
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'commonJdbcTemplateTest' defined in class path resource [com/carrefour/fr/portail/carburant/ejb-application-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedEx ception: Failed to convert property value of type 'org.springframework.jdbc.core.namedparam.NamedPar ameterJdbcTemplate' to required type 'org.springframework.jdbc.core.namedparam.NamedPar ameterJdbcTemplate' for property 'npjt'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.springframework.jdbc.core.namedparam.NamedPara meterJdbcTemplate] to required type [org.springframework.jdbc.core.namedparam.NamedPara meterJdbcTemplate] for property 'npjt': no matching editors or conversion strategy found