JRuby + Rails + JNDI connection issue

Wasn't sure if this belonged in the JRuby or Rails forum so I put it on both. I have posted this question on StackOverflow and was wondering if anyone here had some insight on what the problem may be. Here is the link:

http://stackoverflow.com/questions/6127302/rails3-jruby-multiple-jndi-connection-problem