Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Having issues setting up Liferay 7.4 with Wildfly Application server
Hi All, I'm manually setting up liferay 7.4 with Wildfly 18. I followed the instructions in the below link
https://learn.liferay.com/dxp/latest/en/installation-and-upgrades/installing-liferay/installing-liferay-on-an-application-server/installing-on-wildfly.html
But I'm getting the following error
Calling "C:\Resource\Liferay
7.4\liferay_home\wildfly-18.0.0.Final\bin\standalone.conf.bat"
Setting JAVA property to "C:\Program
Files\Java\jdk1.8.0_231\bin\java"
===============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: "C:\Resource\Liferay 7.4\liferay_home\wildfly-18.0.0.Final"
JAVA: "C:\Program Files\Java\jdk1.8.0_231\bin\java"
JAVA_OPTS: "-Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true -Djboss.as.management.blocking.timeout=4800 -Duser.timezone=GMT -Xms2560m -Xmx2560m -XX:MaxNewSize=1536m -XX:MaxMetaspaceSize=768m -XX:MetaspaceSize=768m -XX:NewSize=1536m -XX:SurvivorRatio=7 "
===============================================================================
04:31:01,743 INFO [org.jboss.modules] (main) JBoss Modules version
1.9.1.Final
04:31:03,420 INFO [org.jboss.msc] (main) JBoss MSC
version 1.4.11.Final
04:31:03,432 INFO [org.jboss.threads]
(main) JBoss Threads version 2.3.3.Final
04:31:03,609 INFO
[org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: WildFly Full
18.0.0.Final (WildFly Core 10.0.0.Final) starting
04:31:05,358
INFO [org.wildfly.security] (ServerService Thread Pool -- 28)
ELY00001: WildFly Elytron version 1.10.3.Final
04:31:07,150 INFO
[org.jboss.as.controller.management-deprecated] (Controller Boot
Thread) WFLYCTL0028: Attribute 'security-realm' in theResource at
address '/core-service=management/management-interface=http-interface'
is deprecated, and may be removed in a future version. See the
attribute description in the output of the read-resource-description
operation to learn more about the deprecation.
04:31:07,192 INFO
[org.jboss.as.controller.management-deprecated] (ServerService Thread
Pool -- 31) WFLYCTL0028: Attribute 'security-realm' in theResource at
address
'/subsystem=undertow/server=default-server/https-listener=https' is
deprecated, and may be removed in a future version. See the attribute
description in the output of the read-resource-description operation
to learn more about the deprecation.
04:31:07,226 INFO
[org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads -
1) WFLYDS0015: Re-attempting failed deployment ROOT.war
04:31:07,336 INFO [org.jboss.as.server.deployment.scanner]
(DeploymentScanner-threads - 1) WFLYDS0004: Found ROOT.war in
deployment directory. To trigger deployment create a file called
ROOT.war.dodeploy
04:31:07,379 INFO [org.jboss.as.server]
(Controller Boot Thread) WFLYSRV0039: Creating http management service
using socket-binding (management-http)
04:31:07,422 INFO
[org.xnio] (MSC service thread 1-5) XNIO version 3.7.3.Final
04:31:07,438 INFO [org.xnio.nio] (MSC service thread 1-5) XNIO NIO
Implementation Version 3.7.3.Final
04:31:07,496 WARN
[org.jboss.as.txn] (ServerService Thread Pool -- 72) WFLYTX0013: The
node-identifier attribute on the /subsystem=transactions is set to the
default value. This is a danger for environments running multiple
servers. Please make sure the attribute value is unique.
04:31:07,512 INFO
[org.wildfly.extension.microprofile.config.smallrye._private]
(ServerService Thread Pool -- 60) WFLYCONF0001: Activating WildFly
MicroProfile Config Subsystem
04:31:07,516 INFO
[org.wildfly.extension.microprofile.opentracing] (ServerService
Thread Pool -- 63) WFLYTRACEXT0001: Activating MicroProfile
OpenTracing Subsystem
04:31:07,522 INFO [org.jboss.as.naming]
(ServerService Thread Pool -- 64) WFLYNAM0001: Activating Naming
Subsystem
04:31:07,522 INFO
[org.jboss.as.clustering.infinispan] (ServerService Thread Pool --
51) WFLYCLINF0001: Activating Infinispan subsystem.
04:31:07,526
INFO [org.jboss.as.security] (ServerService Thread Pool -- 70)
WFLYSEC0002: Activating Security Subsystem
04:31:07,540 INFO
[org.jboss.as.jsf] (ServerService Thread Pool -- 58) WFLYJSF0007:
Activated the following JSF Implementations: [main]
04:31:07,543
INFO [org.wildfly.extension.microprofile.health.smallrye]
(ServerService Thread Pool -- 61) WFLYHEALTH0001: Activating Eclipse
MicroProfile Health Subsystem
04:31:07,548 INFO
[org.jboss.as.webservices] (ServerService Thread Pool -- 74)
WFLYWS0002: Activating WebServices Extension
04:31:07,552 INFO
[org.jboss.as.connector] (MSC service thread 1-2) WFLYJCA0009:
Starting JCA Subsystem (WildFly/IronJacamar 1.4.17.Final)
04:31:07,553 INFO
[org.wildfly.extension.microprofile.metrics.smallrye] (ServerService
Thread Pool -- 62) WFLYMETRICS0001: Activating Eclipse MicroProfile
Metrics Subsystem
04:31:07,575 INFO [org.jboss.as.security]
(MSC service thread 1-7) WFLYSEC0001: Current PicketBox
version=5.0.3.Final
04:31:07,641 INFO
[org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0003:
Undertow 2.0.26.Final starting
04:31:07,643 INFO
[org.jboss.as.connector.subsystems.datasources] (ServerService Thread
Pool -- 43) WFLYJCA0004: Deploying JDBC-compliant driver class
org.h2.Driver (version 1.4)
04:31:07,728 INFO
[org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7)
WFLYJCA0018: Started Driver service with driver-name = h2
04:31:07,752 INFO [org.jboss.as.naming] (MSC service thread 1-1)
WFLYNAM0003: Starting Naming Service
04:31:07,775 INFO
[org.jboss.as.mail.extension] (MSC service thread 1-8) WFLYMAIL0001:
Bound mail session [java:jboss/mail/Default]
04:31:07,904 INFO
[org.jboss.as.jaxrs] (ServerService Thread Pool -- 53) WFLYRS0016:
RESTEasy version 3.9.0.Final
04:31:08,089 INFO
[org.wildfly.extension.io] (ServerService Thread Pool -- 52)
WFLYIO001: Worker 'default' has auto-configured to 16 core threads
with 128 task threads based on your 8 available processors
04:31:08,094 INFO [org.jboss.as.ejb3] (MSC service thread 1-3)
WFLYEJB0482: Strict pool mdb-strict-max-pool is using a max instance
size of 32 (per class), which is derived from the number of CPUs on
this host.
04:31:08,094 INFO [org.jboss.as.ejb3] (MSC service
thread 1-4) WFLYEJB0481: Strict pool slsb-strict-max-pool is using a
max instance size of 128 (per class), which is derived from thread
worker pool sizing.
04:31:08,136 INFO
[org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0012:
Started server default-server.
04:31:08,138 INFO
[org.wildfly.extension.undertow] (MSC service thread 1-5) WFLYUT0018:
Host default-host starting
04:31:08,142 INFO
[org.jboss.remoting] (MSC service thread 1-2) JBoss Remoting version
5.0.15.Final
04:31:08,181 INFO [org.wildfly.extension.undertow]
(MSC service thread 1-4) WFLYUT0006: Undertow HTTP listener default
listening on 127.0.0.1:8080
04:31:08,211 INFO
[org.jboss.as.ejb3] (MSC service thread 1-3) WFLYEJB0493: EJB
subsystem suspension complete
04:31:08,302 INFO
[org.jboss.as.connector.subsystems.datasources] (MSC service thread
1-1) WFLYJCA0001: Bound data source
[java:jboss/datasources/ExampleDS]
04:31:10,689 INFO
[org.jboss.as.patching] (MSC service thread 1-2) WFLYPAT0050: WildFly
Full cumulative patch ID is: base, one-off patches include: none
04:31:10,701 WARN [org.jboss.as.domain.management.security] (MSC
service thread 1-8) WFLYDM0111: Keystore C:\Resource\Liferay
7.4\liferay_home\wildfly-18.0.0.Final\standalone\configuration\application.keystore
not found, it will be auto generated on first use with a self signed
certificate for host localhost
04:31:10,709 INFO
[org.jboss.as.server.deployment.scanner] (MSC service thread 1-6)
WFLYDS0013: Started FileSystemDeploymentService for directory
C:\Resource\Liferay
7.4\liferay_home\wildfly-18.0.0.Final\standalone\deployments
04:31:10,718 INFO [org.jboss.as.server.deployment] (MSC service
thread 1-4) WFLYSRV0027: Starting deployment of "ROOT.war"
(runtime-name: "ROOT.war")
04:31:11,147 INFO
[org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0006:
Undertow HTTPS listener https listening on 127.0.0.1:8443
04:31:11,795 INFO [org.jboss.ws.common.management] (MSC service
thread 1-8) JBWS022052: Starting JBossWS 5.3.0.Final (Apache CXF
3.3.3)
04:31:13,885 INFO
[org.infinispan.factories.GlobalComponentRegistry] (MSC service
thread 1-3) ISPN000128: Infinispan version: Infinispan 'Infinity Minus
ONE +2' 9.4.16.Final
04:31:14,581 INFO
[org.jboss.as.clustering.infinispan] (ServerService Thread Pool --
76) WFLYCLINF0002: Started client-mappings cache from ejb
container
04:31:25,630 INFO [io.undertow.servlet] (Portal
Spring Init Thread) Initializing Spring root
WebApplicationContext
04:31:36,902 ERROR
[org.jboss.msc.service.fail] (ServerService Thread Pool -- 77)
MSC000001: Failed to start service
jboss.deployment.unit."ROOT.war".undertow-deployment:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."ROOT.war".undertow-deployment:
java.lang.RuntimeException:
java.lang.reflect.UndeclaredThrowableException
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:81)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at
java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at
org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at java.lang.Thread.run(Thread.java:748)
at
org.jboss.threads.JBossThread.run(JBossThread.java:485)
Caused
by: java.lang.RuntimeException:
java.lang.reflect.UndeclaredThrowableException
at
io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:254)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:96)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78)
... 8 more
Caused by:
java.lang.reflect.UndeclaredThrowableException
at
com.sun.proxy.$Proxy34.contextInitialized(Unknown Source)
at
io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)
at
io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:217)
at
io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:186)
at
io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
at
io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at
org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
at
io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:252)
... 10 more
Caused by:
java.lang.reflect.InvocationTargetException
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
com.liferay.shielded.container.internal.proxy.ContextClassLoaderInvocationHandler.invoke(ContextClassLoaderInvocationHandler.java:43)
at
com.liferay.shielded.container.internal.proxy.EventListenerInvocationHandler.invoke(EventListenerInvocationHandler.java:64)
... 22 more
Caused by: java.lang.RuntimeException:
org.osgi.framework.BundleException: Could not resolve module:
com.liferay.portal.configuration.persistence.impl [28]
Unresolved requirement: Import-Package:
com.liferay.portal.upgrade.registry; version="3.1.0"
-> Export-Package: com.liferay.portal.upgrade.registry;
bundle-symbolic-name="com.liferay.portal.upgrade.api";
bundle-version="8.0.0"; version="3.1.0";
uses:="com.liferay.portal.kernel.upgrade"
com.liferay.portal.upgrade.api [17]
Unresolved
requirement: Import-Package: com.liferay.portal.kernel.upgrade; version="18.1.0"
at
com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:286)
... 28 more
Caused by:
org.osgi.framework.BundleException: Could not resolve module:
com.liferay.portal.configuration.persistence.impl [28]
Unresolved requirement: Import-Package:
com.liferay.portal.upgrade.registry; version="3.1.0"
-> Export-Package: com.liferay.portal.upgrade.registry;
bundle-symbolic-name="com.liferay.portal.upgrade.api";
bundle-version="8.0.0"; version="3.1.0";
uses:="com.liferay.portal.kernel.upgrade"
com.liferay.portal.upgrade.api [17]
Unresolved
requirement: Import-Package: com.liferay.portal.kernel.upgrade; version="18.1.0"
at
org.eclipse.osgi.container.Module.start(Module.java:444)
at
org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:428)
at
org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:447)
at
com.liferay.portal.bootstrap.ModuleFrameworkImpl._startConfigurationBundles(ModuleFrameworkImpl.java:1602)
at
com.liferay.portal.bootstrap.ModuleFrameworkImpl._setUpInitialBundles(ModuleFrameworkImpl.java:1492)
at
com.liferay.portal.bootstrap.ModuleFrameworkImpl.startFramework(ModuleFrameworkImpl.java:271)
at
com.liferay.portal.module.framework.ModuleFrameworkUtil.startFramework(ModuleFrameworkUtil.java:45)
at
com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:283)
... 28 more
04:31:36,908 ERROR [org.jboss.as.controller.management-operation]
(Controller Boot Thread) WFLYCTL0013: Operation ("deploy")
failed - address: ([("deployment" =>
"ROOT.war")]) - failure description: {"WFLYCTL0080:
Failed services" =>
{"jboss.deployment.unit.\"ROOT.war\".undertow-deployment"
=> "java.lang.RuntimeException:
java.lang.reflect.UndeclaredThrowableException
Caused by:
java.lang.RuntimeException:
java.lang.reflect.UndeclaredThrowableException
Caused by:
java.lang.reflect.UndeclaredThrowableException
Caused by:
java.lang.reflect.InvocationTargetException
Caused by:
java.lang.RuntimeException: org.osgi.framework.BundleException: Could
not resolve module: com.liferay.portal.configuration.persistence.impl
[28]
Unresolved requirement: Import-Package:
com.liferay.portal.upgrade.registry; version=\"3.1.0\"
-> Export-Package: com.liferay.portal.upgrade.registry;
bundle-symbolic-name=\"com.liferay.portal.upgrade.api\";
bundle-version=\"8.0.0\"; version=\"3.1.0\";
uses:=\"com.liferay.portal.kernel.upgrade\"
com.liferay.portal.upgrade.api [17]
Unresolved
requirement: Import-Package: com.liferay.portal.kernel.upgrade; version=\"18.1.0\"
Caused by: org.osgi.framework.BundleException: Could not resolve
module: com.liferay.portal.configuration.persistence.impl [28]
Unresolved requirement: Import-Package:
com.liferay.portal.upgrade.registry; version=\"3.1.0\"
-> Export-Package: com.liferay.portal.upgrade.registry;
bundle-symbolic-name=\"com.liferay.portal.upgrade.api\";
bundle-version=\"8.0.0\"; version=\"3.1.0\";
uses:=\"com.liferay.portal.kernel.upgrade\"
com.liferay.portal.upgrade.api [17]
Unresolved
requirement: Import-Package: com.liferay.portal.kernel.upgrade;
version=\"18.1.0\"
"}}
04:31:36,974 INFO
[org.jboss.as.server] (ServerService Thread Pool -- 44) WFLYSRV0010:
Deployed "ROOT.war" (runtime-name :
"ROOT.war")
04:31:36,975 INFO
[org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183:
Service status report
WFLYCTL0186: Services which failed to
start: service
jboss.deployment.unit."ROOT.war".undertow-deployment:
java.lang.RuntimeException:
java.lang.reflect.UndeclaredThrowableException
WFLYCTL0448: 1
additional services are down due to their dependencies being missing
or failed
04:31:37,013 INFO [org.jboss.as.server] (Controller
Boot Thread) WFLYSRV0212: Resuming server
04:31:37,016 INFO
[org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management
interface listening on http://127.0.0.1:9990/management
04:31:37,016 INFO [org.jboss.as] (Controller Boot Thread)
WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
04:31:37,018 ERROR [org.jboss.as] (Controller Boot Thread)
WFLYSRV0026: WildFly Full 18.0.0.Final (WildFly Core 10.0.0.Final)
started (with errors) in 39985ms - Started 415 of 647 services (3
services failed or missing dependencies, 376 services are lazy,
passive or on-demand)
Pls do let me know whats the issue, Should i use different version of wildfly or i have missed on something, have followed all the steps in the link shared. Thanks in Advance!