web.xml配了么,tomcat里面这点要求很高的。

解决方案 »

  1.   

    也可能是\common\lib\下没有mysql的驱动程序。
      

  2.   

    配置文件
    <?xml version="1.0" encoding="ISO-8859-1"?><web-app > <description>MySQL Test App</description>  <resource-ref>      <description>DB Connection</description>      <res-ref-name>jdbc/TestDB</res-ref-name>      <res-type>javax.sql.DataSource</res-type>      <res-auth>Container</res-auth>  </resource-ref>
    </web-app>