Uploaded image for project: 'PUBLIC - Liferay Maven'
  1. PUBLIC - Liferay Maven
  2. MAVEN-125

direct-deploy is not including the same dependencies that the specified auto-deployer of a plugin does

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Master, 6.2.X
    • Fix Version/s: Master
    • Component/s: Plugins
    • Labels:
      None

      Description

      For example, if you create a layout-tpl and execute direct-deploy from maven, you get a war that doesn't deploy correctly in the server because there are some missing dependencies.

      These are the logs in the startup server for a sample-layouttpl:

      [7/15/14 1:51:46:840 CEST] 00000009 SystemOut     O 01:51:46,840 INFO  [server.startup : 2][HotDeployEvent:130] Plugin rrhh-sample-layouttpl requires marketplace-portlet
      [7/15/14 1:51:46:840 CEST] 00000009 SystemOut     O 01:51:46,840 INFO  [server.startup : 2][HotDeployImpl:198] Deploying rrhh-sample-layouttpl from queue
      [7/15/14 1:51:46:841 CEST] 00000009 SystemOut     O 01:51:46,840 INFO  [server.startup : 2][PluginPackageUtil:1016] Reading plugin package for rrhh-sample-layouttpl
      [7/15/14 1:51:46:928 CEST] 00000009 webapp        I com.ibm.ws.webcontainer.webapp.WebApp log SRVE0292I: Servlet Message - [rrhh-liferay-ear#rrhh-sample-layouttpl.war]:.Initializing Spring root WebApplicationContext
      [7/15/14 1:51:46:940 CEST] 00000009 SystemOut     O 01:51:46,938 ERROR [server.startup : 2][PortletContextLoaderListener:113] java.lang.ClassNotFoundException: com.liferay.util.bean.PortletBeanLocatorUtil
      java.lang.ClassNotFoundException: com.liferay.util.bean.PortletBeanLocatorUtil
              at java.lang.Class.forNameImpl(Native Method)
              at java.lang.Class.forName(Class.java:174)
              at com.liferay.portal.spring.context.PortletContextLoaderListener.contextInitialized(PortletContextLoaderListener.java:99)
              at com.liferay.portal.deploy.hot.SpringHotDeployListener.doInvokeDeploy(SpringHotDeployListener.java:85)
              at com.liferay.portal.deploy.hot.SpringHotDeployListener.invokeDeploy(SpringHotDeployListener.java:41)
              at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:208)
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 21 weeks, 5 days ago

                Packages

                Version Package
                Master