JBoss Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver

爱⌒轻易说出口 提交于 2019-12-10 02:54:25

问题


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)

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.

Note: i used mysql-connector-java-5.1.24.jar


回答1:


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:

  • http://bugs.mysql.com/bug.php?id=62038

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.

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.




回答2:


Try using these instructions to deploy mysql driver to JBoss AS. With connector 5.1.22 as found in fedora18 I've never had a problem. Here is the module.xml



来源:https://stackoverflow.com/questions/15991364/jboss-deploying-non-jdbc-compliant-driver-class-com-mysql-jdbc-driver

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!