jacob运行tomcat报错 Could not initialize class com.jacob.com.ComThread
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jacob运行tomcat报错 Could not initialize class com.jacob.com.ComThread相关的知识,希望对你有一定的参考价值。
参考技术A 不能初始化com.jacob.com.ComThread这个类,是不是dll文件放错地方了,多试两下。实在不行,更换服务器 参考技术Bjacob-1.18.zip
tomcat启动报错BaseExecutor:getDatabaseId:55 - Could not get a databaseId from dataSource
项目换mysql8后,使用了新的jdbc和c3p0包。
idea中直接将相应的包添加到项目的lib文件夹并删除旧版本,
启动tomcat后类似如下错误:
[RMI TCP Connection(3)-127.0.0.1]2019-03-07 23:04:05,338 [ERROR] BaseExecutor:getDatabaseId:55 - Could not get a databaseId from dataSource
java.sql.SQLException: An attempt by a client to checkout a Connection has timed out.
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:118)
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:77)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:690)
解决方案:
到tomcat的webapps目录下,删除整个应用项目后重新启动项目 正常
以上是关于jacob运行tomcat报错 Could not initialize class com.jacob.com.ComThread的主要内容,如果未能解决你的问题,请参考以下文章
启动tomcat报错 Could not reserve enough space for object heap的解决办法
MyEclipse启动Tomcat报错:Could not find the main class: org.apache.catalina.startup
Tomcat Start 报错 (COULD NOT DELETE MAY BE LOCKED BY ANOTHER PROCESS)
tomcat启动报错BaseExecutor:getDatabaseId:55 - Could not get a databaseId from dataSource
tomcat启动报错BaseExecutor:getDatabaseId:55 - Could not get a databaseId from dataSource
tomcat启动报错javax.naming.NamingException: Could not load resource factory class,spring启动失败