tomcat连不上数据库mysql_在使用tomcat时数据库连接不上
我用的是Spring+Mybatis,配置文件写的没问题,昨天也连上了,今天就一直报错严重:Servlet.service()forservlet[springmvc]incontextwithpath[/help]threwexception[Requestprocessin...我用的是Spring+Mybatis,配置文件写的没问题,昨天也连上了,今天就一直报错严重: Servlet.ser
我用的是Spring+Mybatis,配置文件写的没问题,昨天也连上了,今天就一直报错严重:Servlet.service()forservlet[springmvc]incontextwithpath[/help]threwexception[Requestprocessin...
我用的是Spring+Mybatis,配置文件写的没问题,昨天也连上了,今天就一直报错
严重: Servlet.service() for servlet [springmvc] in context with path [/help] 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 org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Io 异常: The Network Adapter could not establish the connection)
### The error may exist in file [E:\tomcat\apache-tomcat-7.0.47\apache-tomcat-7.0.47\webapps\help\WEB-INF\classes\org\xxxx\entity\Personl.xml]
### The error may involve org.xxxx.dao.PersonDao.findAll
### The error occurred while executing a query
### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Io 异常: The Network Adapter could not establish the connection)] with root cause
java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:74)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:110)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:171)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:494)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:411)
at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:490)
at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:202)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
展开
DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。
更多推荐



所有评论(0)