-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
启动apache/seata-server:2.1.0.jre17镜像时,无法加载mysql驱动 #6760
Comments
/seata-server/libs/jdbc |
抱歉,容器镜像的依赖确实在lib中,你试试把driver直接放到lib下,看看结果如何? |
我怀疑这有一个bug,异常日志在main线程输出,可以看到触发该异常的线程的classloader是main线程的classloader。 |
临时解决方法,在lib和lib/jdbc都加上这个driver的jar就可以解决该问题了。 |
问题解决! |
我只在
|
libs下也可以通用的,实际上jdbc那个只是为了做多版本driver加载用的,里面放5.1.x和8.x的driver,你只有一个driver实际上不放在jdbc下也可以 |
意思是如果有5.1.x和8.x两个driver,需要在 |
I would like to claim this task |
Ⅰ. Issue Description
启动
apache/seata-server:2.1.0.jre17
镜像时,无法加载mysql驱动,我尝试将mysql-connector-java-8.0.30.jar
和mysql-connector-j-8.4.0.jar
挂载到/lib/jdbc目录下,但还是报错Ⅱ. Describe what happened
启动脚本:
报错内容:
我将版本修改为seataio/seata-server:1.8.0.jre17,进入镜像后,可以看到我的脚本确实可以将驱动jar包挂载到/lib/jdbc目录下
The text was updated successfully, but these errors were encountered: