I have mysql database. When i trying to configure DataSource, im getting the bellow error.
The data source URL is not accepted by any of the loaded drivers. CLIENT_PLUGIN_AUTH is required
I have placed com.mysql.jdbc.Driver in components/lib folder
what am i missing?
Related
I am using the MSSQL database for WSO2 API manager 3.2.0 and want to use analytics. When I changed the database to MSSQL, this error appeared. How can I solve this problem?
You need to add the MSSQL JDBC driver to the <API-M_ANALYTICS_HOME>/lib directory to use MSSQL as the external database for Analytics. I have tried with mssql-jdbc version 8.2.2.jre8. Since mssql-jdbc depends on OSGi Service JDBC you will need to add that jar as well to the <API-M_ANALYTICS_HOME>/lib directory. You may use the following links to download the jars,
OSGi Service JDBC - https://mvnrepository.com/artifact/org.osgi/org.osgi.service.jdbc/1.0.1
Microsoft JDBC Driver For SQL Server - https://mvnrepository.com/artifact/com.microsoft.sqlserver/mssql-jdbc/8.2.2.jre8
If you still face issues after adding the above jars, please add the complete stack trace related to the error. You can find the logs in the carbon.log file located at <API-M_ANALYTICS_HOME>/wso2/worker/logs.
Please Help!!!!!!!!Anyone please provide steps to change registry db from H2 to MySQL in WSO2
In Identity Server, 5.9.0 Registry data is stored in WSO2_SHARED_DB. by default this database is using embedded H2 database. You can change this by configuring deployment.toml file. Please follow the following documentation for instructions of changing it to a mysql database.
https://is.docs.wso2.com/en/5.9.0/setup/changing-to-mysql/
I'm using WSO2 EI 6.5.0 (latest release),
I'm wondering that Where can i find WSO2 database schema, stores all of things,
Those log files, written on Management console is saved in Database right ?
I am using Oracle DB (PL\SQL)..
I found oracle.sql from dbscripts folder - %E_HOME%,
How to connect WSO2's default database in PLSQL ?
Regards
By default wsoesb use h2 database. You can overwrite default database using oracle. There is documentation how to configure datasource, and there is, i am not sure something like carbon.xml where configure default datasource.
No, the logs are persisted in the files in ESB_HOME/repository/logs folder.
As #srimar mentioned, the default database is embedded H2. You can follow this doc to browse the embedded H2.
But WSO2 didn't recommend the embedded H2 database in the production
To configure the Oracle database you can follow this doc
I follow the guide Governance Partition in a Remote Registry found in WSO2 Documentaton. It seems to work fine but I am facing a strange problem. Let me explain my setup first.
Governance registry instalation
Installed GREG 4.5.3
Set the offset to 1 in order to GREG console mgmt runs on port 9444 (carbon.xml)
Create mysql database "wso2greg_reg" (for local/config/governance registry)
Updated datasource WSO2_CARBON_DB to point to wso2greg_reg database (master-datasources.xml)
Enabled clustering (axis2.xml)
Run GREG server with -Dsetup option in order to create all tables
Enterprise Service Bus instalation
Installed ESB 4.6.0
Set the offset to 2 in order to ESB console mgmt runs on port 9445 (carbon.xml)
Create mysql database "wso2esb_reg" (for local/config registry)
Updated datasource WSO2_CARBON_DB to point to wso2esb_reg database (master-datasources.xml)
Added datasource WSO2_GREG_DB to point to wso2greg_reg database (master-datasources.xml)
Enabled clustering (axis2.xml)
Set registry.xml to mount governance registry using wso2greg_reg database
Run ESB server with -Dsetup option in order to create all tables
My problem is happening when I start the two servers, dependening on which was the first server started I have diferent problems on the console managmenet of the secondly started server.
First case:
I start GREG first and ESB in second. When navigating to ESB Console MGMT, I am unable to add a new Pass Through Proxy, the respetive form is not showing and exceptions are logged to the ESB logs (see logs).
Second case:
I start ESB first and GREG in second. When navigating to GREG Console MGMT, the metadata menu is empty and exceptions are loged to the GREG logs (see logs)
Can someone point me to what I am doing wrong?
You need to create only one mysql database. It is this database that is used in the master-datasources.xml config for both G-Reg and ESB instances. What happens is, the mysql database is used as the central database.
Pls try this out and check if you still encounter the issues mentioned.
Cheers,
Gillian
I have tried to implement shared registry between clustered environment ESB 4.6.0 using GREG 4.5.3 following the guidance provided in provided in the documentation.
When I use the h2 db for currentDBConfig and the mysql database for mounted registry, WSO2 workers displays the following error when Deployment Synchronizer is automatically invoked:
Error while updating artifacts in the file system from the registry {org.wso2.carbon.deployment.synchronizer.registry.RegistryBasedArtifactRepository}
org.wso2.carbon.registry.synchronization.SynchronizationException: message code: ERROR_IN_READING_STREAM_TO_CREATE_META_FILE
When pointing currentDBConfig to the mysql database, the deployment synchronizer works ok and replicates configuration as expected, but according to the documentation it is not good practice.
How does the Deployment Synchronizer utilize the registry to update artifacts?
I have noticed that the User database uses by default the h2 database. Should it not be re-pointed to the shared governance registry database instead?
Thanks. Guillaume