Foros de discusión
Liferay 7, Wildfly, and connection to Oracle DB issues
LR BEGINNER, modificado hace 7 años.
Liferay 7, Wildfly, and connection to Oracle DB issues
New Member Mensajes: 24 Fecha de incorporación: 21/07/16 Mensajes recientes
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
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
Juan Gonzalez, modificado hace 7 años.
RE: Liferay 7, Wildfly, and connection to Oracle DB issues
Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientesLR 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 hace 7 años.
RE: Liferay 7, Wildfly, and connection to Oracle DB issues
New Member Mensajes: 24 Fecha de incorporación: 21/07/16 Mensajes recientes
Thanks Juan.
Antonio Musarra, modificado hace 7 años.
RE: Liferay 7, Wildfly, and connection to Oracle DB issues
Junior Member Mensajes: 66 Fecha de incorporación: 9/08/11 Mensajes recientes
Hi.
You can see at Liferay 7 CE: How to add support for Oracle DB and view this tutorial Liferay 7 CE GA3 - Wildfly: How to add support for Oracle DB.
Bye,
Antonio.
You can see at Liferay 7 CE: How to add support for Oracle DB and view this tutorial Liferay 7 CE GA3 - Wildfly: How to add support for Oracle DB.
Bye,
Antonio.