简体   繁体   English

无法创建WSO2 CEP RDBMS数据源

[英]unable to create WSO2 CEP RDBMS Datasource

I am trying to configure WSO2 CEP to store the events to database table. 我正在尝试配置WSO2 CEP以将事件存储到数据库表中。

  1. I have created Event Stream/Receiver, 我已经创建了事件流/接收器,
  2. I would like publish the Stream on a External Database using Datasource. 我想使用数据源在外部数据库上发布流。

i am getting the below error while I trying to create Datasource to mysql or oracle 我尝试将数据源创建到mysql或oracle时出现以下错误

for mysql datasource 用于mysql数据源

ERROR: Error in creating external data source: com.mysql.jdbc.jdbc2.optional.MysqlXADataSource cannot be found by org.wso2.carbon.ndatasource.rdbms_4.4.1 错误:创建外部数据源时出错:org.wso2.carbon.ndatasource.rdbms_4.4.1找不到com.mysql.jdbc.jdbc2.optional.MysqlXADataSource

for oracle datasource 用于oracle数据源

ERROR: Error in creating external data source: oracle.jdbc.driver.OracleDriver cannot be found by org.wso2.carbon.ndatasource.rdbms_4.4.1 错误:创建外部数据源时出错:org.wso2.carbon.ndatasource.rdbms_4.4.1找不到oracle.jdbc.driver.OracleDriver

Can anyone help me fix this one. 谁能帮我解决这个问题。

Thanks 谢谢

I suspect that this issue is due to the missing database drivers in {$HOME}/repsitory/components/lib folder. 我怀疑此问题是由于{$ HOME} / repsitory / components / lib文件夹中缺少数据库驱动程序引起的。 Can you please check if the relevant database drivers are placed in this directory? 您能否检查相关的数据库驱动程序是否放置在此目录中? You can find the documentation regarding setting up MySql and Oracle databases with CEP, respectively at [1] and [2]. 您可以在[1]和[2]上找到有关使用CEP设置MySql和Oracle数据库的文档。 Hope this helps. 希望这可以帮助。

[1] https://docs.wso2.com/display/CEP400/Setting+up+MySQL [2] https://docs.wso2.com/display/CEP400/Setting+up+Oracle [1] https://docs.wso2.com/display/CEP400/Setting+up+MySQL [2] https://docs.wso2.com/display/CEP400/Setting+up+Oracle

Cheers, Pubudu. 干杯,普布杜。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM