datsuan 发表于 2021-2-3 16:20:19

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

在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".

datsuan 发表于 2021-2-3 18:15:42

已解决,这是一个乌龙问题:
把其它的数据库的相关数据库配置文件拷到config文件夹下时,没有去掉数据库名称,改为 “externalDataSources.json”导致错误……

论坛管理员 发表于 2021-2-4 09:46:32

牛!
页: [1]
查看完整版本: 在ubuntu20.04下o2oa提示驱动错误