Search code examples
databaseoracle11gwildfly-10liferay-7

Configure Liferay 7.0 and WIldfly with Oracle


I have a doubt regarding LIferay 7.0 and Wildfly. I recently found a method to integrate Oracle DB with Liferay but, at least in the example and on my attempts to try it, when I start Wildfly with Liferay it keeps telling me "Unsupported Database Oracle".

The tutorial I followed was this one: https://www.dontesta.it/blog/en/2016/04/13/liferay-7-ce-how-to-add-support-for-oracle-db/

Is that only supported for Tomact? (Like in the example in that tutorial).

Thanks in advance.


Solution

  • The Oracle driver for Liferay 7 CE also works for the bundle with wildfly. The procedure is very simple:

    1. Build the Oracle Driver for Liferay (by following the guide liferay-portal-oracledb-support)
    2. Download JDBC Oracle driver
    3. Copy JDBC Driver in $LIFERA_HOME/wildfly-10.0.0/modules/com/liferay/portal/main/
    4. Add JDBC Driver ojdbc7.jar as resource in module.xml ($LIFERA_HOME/wildfly-10.0.0/modules/com/liferay/portal/main/)
    5. Copy jar (liferay-portal-oracledb-support-1.0-SNAPSHOT.jar) of the Oracle Driver for Liferay in $LIFERAY_HOME/wildfly-10.0.0/standalone/deployments/ROOT.war/WEB-INF/lib/
    6. Start Liferay

    By following the above steps you should be able to install successfully Liferay 7, also you can see this tutorial Liferay 7 Wildfly: How to add support for Oracle DB