tomcat 启动问题!

mask 发布于 2010/09/09 00:35
阅读 1K+
收藏 1

我在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

加载中
0
火红莲
火红莲

无法连接数据库,而必须有事务的

返回顶部
顶部