日期:2014-05-20  浏览次数:20865 次

ubuntu环境下tomcat启动正常,程序运行诡异的错误!高手解答!急急急
tomcat启动:
Dec 8, 2011 10:19:02 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8082
Dec 8, 2011 10:19:02 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 598 ms
Dec 8, 2011 10:19:02 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 8, 2011 10:19:02 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.28
Dec 8, 2011 10:19:03 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Dec 8, 2011 10:19:04 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory cnalResume
Dec 8, 2011 10:19:05 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Dec 8, 2011 10:19:06 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory paoding
Dec 8, 2011 10:19:06 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory pickdata
Dec 8, 2011 10:19:06 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory index
Dec 8, 2011 10:19:06 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Dec 8, 2011 10:19:06 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Dec 8, 2011 10:19:06 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor ROOT.xml
Dec 8, 2011 10:19:06 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8082
Dec 8, 2011 10:19:06 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4171 ms
tomcat启动正常,下面出现了错误:
.
.
tomcat启动
.
.

INFO: Server startup in 4171 ms
Dec 8, 2011 10:19:34 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet default threw exception
java.sql.SQLException: No operations allowed after connection closed.Connection was implicitly closed due to underlying exception/error:


** BEGIN NESTED EXCEPTION ** 

com.mysql.jdbc.CommunicationsException
MESSAGE: Communications link failure due to underlying exception: 

** BEGIN NESTED EXCEPTION ** 

java.io.EOFException

STACKTRACE:

java.io.EOFException
at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1905)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2351)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2862)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1571)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1666)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2988)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2917)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:824)
at com.mysql.jdbc.DatabaseMetaData.getUserName(DatabaseMetaData.java:5982)
at org.apache.commons.dbcp.DelegatingConnection.toString(DelegatingConnection.java:104)
at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.toString(PoolingDataSource.java:344)
at java.lang.String.valueOf(String.java:2826)
at java.lang.StringBuffer.append(StringBuffer.java:219)
at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:202)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:350)
at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:262)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:101)