I was facing the same issue recently and found the following link which solved my problem:
http://myjavanotebook.blogspot.com/2008/04/use-jndi-with-your-j2se-application.html
Using the NamingBeanImpl wrapper solved this issue for me.
Reply to this message by going to Community
Start a new discussion in JNDI and Naming at Community