问题描述
在把artimus_1_0.war放到Tomcat上,启动Tomcat后,进入应用,报如下错:Theprocessdidnotcomplete.Detailsshouldfollow.ResourceException:Arequiredresourceisnotavailable.Causedby:SQLExceptionoccurredinJDBCPool:java.sql.SQLException:Datasourcerejectedestablishmentofconnection,messagefromserver:"Toomanyconnections"params:org.gjt.mm.mysql.Driver,jdbc:mysql://localhost:3306/artimus.Pleasecheckyourusername,passwordandotherconnectivityinfo[img=http://localhost:8080/artimus_1_0/do/find/Hours][/img]看了数据库用户和密码都没问题,很奇怪!
解决方案
解决方案二:
驱动版本和你写的driver有出入?
解决方案三:
mysql-connector-java-3.0.9-stable-bin.jar和mysql-connector-java-3.0.9-stable-bin.jar都放到D:Downloadsapache-tomcat-7.0.6lib下了
解决方案四:
解决方案五:
问题找到了.poolman.xml放到D:Downloadsapache-tomcat-7.0.6webappsartimus_1_0WEB-INFclasses下好了,原来的位置在D:Downloadsapache-tomcat-7.0.6webappsartimus_1_0WEB-INFclasses,有知道原因的吗?官方的支持论坛讲的.