JBoss部署不兼容JDBC的驱动程序类com.mysql.jdbc.Driver

编程入门 行业动态 更新时间:2024-10-27 19:24:54
本文介绍了JBoss部署不兼容JDBC的驱动程序类com.mysql.jdbc.Driver的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家晚上好,有人知道这个错误

Good evening all, does any one know anything about this error

JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)

它总是在我开始部署mysql jar时出现,并且我的应用程序无法在服务器上启动.HTTP Status 404我从中受了很多苦,无法提供任何解决方案,请帮帮我.

it always appears when i start deploying mysql jar and my application fails to start on the sever HTTP Status 404 i suffered a lot from that and can't have any solution, please help me.

注意:我用过mysql-connector-java-5.1.24.jar

推荐答案

由于MySQL驱动程序不兼容JDBC,因此将打印该消息.这可能看起来有些奇怪,但这是一个长期存在的已知问题:

That message gets printed because the MySQL driver is not JDBC compliant. That may seem a bit weird, but it's a long-standing known issue:

  • bugs.mysql/bug.php?id=62038

问题是,要完全兼容JDBC,驱动程序必须具有符合SQL92标准入门级的SQL支持,但是MySQL不支持该功能.您没看错:MySQL不支持二十年前标准的最基本级别.可能缺少功能的最突出示例是检查约束.因此,驱动程序不兼容,并且JBoss记录了一条消息.

The problem is that to be fully JDBC compliant, the driver has to have SQL support conforming to the entry level of the SQL92 standard, but MySQL doesn't support features that are required by that. You read that right: MySQL doesn't support the most basic level of a twenty-year-old standard. Probably the most prominent example of a missing feature is check constraints. Therefore, the driver is non-compliant, and JBoss logs a message saying so.

但是,这不会阻止驱动程序正确部署.如消息所述,JBoss对其进行部署.

However, this does not prevent the driver deploying correctly. As the message says, JBoss deploys it.

如果您的应用无法运行,则问题出在其他地方.

If your app is not working, the problem lies somewhere else.

更多推荐

JBoss部署不兼容JDBC的驱动程序类com.mysql.jdbc.Driver

本文发布于:2023-10-28 23:53:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1538132.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:驱动程序   不兼容   JDBC   JBoss   jdbc

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!