Details

    • Type: Regression Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.2.0 CE M3
    • Fix Version/s: 6.2.0 CE M4
    • Labels:
    • Environment:
      Tomcat 7.0.34 + MySQL 5. Portal 6.2.X GIT ID: 5e70cf5d85b7b8d134231a5a849f7c14ec999c37.
      Plugins 6.2.X GIT ID: 6df5ae3ed7a9e490e4de541aa872635fb531ff05.

      Description

      Steps to reproduce this issue:

      1. Start Liferay bundle clean (with no plugins/portlets)
      2. Hot deploy Contacts-portlet

      Console will nearly finish deploying Contacts-portlet, then throw the errors below. Liferay detects Contacts Portlet deployment in Update Manager, and the option to add the portlet on a page displays in Add > Contacts Center; My Contacts. But using these portlets throws more bean exceptions (see second stack trace).

      23:01:44,940 ERROR [localhost-startStop-2][ContextLoader:227] Context initialization failed
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageListener.hot_deploy' defined in ServletContext resource [/WEB-INF/classes/META-INF/messaging-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationExcept
      ion: Could not instantiate bean class [com.liferay.contacts.messaging.HotDeployMessageListener]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.lang.ClassNotFoundException: com.liferay.chat.util.ChatExtensionsUtil
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:964)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:484)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.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(DefaultListableBeanFactory.java:585)
              at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.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(PortletContextLoaderListener.java:97)
              at com.liferay.portal.deploy.hot.SpringHotDeployListener.doInvokeDeploy(SpringHotDeployListener.java:77)
              at com.liferay.portal.deploy.hot.SpringHotDeployListener.invokeDeploy(SpringHotDeployListener.java:40)
              at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:186)
              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:159)
              at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:149)
              at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)
              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:52)
              at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:111)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
              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:1114)
              at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
              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:619)
      Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.contacts.messaging.HotDeployMessageListener]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.lang.ClassNotFoundException: com.liferay.chat.util.ChatExtens
      ionsUtil
              at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
              at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957)
              ... 40 more
      Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.liferay.chat.util.ChatExtensionsUtil
              at com.liferay.portal.kernel.util.ClassResolverUtil.resolveByPortletClassLoader(ClassResolverUtil.java:77)
              at com.liferay.contacts.messaging.HotDeployMessageListener.<init>(HotDeployMessageListener.java:75)
              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)
              ... 42 more
      Caused by: java.lang.ClassNotFoundException: com.liferay.chat.util.ChatExtensionsUtil
              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)
              ... 48 more
      
      23:01:44,973 ERROR [localhost-startStop-2][HotDeployImpl:189] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error initializing Spring for contacts-portlet
      com.liferay.portal.kernel.deploy.hot.HotDeployException: Error initializing Spring for contacts-portlet
              at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:46)
              at com.liferay.portal.deploy.hot.SpringHotDeployListener.invokeDeploy(SpringHotDeployListener.java:43)
              at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:186)
              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:159)
              at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:149)
              at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)
              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:52)
              at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:111)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
              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:1114)
              at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
              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:619)
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageListener.hot_deploy' defined in ServletContext resource [/WEB-INF/classes/META-INF/messaging-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstanti
      ationException: Could not instantiate bean class [com.liferay.contacts.messaging.HotDeployMessageListener]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.lang.ClassNotFoundException: com.liferay.chat.util.ChatExtensionsUtil
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:964)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:484)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.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(DefaultListableBeanFactory.java:585)
              at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.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(PortletContextLoaderListener.java:97)
              at com.liferay.portal.deploy.hot.SpringHotDeployListener.doInvokeDeploy(SpringHotDeployListener.java:77)
              at com.liferay.portal.deploy.hot.SpringHotDeployListener.invokeDeploy(SpringHotDeployListener.java:40)
              ... 24 more
      Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.contacts.messaging.HotDeployMessageListener]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.lang.ClassNotFoundException: com.liferay.chat.util.ChatExtens
      ionsUtil
              at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
              at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957)
              ... 40 more
      Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.liferay.chat.util.ChatExtensionsUtil
              at com.liferay.portal.kernel.util.ClassResolverUtil.resolveByPortletClassLoader(ClassResolverUtil.java:77)
              at com.liferay.contacts.messaging.HotDeployMessageListener.<init>(HotDeployMessageListener.java:75)
              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)
              ... 42 more
      Caused by: java.lang.ClassNotFoundException: com.liferay.chat.util.ChatExtensionsUtil
              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)
              ... 48 more
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

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