1
回答
tomcat 启动问题!
百度AI开发者大赛带你边学边开发,赢100万奖金,加群:418589053   

我在web.xml文件注册了listener,tomcat启动时报错误!,注释掉就没问题~想请高手指点!

<listener>
  <listener-class>dep.listener.SessionCreateDestroyListener</listener-class>
 </listener>
 
 <listener>
  <listener-class>dep.listener.ScheduleListener</listener-class>
 </listener>

tomcat启动时报错误!

2010-9-9 0:30:20 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class dep.listener.ScheduleListener
org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Cannot open connection; uncategorized SQLException for SQL [???]; SQL state [null]; error code [0]; Cannot create PoolableConnectionFactory (Server connection failure during transaction. Due to underlying exception: 'com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Data source rejected establishment of connection,  message from server: "Too many connections"'.

** BEGIN NESTED EXCEPTION **

com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException
MESSAGE: Data source rejected establishment of connection,  message from server: "Too many connections"

2010-9-9 0:30:20 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2010-9-9 0:30:20 org.apache.catalina.core.StandardContext start
严重: Context [] startup failed due to previous errors
2010-9-9 0:30:20 org.apache.catalina.core.ApplicationContext log

举报
mask
发帖于8年前 1回/1K+阅
顶部