org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.jboss.resource.adapter.jdbc.WrapperDataSource] to required type [javax.sql.DataSource] for property 'dataSource' nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [org.jboss.resource.adapter.jdbc.WrapperDataSource] to required type [javax.sql.DataSource] for property 'dataSource': no matching editors or conversion strategy found
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are: PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.jboss.resource.adapter.jdbc.WrapperDataSource] to required type [javax.sql.DataSource] for property 'dataSource'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [org.jboss.resource.adapter.jdbc.WrapperDataSource] to required type [javax.sql.DataSource] for property 'dataSource': no matching editors or conversion strategy found Caused by: java.lang.IllegalArgumentException: Cannot convert value of type org.jboss.resource.adapter.jdbc.WrapperDataSource] to required type [javax.sql.DataSource] for property 'dataSource': no matching editors or conversion strategy found
Cheers,
Wai Meng
Jaikiran Pai wrote:Are you packaging any jar files containing javax.sql.* in your application? If yes, then remove them from your application packaging.
Cheers,
Wai Meng
Wai Meng Ng wrote:
Just curious, how would have jar files containing javax.sql cause the error?
Jaikiran Pai wrote:
Wai Meng Ng wrote:
Just curious, how would have jar files containing javax.sql cause the error?
Because of classloading issues. The same class/interface might be loaded by two different classloaders Classloader A and Classloader B. Then when your app which uses Classloader B tries to use the class loaded by Classloader A, it will not be recognized as the correct type. More details here
Cheers,
Wai Meng
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |