Issue
- When trying to upgrade a Liferay environment using a JNDI connection to the database the upgrade fails and produces errors.
- Auto upgrade portal properties ("upgrade.database.auto.run=true" and "schema.module.build.auto.upgrade=true") do not work with JNDI.
Environment
- DXP 7.4
Resolution
If you are unable to immediately upgrade to a version containing the fix for LPS-197082, apply the following workaround:
-
Open your
portal-ext.propertiesfile. -
Add the following property and leave the value blank:
jdbc.default.driverClassName= - Save the file and restart the Liferay server.
Setting this property to a blank value prevents the incorrect detection of Hypersonic, ensuring Liferay applies the upgrade.database.auto.run=true configuration during the next startup.