Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-149982

"org.jboss.modules.ModuleNotFoundException: com.liferay.portal" error if you configure Liferay on JBoss or Wildfly following the official Liferay documentation

    Details

      Description

      If you follow the official Liferay documentation to install Liferay on JBoss or Wildfly:

      You will get the error:

      org.jboss.modules.ModuleNotFoundException: com.liferay.portal

      This error is caused because the out-of-the-box WEB-INF/jboss-deployment-structure.xml file has a dependency with the "com.liferay.portal" module that is not longer necessary as of DXP 7.4

      The error is not reproduced in the CI tests because our tests are setting an empty "com.liferay.portal" module when configuring the application server.

      Steps to reproduce

      1. Install Liferay in JBoss or Wildfly, following the instructions of:
      2. Start Liferay
        • Expected behavior: Liferay starts correctly
        • Wrong behavior: Liferay doesn't start correctly and following exception is thrown
      09:33:39,718 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.module.service."deployment.ROOT.war".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.ROOT.war".main: WFLYSRV0179: Failed to load module: deployment.ROOT.war
              at [email protected]//org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:116)
              at [email protected]//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
              at [email protected]//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
              at [email protected]//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
              at [email protected]//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
              at [email protected]//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
              at [email protected]//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
              at [email protected]//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
              at java.base/java.lang.Thread.run(Thread.java:829)
      Caused by: org.jboss.modules.ModuleNotFoundException: com.liferay.portal
              at org.jboss.modules.Module.addPaths(Module.java:1288)
              at org.jboss.modules.Module.link(Module.java:1644)
              at org.jboss.modules.Module.relinkIfNecessary(Module.java:1672)
              at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:303)
              at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:287)
              at [email protected]//org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:93)
              ... 8 more

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              summer.zhang Summer Zhang
              Reporter:
              jorge.diaz Jorge Diaz
              Participants of an Issue:
              Recent user:
              Felipe Lins
              Engineering Assignee:
              Jorge Diaz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                15 weeks ago

                  Packages

                  Version Package
                  7.4.3.21 CE GA21
                  7.4.3.22 CE GA22
                  7.4.3.23 CE GA23
                  Master