Jboss mysql

编程入门 行业动态 更新时间:2024-10-27 05:25:01
本文介绍了Jboss mysql - 没有适合的jdbc驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

线程main中的异常javax.ejb.EJBException:org.hibernate。 exception.JDBCConnectionException:无法打开连接 ... ... 导致:java.sql.SQLException:找不到适合jdbc的驱动程序:mysql:// localhost:3306 / db

问题类似于:其他问题,但我认为我的网址是对的!

解决方案

解决方案

我发现在stackoferflow上搜索的解决方案:)

我需要将我的mysql-connector jar文件放在jboss / server / default / lib中。 虽然我不明白它,因为我添加这个jar文件作为依赖,它被放置在lib文件夹部署。

I get following error using hibernate:

Exception in thread "main" javax.ejb.EJBException: org.hibernate.exception.JDBCConnectionException: Cannot open connection ... ... Caused by: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/db

The problem is similar to: other question but I think my url is right!

解决方案

Solution

i found the solution searching here on stackoferflow :)

I needed to place my mysql-connector jar file into jboss/server/default/lib. Although I dont understand it since i added this jar file as a dependency and it was placed in the lib folder on deployment.

更多推荐

Jboss mysql

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

发布评论

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

>www.elefans.com

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