Message Boards

Liferay 7, Wildfly and MySQL - error during startup

LR BEGINNER, modified 7 Years ago.

Liferay 7, Wildfly and MySQL - error during startup

New Member Posts: 24 Join Date: 7/21/16 Recent Posts
Hi,

I wanted to check on this issue with starting the liferay 7 with MySQL DB and Wildfly. I downloaded the bundle, following the step from this link: https://dev.liferay.com/discover/deployment/-/knowledge_base/7-0/installing-liferay-on-wildfly-10. When i started the Wildfly, it throws below error:
Any advise? Thanks.

"{\"WFLYCTL0080: Failed services\" => {\"jboss.undertow.deployment.default-server.default-host./\" => \"org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./: java.lang.ExceptionInInitializerError
Caused by: java.lang.ExceptionInInitializerError
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
Caused by: java.lang.RuntimeException: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
Caused by: java.io.IOException: The filename, directory name, or volume label syntax is incorrect\"}}"
LR BEGINNER, modified 7 Years ago.

RE: Liferay 7, Wildfly and MySQL - error during startup

New Member Posts: 24 Join Date: 7/21/16 Recent Posts
Hi All,

I think the issue is due to below errors. But i have configured the xml file to connect to mysql.
Caused by: javax.resource.ResourceException: IJ031083: Wrong driver class [org.hsqldb.jdbc.JDBCDriver] for this connection URL [jdbc:mysql://localhost:3306/lportal]

My configuration in module.xml
<?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="hsql.jar" />
<resource-root path="mysql.jar" />
<resource-root path="portal-kernel.jar" />
<resource-root path="portlet.jar" />
<resource-root path="postgresql.jar" />
</resources>
<dependencies>
<module name="ibm.jdk" />
<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>

My datasource in standalone.xml:
<subsystem xmlns="urn:jboss:domain:datasources:4.0">
<datasources>
<datasource jta="true" jndi-name="java:jboss/datasources/liferayDS" pool-name="liferayDS" enabled="true" use-java-context="true" use-ccm="true">
<connection-url>jdbc:mysql://localhost:3306/lportal</connection-url>
<driver>mysql</driver>
<security>
<user-name>lportal</user-name>
<password>pass1234@@</password>
</security>
</datasource>
<drivers>
<driver name="mysql" module="com.liferay.portal"/>
</drivers>
</datasources>
</subsystem>