没看到什么问题
但是web.xml文件中几个标签的值后面都有空格,不知道有没有

解决方案 »

  1.   

    是不是没加mysql的jdbc驱动程序啊
      

  2.   

    jdbc:mysql-connector-java-5.0.4-bin.jar 已经放入tomcat6\lib下 
      

  3.   

    把mysql-connector-java-5.0.4-bin.jar放到WEB-INF下的lib中试试
      

  4.   


    <Context path="/xxx" >
    <Ressource name="jdbc/bbs" auth="Container" 
    type="javax.sql.DataSource" 
    maxActive="100" 
    maxIdle="30" 
    maxWait="10000" 
    username="root" 
    password="dell" 
    driverClassName="com.mysql.jdbc.Driver" 
    url="jdbc:mysql://localhost:3306/bbs" 
    />
    </Context>放到 server.xml中的<Host></Host>之间
      

  5.   

    <res-ref-name>jdbc/bbs </res-ref-name> 
    不要在中间加“空格”
      

  6.   

    <resource-ref>
      <description>DB Connection</description>
      <res-ref-name>jdbc/fxcstep</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
    </resource-ref>
      

  7.   

    <?xml version="1.0" encoding="UTF-8"?>
    <Context antiJARLocking="true" path="/fxcstep" URIEncoding="UTF-8">
      <Resource name="jdbc/fxcstep"
      auth="Container"
      description="DB Connection"
      driverClassName="com.mysql.jdbc.Driver"
      maxActive="500"
      maxIdle="30"
      maxWait="10000"
      type="javax.sql.DataSource"
      username="fxcstep1"
      password="123456"
      url="jdbc:mysql://localhost:3306/fxcstep?autoReconnect=true"
      />
    </Context>以上是我的连接池设置,仅供参考
      

  8.   

    谢谢各位的回复,问题解决,症结终于找到了,奶奶的
    <Ressource name="jdbc/bbs" auth="Container" 
    .
    .
    .
    /> Ressource  应该是Resource ,多了个s
    太粗心了,害我这么长时间