powered by Jive Software

Openfire Autosetup modifies EmbeddedConnectionProvider into DefaultConnectionProvider

Hi everyone,
I am running Openfire 4.6.2 on Windows 10 using the embbeded data base.
I am trying to configure automatically Openfire using openfire.xml file.
Setup is run on first launch, and the section is deleted from openfire.xml but the wrong connection provider is then saved in the file:

org.jivesoftware.database.**EmbeddedConnectionProvider**

Is automatically modified in :

org.jivesoftware.database.**DefaultConnectionProvider**

Even when using the openfire-demoboot.xml example file, the connection provider is modified in the file after Autosetup.

Openfire is working well after Autosetup but it is then impossible to restart the service as it will cause a connection error to the database:
“java.sql.SQLException : ConnectionManager.getConnection() failed to obtain a connection after 11 retries”

The only way to solve the problem is to modify manually the connectionProvider in the file and then restart the service, which I would like to avoid.

Is this a known issue ?
Does anybody have an idea?

Seems to be this line of code:

Would it work if you set “autosetup.authprovider.mode” to some other value than “default” to not let the code enter the if-section and then set the properties of the if-section outside of the “autosetup” section in your openfire.xml?