This is strange:
Failed to convert property value of type [org.springframework.jndi.JndiObjectFactoryBean] to required type [javax.sql.DataSource]
How does it convert this when in non-isolated env?
In not isolated env it works fine - i use it with hibernate which requires javax.sql.DataSource so looks like it is converted ok.
I have this definition:
<bean id="dataSource1" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName"> <value>java:datasourceFromJboss</value> </property> </bean>
In JBoss there is 'local-tx-datasource' entry.
Any ideas how to resolve this problem?
Read from wiki.
Your problem is a classical isolation problem.
Is there a classic Isolation solution? I am seeing the same thing.
The classical solution: As it turns out reading every piece of JBoss documentation about ClassLoaders, EAR files, isolation and such is a classic way to learn and to solve problems. My problems ended up being a small typo in an ivy file that caused me to get the wrong version of a library. This was pointed out to me by a coworker while I had a big red face! Anyway...
One thing that is informative is the URLs section in the deployed ear which tells you what libraries you have loaded in the ear.
Here is a classic read: