Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using JNDI for a database connection fails in embedded OC4J server

181239Nov 13 2009 — edited Dec 22 2009
h1. Problem
I am running a web application using Spring Framework 2.x to connect to the database using JNDI in JDeveloper 10.1.3 embedded OC4J container. The application errors out with the following error message. Has anyone faced this issue?


h1. Error Message

13 Nov 2009 09:32:30 -- ERROR -- Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mybean' defined in class path resource [local-review.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 [oracle.jdbc.pool.OracleDataSource] to required type [javax.sql.DataSource] for property 'dataSource'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [oracle.jdbc.pool.OracleDataSource] 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 [oracle.jdbc.pool.OracleDataSource] to required type [javax.sql.DataSource] for property 'dataSource'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [oracle.jdbc.pool.OracleDataSource] 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 [oracle.jdbc.pool.OracleDataSource] to required type [javax.sql.DataSource] for property 'dataSource': no matching editors or conversion strategy found
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 19 2010
Added on Nov 13 2009
3 comments
1,509 views