Tomcat database connection pool configuration, add to in Server.xml maxwait name> 10000 value> parameter> < Parameter> Maxactive name> 100 value> parameter> password name> SWT value> parameter> URL name> jdbc: mysql: // localhost: 3306 / smsgroup? autoreconnect = true value> parameter> driverclassname name> org.gjt. mm.mysql.driver value> parameter> maxidle name> 30 value> parameter> Username name> SWT value> parameter> resourceparams> Add DB in Web.xml Connection description> jdbc / smsgroup res-ref-name> javax.sql.datasource <