2 weixin 39868658 weixin_39868658 于 2017.08.29 14:34 提问

svn同步程序后开启tomcat服务器,在浏览器上打开localhost报错
ssm

严重: Servlet.service() for servlet [springmvc] in context with path [] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is

org.apache.ibatis.exceptions.PersistenceException:

Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is com.alibaba.druid.pool.GetConnectionTimeoutException: wait millis 60000, active 0

The error may exist in file [E:\TomCat\apache-tomcat-7.0.47\webapps\MyTop\WEB-INF\classes\com\ss\mytop\mapper\CompanyMapper.xml]

The error may involve com.ss.mytop.mapper.CompanyMapper.findComList

The error occurred while executing a query

严重: Servlet.service() for servlet [springmvc] in context with path [] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is

org.apache.ibatis.exceptions.PersistenceException:

Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is com.alibaba.druid.pool.GetConnectionTimeoutException: wait millis 60000, active 0

The error may exist in file [E:\TomCat\apache-tomcat-7.0.47\webapps\MyTop\WEB-INF\classes\com\ss\mytop\mapper\NewsMapper.xml]

The error may involve com.ss.mytop.mapper.NewsMapper.findTopNews

The error occurred while executing a query

Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is com.alibaba.druid.pool.GetConnectionTimeoutException: wait millis 60000, active 0] with root cause

com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'performance_schema.session_variables' doesn't exist
at sun.reflect.GeneratedConstructorAccessor26.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.Util.getInstance(Util.java:381)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1030)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3515)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3447)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1951)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2101)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2548)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2477)
at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1422)
at com.mysql.jdbc.ConnectionImpl.loadServerVariables(ConnectionImpl.java:3796)
at com.mysql.jdbc.ConnectionImpl.initializePropsFromServer(ConnectionImpl.java:3362)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2062)
at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:723)
at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:46)
at sun.reflect.GeneratedConstructorAccessor23.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:282)
at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:148)
at com.alibaba.druid.filter.stat.StatFilter.connection_connect(StatFilter.java:211)
at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:142)
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1377)
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1431)
at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:1844)
八月 29, 2017 2:26:13 下午 org.apache.jasper.compiler.TldLocationsCache tldScanJar
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve

startup time and JSP compilation time.
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@5b7c48f2] was not registered for synchronization because synchronization is not active

1个回答

assasasasas
assasasasas   2017.08.29 14:41

数据库连接的问题,表不存在

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐
Eclipse启动Tomcat服务器成功,浏览器访问出现404
最近Eclipse新建了一个Tomcat8.0的服务器,Eclipse可以启动这个服务器,但是浏览器访问localhost:8080却出现404! 解决方案: 双击Tomcat8服务器,进入Tomcat8服务器配置页面: 配置Server Locations,勾选Use Tomcat installation,然后配置Deploy path为Tomcat安装目录的webapp
Tomcat在eclipse里面能正常启动,而在浏览器中访问http://localhost:8080/不能访问,且报404错
症状: tomcat在eclipse里面能正常启动,而在浏览器中访问http://localhost:8080/不能访问,且报404错误。同时其他项目页面也不能访问。 关闭eclipse里面的tomcat,在tomcat安装目录下双击startup.bat手动启动tomcat服务器。访问htt://localhost:8080/能正常访问tomcat管理页面。 症状原因:
在Eclipse中配置tomcat,浏览器输入http://localhost:8080报404错误解决方法
鄙人下载了一个Tomcat 7.0.35版本,配置完环境变量等东西后,直接运行bin目录下的 startup,tomcat可以正常启动, http://localhost:8080   可以正常访问。  之后在Eclipse中新建了一个server 使用这个版本的Tomcat,不加载任何工程的情况下,运行显示启动成功,但是访问 http://localhost:8080报 404错误。 如果
eclipse中启动tomcat而浏览器无法访问http://localhost:8080
今天将myeclipse卸载了,改用eclipse进行web的开发学习。遇到一个问题,在cmd窗口可以启动Tomcat打开8080网页,而通过eclipse启动tomcat就打不开。下面是这种情况的解决方法: 1.首先在Servers窗体口中,将tomcat目录下的文件移除,并右击点击delete将tomcat删除,如下图: 2.出现下图所示情况,然后再添加tomcat. 3
Tomcat服务器不能打开http://localhost:8080安装测试页面
 在TOMCAT服务器默认安装后,默认的端口是8080,出现不能找到http://localhost:8080的问题。如果遇到这个问题首先要确保JAVA(JDK)的正确安装和配置。如果JDK安装没有问题,还是在TOMCAT启动后不能打开http://localhost:8080,这时候就要查看TOMCAT安装目录下的/logs目录中的日志文件查看提示信息,根据信息排除故障。l       
使用SVN同步资源后图标样式的详细解读
项目视图   The Package Explorer view - 已忽略版本控制的文件。可以通过Window → Preferences → Team → Ignored Resources.来忽略文件。 A file ignored by version control. You can control what resources will be ignored by going
Tomcat服务器启动后访问localhost:8080显示404的原因
Tomcat版本8.5.8 系统:Windows7 1.在eclipse中关联了Tomcat服务器 调出server窗口,在窗口空白处右键,选择new->server,之后选择Tomcat的版本和路径即可 重点来了,如果你是在eclipse中点击启动按钮启动的Tomcat 那么Tomcat不会默认部署它自己的测试项目(也就是大猫localhost:8080),所以此时可以部署自己
tortoise svn无法连接到svn服务器,但用浏览器可以连接到svn服务器之解决方法
tortoise svn无法连接到svn服务器,但用浏览器可以连接到svn服务器之解决方法
TOMCAT成功部署,但是通过浏览器访问不了?
背景:在一台新的服务器上面,已经成功部署了TOMCAT,但是通过浏览器访问不了。 问题发生原因:说到这个原因就不得不说下linux是如何通信的,我的简单的理解大致如下: 请求要先经过服务器防火墙,然后再请求服务器,此时服务器还要对外开放端口!默认开放的端口是22端口,也就是接收shell命令的端口。 1.那么这个问题首先需要查看防火墙是否已经启动了,如果已经启动了,需要将通过防火墙的端口号配
解决“Eclipse中启动Tomcat后,http://localhost:8080/无法访问”的问题
这个问题是eclipse造成的,我们可以修改配置来实现通过eclipse启动tomcat可以访问http://localhost:8080 打开Server试图,双击其中的"Tomcat v6.0 Server at localhost" 然后修改配置,如下图所示,将默认的“use workspace metadata”修改为“Use Tomcat installation”