Could not load com.mysql.jdbc.SQLError. 解决办法
来源:互联网 发布:java获取当年的第一天 编辑:程序博客网 时间:2024/05/01 21:29
在构建SSH集成CXF的框架中,出现 Could not load com.mysql.jdbc.SQLError. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException这样的错误,找了半天,找到解决办法:
把mysql的驱动放到tomcat的lib目录下,一开始只是把驱动放进去还是会有问题,好像是因为在tomcat重启的时候,之前的tomcat的线程还没有完全关闭,最新启动tomcat就会报这个异常,只要把tomcat的server.xml 中的reloadable="true" 改成false,
但是我没找到reloadable这一个选项,所以还是存在问题,后来直接把工程目录下的WebContent\WEB-INF\lib下的jdbc驱动删掉,再起动tomcat就没问题了(我使用eclipse启动tomcat的),具体原因不知道为什么,可能是上面说的那个原因。
本着探索和尝试的精神,我想为什么别人的工程目录下明明带着这个jar包的啊,为什么没问题,就再次把jar包放回来,发现放回来后,tomcat依旧能正常启动。
以上原因真是暂时不知道,等之后找找这个情况的原因是什么。
0 0
- Could not load com.mysql.jdbc.SQLError. 解决办法
- Could not load JDBC driver class [com.mysql.jdbc.Driver]
- Could not load requested class : com.mysql.jdbc.Driver
- 警告: Could not load driverClass com.mysql.jdbc.Driver java.lang.ClassNotFoundException: com.mysql.jdb
- 解决 Could not load JDBC driver class [com.mysql.jdbc.Drivers]
- 报错:Could not load JDBC driver class [com.mysql.jdbc.Driver]
- Could not load JDBC driver class [com.mysql.jdbc.Driver]异常
- Spring Boot 出现 Could not load JDBC driver class [com.mysql.jdbc.Drivers]
- com.mysql.jdbc.SQLError.<clinit>(SQLError.java:137)报错
- ssh整合 tomcat启动报错Could not load com.mysql.jdbc.Util
- powerDesigner Non SQL Error : Could not load class com.mysql.jdbc.Driver
- PowerDesigner提示错误Non SQL Error : Could not load class com.mysql.jdbc.Driver
- c3p0数据源配置抛出Could not load driverClass com.mysql.jdbc.Driver的解决方案
- can not load com.mysql.jdbc.Driver
- Could not load driverClass com.microsoft.sqlserver.jdbc.SQLServerDriver
- Could not load driverClass com.microsoft.sqlserver.jdbc.SQLServerDriver
- powerdesinger ——MySQL(Could not load class com.mysql.jdbc.Driver&Unable to list the user )
- PowerDesigner导入MySql步骤和解决问题Non SQL Error : Could not load class com.mysql.jdbc.Driver
- Android中invalidate()和postInvalidate() 的区别
- Apache OFBIZ快速上手(四)--云服务模式--OFBIZ多租户
- 黑马程序员-OC-点语法
- 修改struts2中UI标签的<s:a>进行权限控制
- 面试题16:反转链表
- Could not load com.mysql.jdbc.SQLError. 解决办法
- Ajax POSt数据到PHP的方法
- Lua:元表(metatable)与元方法(meatmethod)
- mongodb 安装实战
- C# 学习 vs 工具栏设置
- jFileChooser showSaveDialog 保存文件
- 在centos上编译和安装vlc
- x264源代码帧级编码分支encode_frame( h, opt->hout, NULL, &last_dts )
- @RequestMapping 用法详解之地址映射(转)