查看: 4456|回复: 2

在ubuntu20.04下o2oa提示驱动错误

升级   0.17%

3

主题

3

回帖

17

积分

注册会员

Rank: 2

积分
17
发表于 2021-2-3 16:20:19 | 显示全部楼层 |阅读模式
在centos上一直没有问题,但换了ubuntu20.04后,提示以下错误,求解:
Caused by: java.lang.RuntimeException: There were errors initializing your configuration: <openjpa-3.1.0-rafcec21a1d489dff682a3ce7986fac6a1c80e8e0 fatal user error> org.apache.openjpa.util.UserException: The persistence provider is attempting to use properties in the persistence.xml file to resolve the data source. A Java Database Connectivity (JDBC) driver or data source class name must be specified in the openjpa.ConnectionDriverName or javax.persistence.jdbc.driver property. The following properties are available in the configuration: "org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl@eb520c25".
回复

使用道具 举报

升级   0.17%

3

主题

3

回帖

17

积分

注册会员

Rank: 2

积分
17
发表于 2021-2-3 18:15:42 | 显示全部楼层
已解决,这是一个乌龙问题:
把其它的数据库的相关数据库配置文件拷到config文件夹下时,没有去掉数据库名称,改为 “externalDataSources.json”导致错误……
回复

使用道具 举报

升级   100%

139

主题

1万

回帖

4万

积分

超级版主

Rank: 8Rank: 8

积分
41458
发表于 2021-2-4 09:46:32 | 显示全部楼层
牛!
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系客服 关注微信 下载APP 返回顶部 返回列表
viewthread