Mantis - Resin
Viewing Issue Advanced Details
4712 minor always 08-16-11 07:51 08-16-11 12:13
stoty  
ferg  
normal  
closed 4.0.20  
fixed  
none    
none 4.0.21  
0004712: When using ResinBeanContainer the persistence provider can't find the DataSource definied in META-INF/beans.xml
I have an issue, that seems related to 0004502.
My setup is similar to the one described there, except I use ResinBeanContainer.

When I define the DataSource in META-INF/beans.xml, the persistence provide can't find that datasource, and throws an exception at ResinBeanContainer.init().

If I put an empty beans.xml in META-INF, then add a separate beans.xml file with addBeansXml(), then persistence.xml will use the defined datasource.
I have atteched to complete eclipse projects, one demonstrates the workaround, the other is the version that should work, but does not.

 shoudlwork.tgz [^] (3,665 bytes) 08-16-11 07:51
 workaround.tgz [^] (3,721 bytes) 08-16-11 07:52

Notes
(0005445)
ferg   
08-16-11 12:13   
env/0e82