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

Portal does not start properly in JBoss6 after portal-123

    Details

      Description

      Steps to reproduce

      1.- Deploy Liferay (portal-123 or higher) on Jboss6
      2.- Start the portal

      Expected result
      Everything is fine

      Actual result
      Errors like these are shown:

      08:25:34,922 ERROR [ServerService Thread Pool -- 136][ClassPathUtil:228] Class com.liferay.portal.servlet.MainServlet is not loaded from a standard location (/WEB-INF/classes)
      
      [...]
      
      08:26:15,225 ERROR [ServerService Thread Pool -- 136][ExtAutoDeployer:68] java.lang.IllegalArgumentException: jboss7 is not a valid application server type
      java.lang.IllegalArgumentException: jboss7 is not a valid application server type
      	at com.liferay.portal.tools.deploy.BaseDeployer.checkArguments(BaseDeployer.java:251)
      	at com.liferay.portal.deploy.auto.ExtAutoDeployer.<init>(ExtAutoDeployer.java:65)
      

      Reason
      Backporting LPS-68262 we changed the logic to detect JBOSS, and now we are always returning _serverType=ServerType.JBOSS5 or _serverType.ServerType.JBOSS7 but never _serverType.ServerType.JBOSS. So during the classpath loading (ClassPathUtil.java[192]):

      if ((ServerDetector.isJBoss() && ServerDetector.isWildfly()) &&
          (protocol.equals("vfs") || protocol.equals("vfsfile"))) {
      [...]
      }
      

      This comparison is false in case your Jboss is not 5 or 7, and it does not start properly.

      *This issue does not affect to Master because there is no specific logic related to Jboss5 or Jboss7 and we just return _serverType=SERVER_TYPE.JBOSS.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 44 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.X EE