Do you have a jndi.properties file? If not, you need to provide one. If you have one, please post it's contents. Also, if you have one are you sure that it is in the classpath?
Thank you for answering! ;o)
I have one jndi.properties, this is my project in eclipse.
Content the jndi.properties
That looks correct. I suspect that it is not in your classpath. Did you declare the folder containing the jndi.properties file to be a source folder?