你检查一下是不是MySql Driver 的类名写错了?
你打开你下载的MySqlDriver.jar 看看

解决方案 »

  1.   

    up
    up
    up
    up
    up
    up
    up
    up
    up
    up
    up
    up
    up
    up
    up
    up
    up
    up
    up
    up
    up
    up
    up
    up
    up
      

  2.   

    网上找到的解决:在%TOMCAT_HOME%\conf\Catalina\localhost下找到你的web应用对应的.xml文件,如test.xml,并在此文件的下添入代码:<ResourceLink name="jdbc/mysql" global="jdbc/mysql" type="javax.sql.DataSourcer"/>重启tomcat。你的是服务器的全局JNDI资源,而用InitialContext去找server的resource当然找不到了,要想找到server的resource就得在web application中的context环境里加入一个指向该全局resource的ResourceLink。global -->The name of the linked global resource in the global JNDI context.
    name -->The name of the resource link to be created, relative to the java:comp/env context.?
    type -->The fully qualified Java class name expected by the web application when it performs a lookup for this resource link.
      

  3.   

    呵呵,越急越不行。
    去洗个澡,想想有没有办法查错。
    ---------------------------------------------------------------
    我在我做的服务器上的留言本(我设计的HTTP服务器已经支持CGI了):
    http://219.137.188.12:8080/gb1/index.htm 
    请大家测试。 高兴中。