Fórum

Liferay 7, Wildfly, and connection to Oracle DB issues

LR BEGINNER, modificado 7 Anos atrás.

Liferay 7, Wildfly, and connection to Oracle DB issues

New Member Postagens: 24 Data de Entrada: 21/07/16 Postagens Recentes
Hi,

I've just downloaded Liferay 7 CE bundled with Wildfly. After setting up the required file, i start wildfly and faced this issue below. Anyone encounter or had any idea of this issue?
23:51:51,221 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 32) WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "datasources"),
("jdbc-driver" => "oracle")
]) - failure description: "WFLYJCA0041: Failed to load module for driver [com.oracle.ojdbc6]"

My steps to setup the connection to oracle db as follows:
Hi,

I've just downloaded Liferay 7 CE bundled with Wildfly. After setting up the required file, i start wildfly and faced this issue below:
23:51:51,221 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 32) WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "datasources"),
("jdbc-driver" => "oracle")
]) - failure description: "WFLYJCA0041: Failed to load module for driver [com.oracle.ojdbc6]"

My steps to setup the connection to oracle db as follows:
1. Copy ojdbc6.jar to $WILDFLY_HOME/modules/com/liferay/portal/main

2. Create the file module.xml in the $WILDFLY_HOME/modules/com/liferay/portal/main folder and insert the following contents:
<?xml version="1.0"?>
<module xmlns="urn:jboss:module:1.0" name="com.liferay.portal">
<resources>
<resource-root path="com.liferay.registry.api.jar" />
<resource-root path="ojdbc6.jar" />
<resource-root path="portal-kernel.jar" />
<resource-root path="portlet.jar" />
</resources>
<dependencies>
<module name="javax.api" />
<module name="javax.mail.api" />
<module name="javax.servlet.api" />
<module name="javax.servlet.jsp.api" />
<module name="javax.transaction.api" />
</dependencies>
</module>

3. Modify standalone.xml
<subsystem xmlns="urn:jboss:domain:datasources:1.0">
<datasources>
<datasource jndi-name="java:jboss/datasources/liferayDS" pool-name="liferayDS" enabled="true"
jta="true" use-java-context="true" use-ccm="true">
<connection-url>jdbc:oracle:thin:@localhost:1521:xe</connection-url>
<driver>oracle</driver>
<security>
<user-name>lportal</user-name>
<password>password1234</password>
</security>
</datasource>
<drivers>
<driver name="oracle" module="com.liferay.portal"/>
</drivers>
</datasources>
</subsystem>

4. Modify portal-ext.properties file in Liferay Hom
jdbc.default.jndi.name=java:jboss/datasources/liferayDS
thumbnail
Juan Gonzalez, modificado 7 Anos atrás.

RE: Liferay 7, Wildfly, and connection to Oracle DB issues

Liferay Legend Postagens: 3089 Data de Entrada: 28/10/08 Postagens Recentes
LR BEGINNER:

My steps to setup the connection to oracle db as follows:


Error! Liferay 7 doesn't support Oracle DB, for that you have to use Liferay DXP (enterprise license).

There are people in forums that made a custom (unsupported) module to connect to Oracle DB though.
LR BEGINNER, modificado 7 Anos atrás.

RE: Liferay 7, Wildfly, and connection to Oracle DB issues

New Member Postagens: 24 Data de Entrada: 21/07/16 Postagens Recentes
Thanks Juan.
thumbnail
Antonio Musarra, modificado 7 Anos atrás.

RE: Liferay 7, Wildfly, and connection to Oracle DB issues

Junior Member Postagens: 66 Data de Entrada: 09/08/11 Postagens Recentes