请问这是什么问题啊?
我是用MyEclipse写的,在Tomcat的管理环境下配置的JNDI 
http://localhost:8080/admin/jdbc DataSource
配置的是jndi的名字是 : jdbc/mysql
在web.xml 里面添加了<resource-ref>
    <description>DB Connection</description>
    <res-ref-name>jdbc/mysql</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
</resource-ref>