-
1. Re: JBoss ear isolation and spring deployer
alesj Feb 21, 2007 8:43 AM (in response to lorgh)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? -
2. Re: JBoss ear isolation and spring deployer
lorgh Feb 21, 2007 8:53 AM (in response to lorgh)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. -
3. Re: JBoss ear isolation and spring deployer
alesj Feb 21, 2007 8:59 AM (in response to lorgh)Any ideas how to resolve this problem?
Read from wiki.
Your problem is a classical isolation problem. -
4. Re: JBoss ear isolation and spring deployer
jimdwyer Apr 12, 2007 9:45 AM (in response to lorgh)Is there a classic Isolation solution? I am seeing the same thing.
-
5. Re: JBoss ear isolation and spring deployer
jimdwyer Apr 14, 2007 11:13 AM (in response to lorgh)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:
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossClassLoadingUseCases