You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@seata.apache.org by "JavaLionLi (via GitHub)" <gi...@apache.org> on 2025/03/20 11:45:47 UTC
[I] 使用源码本地运行 可以连接mysql 打包之后运行提示找不到驱动类 [incubator-seata]
JavaLionLi opened a new issue, #7238:
URL: https://github.com/apache/incubator-seata/issues/7238
<!-- Please do not use this issue template to report security vulnerabilities but refer to our [security policy](https://github.com/seata/seata/security/policy). -->
- [ ] I have searched the [issues](https://github.com/seata/seata/issues) of this repository and believe that this is not a duplicate.
### Ⅰ. Issue Description
### Ⅱ. Describe what happened
If there is an exception, please attach the exception trace:
```
Just paste your stack trace here!
```
### Ⅲ. Describe what you expected to happen
### Ⅳ. How to reproduce it (as minimally and precisely as possible)
1. xxx
2. xxx
3. xxx
Minimal yet complete reproducer code (or URL to code):
### Ⅴ. Anything else we need to know?
### Ⅵ. Environment:
- JDK version(e.g. `java -version`):
- Seata client/server version:
- Database version:
- OS(e.g. `uname -a`):
- Others:
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] 使用源码本地运行 可以连接mysql 打包之后运行提示找不到驱动类 [incubator-seata]
Posted by "JavaLionLi (via GitHub)" <gi...@apache.org>.
JavaLionLi closed issue #7238: 使用源码本地运行 可以连接mysql 打包之后运行提示找不到驱动类
URL: https://github.com/apache/incubator-seata/issues/7238
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] 使用源码本地运行 可以连接mysql 打包之后运行提示找不到驱动类 [incubator-seata]
Posted by "JavaLionLi (via GitHub)" <gi...@apache.org>.
JavaLionLi commented on issue #7238:
URL: https://github.com/apache/incubator-seata/issues/7238#issuecomment-2740155942
2.3.0版本 idea运行正常 打包配置的移除mysql驱动的配置我都删掉了
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] 使用源码本地运行 可以连接mysql 打包之后运行提示找不到驱动类 [incubator-seata]
Posted by "funky-eyes (via GitHub)" <gi...@apache.org>.
funky-eyes commented on issue #7238:
URL: https://github.com/apache/incubator-seata/issues/7238#issuecomment-2742015987
> > > 在jar包目录下建一个jdbc文件夹 里面放置jdbc依赖 就是可用的 麻烦指导一下新版本应该如何内置jdbc依赖不需要外部加载
> >
> >
> > 因为目前classloader加载方式是这样的,你可以修改AbstractDataSourceProvider中的逻辑
>
> 请问要如何修改 有参考案例么 按1.X的修改是否可行
你可以修改下代码加载不到时使其能委托给上级classloader
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] 使用源码本地运行 可以连接mysql 打包之后运行提示找不到驱动类 [incubator-seata]
Posted by "JavaLionLi (via GitHub)" <gi...@apache.org>.
JavaLionLi commented on issue #7238:
URL: https://github.com/apache/incubator-seata/issues/7238#issuecomment-2740166633

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] 使用源码本地运行 可以连接mysql 打包之后运行提示找不到驱动类 [incubator-seata]
Posted by "JavaLionLi (via GitHub)" <gi...@apache.org>.
JavaLionLi commented on issue #7238:
URL: https://github.com/apache/incubator-seata/issues/7238#issuecomment-2740361896
> > 在jar包目录下建一个jdbc文件夹 里面放置jdbc依赖 就是可用的 麻烦指导一下新版本应该如何内置jdbc依赖不需要外部加载
>
> 因为目前classloader加载方式是这样的,你可以修改AbstractDataSourceProvider中的逻辑
请问要如何修改 有参考案例么
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] 使用源码本地运行 可以连接mysql 打包之后运行提示找不到驱动类 [incubator-seata]
Posted by "JavaLionLi (via GitHub)" <gi...@apache.org>.
JavaLionLi commented on issue #7238:
URL: https://github.com/apache/incubator-seata/issues/7238#issuecomment-2740160706



想源码打包内置jdbc驱动 不想外部下载使用 但是内置打包之后加载不到驱动
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] 使用源码本地运行 可以连接mysql 打包之后运行提示找不到驱动类 [incubator-seata]
Posted by "funky-eyes (via GitHub)" <gi...@apache.org>.
funky-eyes commented on issue #7238:
URL: https://github.com/apache/incubator-seata/issues/7238#issuecomment-2740343030
> 在jar包目录下建一个jdbc文件夹 里面放置jdbc依赖 就是可用的 麻烦指导一下新版本应该如何内置jdbc依赖不需要外部加载
因为目前classloader加载方式是这样的,你可以修改AbstractDataSourceProvider中的逻辑
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] 使用源码本地运行 可以连接mysql 打包之后运行提示找不到驱动类 [incubator-seata]
Posted by "JavaLionLi (via GitHub)" <gi...@apache.org>.
JavaLionLi commented on issue #7238:
URL: https://github.com/apache/incubator-seata/issues/7238#issuecomment-2742012523
改为Class.forName(driverClassName);加载成功了 给其他人留个方案吧
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] 使用源码本地运行 可以连接mysql 打包之后运行提示找不到驱动类 [incubator-seata]
Posted by "JavaLionLi (via GitHub)" <gi...@apache.org>.
JavaLionLi commented on issue #7238:
URL: https://github.com/apache/incubator-seata/issues/7238#issuecomment-2740177888
在jar包目录下建一个jdbc文件夹 里面放置jdbc依赖 就是可用的
麻烦指导一下新版本应该如何内置jdbc依赖不需要外部加载
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] 使用源码本地运行 可以连接mysql 打包之后运行提示找不到驱动类 [incubator-seata]
Posted by "JavaLionLi (via GitHub)" <gi...@apache.org>.
JavaLionLi commented on issue #7238:
URL: https://github.com/apache/incubator-seata/issues/7238#issuecomment-2740164957
同样的用法 1.X版本是正常的
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] 使用源码本地运行 可以连接mysql 打包之后运行提示找不到驱动类 [incubator-seata]
Posted by "JavaLionLi (via GitHub)" <gi...@apache.org>.
JavaLionLi commented on issue #7238:
URL: https://github.com/apache/incubator-seata/issues/7238#issuecomment-2740411716
后续是否可以考虑兼容一下内置的jdbc 毕竟外置搞一些东西比如容器 比较麻烦
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org