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

HotDeployException: Error registering extension environment for sample-ext

    Details

    • Fix Priority:
      4
    • Application Servers:
      Apache Tomcat 8.0.x, JBoss EAP 7.0

      Description

      Running 'ant deploy' for sample-ext into JBoss 7.0.0 EAP throws the following error message in the console:

      16:20:18,917 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:252] Processing sample-ext-7.0.0.1.war
      16:20:18,921 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseAutoDeployListener:42] Copying extension environment plugin for /Users/ayame/Liferay/public/master-bundles/deploy/sample-ext-7.0.0.1.war
      16:20:18,983 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:863] Deploying sample-ext-7.0.0.1.war
      16:20:19,163 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseAutoDeployListener:50] Extension environment for /Users/ayame/Liferay/public/master-bundles/deploy/sample-ext-7.0.0.1.war copied successfully
      16:20:23,547 INFO  [ServerService Thread Pool -- 107][HotDeployImpl:226] Deploying sample-ext from queue
      16:20:23,549 INFO  [ServerService Thread Pool -- 107][PluginPackageUtil:1007] Reading plugin package for sample-ext
      16:20:23,580 INFO  [ServerService Thread Pool -- 107][ExtHotDeployListener:125] Registering extension environment for sample-ext
      16:20:23,581 INFO  [elasticsearch[White Pilgrim][clusterService#updateTask][T#1]][metadata:317] [White Pilgrim] [liferay-0] update_mapping [LiferayDocumentType]
      16:20:23,584 ERROR [ServerService Thread Pool -- 107][HotDeployImpl:240] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering extension environment for sample-ext
      com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering extension environment for sample-ext
             	at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:38)
             	at com.liferay.portal.deploy.hot.ExtHotDeployListener.invokeDeploy(ExtHotDeployListener.java:65)
             	at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:237)
             	at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:104)
             	at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:28)
             	at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:164)
             	at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:154)
             	at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)
             	at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:75)
             	at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:58)
             	at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54)
             	at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:116)
             	at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)
             	at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:198)
             	at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)
             	at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)
             	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
             	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
             	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
             	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
             	at java.lang.Thread.run(Thread.java:745)
             	at org.jboss.threads.JBossThread.run(JBossThread.java:320)
      Caused by: com.liferay.portal.kernel.deploy.hot.HotDeployException: /WEB-INF/ext-kernel/ext-kernel.jar does not exist
             	at com.liferay.portal.deploy.hot.ExtHotDeployListener.copyJar(ExtHotDeployListener.java:96)
             	at com.liferay.portal.deploy.hot.ExtHotDeployListener.installExt(ExtHotDeployListener.java:225)
             	at com.liferay.portal.deploy.hot.ExtHotDeployListener.doInvokeDeploy(ExtHotDeployListener.java:168)
             	at com.liferay.portal.deploy.hot.ExtHotDeployListener.invokeDeploy(ExtHotDeployListener.java:62)
             	... 20 more
      

      Reproduced on
      JBoss 7.0.0. EAP + MySQL 5.6.29. Portal master GIT ID: 93ecd62d1aff0456635c7029f8065dba0b12b360.
      Plugins master GIT ID: 0b2ca089c079f25de47047b508cb1ea6639e7795.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brian.lee Brian Lee
                Reporter:
                albert.lee Albert Lee
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 36 weeks, 4 days ago

                  Packages

                  Version Package
                  7.0.X EE
                  Master