Details

    • Fix Priority:
      5
    • Affects Portal Version/s:
      6.2.x
    • Similar Issues:
      Show 5 results 

      Description

      If Contacts Center is not deployed before SO porltet, exception occurs,

      22:58:36,972 ERROR [localhost-startStop-1][ContextLoader:206] Context initialization failed
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageListener.hot_deploy' defi
      ned in ServletContext resource [/WEB-INF/classes/META-INF/messaging-spring.xml]: Instantiation of bean failed; nested ex
      ception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.so.messag
      ing.SOHotDeployMessageListener]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.lang.
      ClassNotFoundException: com.liferay.contacts.util.ContactsExtensionsUtil
      at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:28
      8)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAuto
      wireCapableBeanFactory.java:1002)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutow
      ireCapableBeanFactory.java:906)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCap
      ableBeanFactory.java:484)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapab
      leBeanFactory.java:455)
      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegis
      try.java:222)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListable
      BeanFactory.java:585)
      at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplic
      ationContext.java:895)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
      at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)
      at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)
      at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
      at com.liferay.portal.spring.context.PortletContextLoaderListener.contextInitialized(PortletContextLoaderListene
      r.java:85)
      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)
      at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:95)
      at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:27)
      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:64)
      at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:56)
      at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54)
      at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:116)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
      at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
      at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.so.messag
      ing.SOHotDeployMessageListener]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.lang.
      ClassNotFoundException: com.liferay.contacts.util.ContactsExtensionsUtil
      at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
      at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy
      .java:108)
      at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:28
      0)
      ... 41 more
      Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.liferay.contacts.util.ContactsExtensionsUti
      l
      at com.liferay.portal.kernel.util.ClassResolverUtil.resolveByPortletClassLoader(ClassResolverUtil.java:77)
      at com.liferay.so.messaging.SOHotDeployMessageListener.<init>(SOHotDeployMessageListener.java:55)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
      ... 43 more
      Caused by: java.lang.ClassNotFoundException: com.liferay.contacts.util.ContactsExtensionsUtil
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:247)
      at com.liferay.portal.kernel.util.ClassResolverUtil.resolveByPortletClassLoader(ClassResolverUtil.java:74)
      ... 49 more
      22:58:37,004 ERROR [localhost-startStop-1][HotDeployImpl:211] com.liferay.portal.kernel.deploy.hot.HotDeployException: E
      rror initializing Spring for so-portletso-portlet
      com.liferay.portal.kernel.deploy.hot.HotDeployException: Error initializing Spring for so-portletso-portlet
      at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java
      :46)
      at com.liferay.portal.deploy.hot.SpringHotDeployListener.invokeDeploy(SpringHotDeployListener.java:44)
      at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:208)
      at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:95)
      at com..

        Activity

        Hide
        mandy.zia added a comment -

        PASSED Manual Testing using the following steps:

        1. Deploy so-portlet.
        2. Console should show something like the following:
          INFO: Deploying web application directory D:\6.2.0\liferay-portal-6.2.0-ce-ga1\tomcat-7.0.42\webapps\so-portlet
          23:26:44,919 INFO  [localhost-startStop-3][HotDeployEvent:130] Plugin so-portlet requires contacts-portlet, marketplace-portlet, microblogs-portlet
          23:26:44,920 INFO  [localhost-startStop-3][HotDeployImpl:249] Queueing so-portlet for deploy because it is missing contacts-portlet, microblogs-portlet
          
        3. Deploy contacts-portlet, microblogs-portlet, and private-messaging portlets.

        After deploying the dependencies, so-portlet will proceed to register and you should see something like the following:

        23:29:22,576 INFO  [localhost-startStop-6][HookHotDeployListener:814] Hook for so-portlet is available for use
        23:29:22,579 INFO  [localhost-startStop-6][PortletHotDeployListener:343] Registering portlets for so-portlet
        Loading file:/D:/6.2.0/liferay-portal-6.2.0-ce-ga1/tomcat-7.0.42/temp/1-so-portlet/WEB-INF/classes/portlet.properties
        23:29:23,072 INFO  [localhost-startStop-6][PortletHotDeployListener:495] 7 portlets for so-portlet are available for use
        

        Committed at:
        Plugins 6.2.X CE Git ID: c2061369c48d0e8919ef8ceb0f66150c2634fff3.
        Plugins 6.2.X EE Git ID: 98547a9f3cb26090f1a67a14eb423f3645f8ab16.

        Show
        mandy.zia added a comment - PASSED Manual Testing using the following steps: Deploy so-portlet. Console should show something like the following: INFO: Deploying web application directory D:\6.2.0\liferay-portal-6.2.0-ce-ga1\tomcat-7.0.42\webapps\so-portlet 23:26:44,919 INFO [localhost-startStop-3][HotDeployEvent:130] Plugin so-portlet requires contacts-portlet, marketplace-portlet, microblogs-portlet 23:26:44,920 INFO [localhost-startStop-3][HotDeployImpl:249] Queueing so-portlet for deploy because it is missing contacts-portlet, microblogs-portlet Deploy contacts-portlet, microblogs-portlet, and private-messaging portlets. After deploying the dependencies, so-portlet will proceed to register and you should see something like the following: 23:29:22,576 INFO [localhost-startStop-6][HookHotDeployListener:814] Hook for so-portlet is available for use 23:29:22,579 INFO [localhost-startStop-6][PortletHotDeployListener:343] Registering portlets for so-portlet Loading file:/D:/6.2.0/liferay-portal-6.2.0-ce-ga1/tomcat-7.0.42/temp/1-so-portlet/WEB-INF/classes/portlet.properties 23:29:23,072 INFO [localhost-startStop-6][PortletHotDeployListener:495] 7 portlets for so-portlet are available for use Committed at: Plugins 6.2.X CE Git ID: c2061369c48d0e8919ef8ceb0f66150c2634fff3. Plugins 6.2.X EE Git ID: 98547a9f3cb26090f1a67a14eb423f3645f8ab16.
        Hide
        Christian Stokes added a comment -

        PASSED Manual Testing following the steps in the description.

        Fixed on:
        Tomcat 7.0 + MySQL 5. Portal 6.2.0 CE
        Tomcat 7.0 + MySQL 5. Portal 6.2.10.1 EE

        CE Plugins GIT ID: 01ebd4200d28746346de70f2faf0d3738d030f8f.
        EE Plugins GIT ID: eaa46773c46ea364bdf84c05fe2b63384ea85072.

        The SO Portlet no longer throws exceptions if deployed before the Contacts portlet. Each .war cleanly asks the user to deploy its dependencies first.

        Show
        Christian Stokes added a comment - PASSED Manual Testing following the steps in the description. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.2.0 CE Tomcat 7.0 + MySQL 5. Portal 6.2.10.1 EE CE Plugins GIT ID: 01ebd4200d28746346de70f2faf0d3738d030f8f. EE Plugins GIT ID: eaa46773c46ea364bdf84c05fe2b63384ea85072. The SO Portlet no longer throws exceptions if deployed before the Contacts portlet. Each .war cleanly asks the user to deploy its dependencies first.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:
              Date of First Response:
              Days since last comment:
              1 year, 19 weeks, 6 days ago

              Development

                Structure Helper Panel