Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
kiesa viciius
Liferay Chat Portlet not deploying
March 12, 2012 1:21 AM
Answer

kiesa viciius

Rank: Junior Member

Posts: 28

Join Date: August 22, 2011

Recent Posts

Hey, I have downloaded the chat portlet .war file from the liferay web site (Version : 6.0.6.1). I have tried to install it as Bruno and over eclipse as project but so far I get an exception while deploying the portlet :

  108:06:01,018 INFO  [AutoDeployDir:167] Processing chat-portlet-6.0.6.1.xml
  208:06:01,024 INFO  [PortletExplodedTomcatListener:60] Modifying portlets for /var/opt/liferay-portal-6.1.0-ce-ga1/deploy/chat-portlet-6.0.6.1.xml
  3  Copying 1 file to /var/opt/liferay/tomcat/webapps/chat-portlet-6.0.6.1/WEB-INF/classes
  4  Copying 1 file to /var/opt/liferay/tomcat/webapps/chat-portlet-6.0.6.1/WEB-INF/classes
  5  Copying 1 file to /var/opt/liferay/tomcat/webapps/chat-portlet-6.0.6.1/META-INF
  6  Copying 1 file to /var/opt/liferay/tomcat/webapps/chat-portlet-6.0.6.1/WEB-INF/jsp
  708:06:01,172 INFO  [PortletExplodedTomcatListener:66] Portlets for /var/opt/liferay-portal-6.1.0-ce-ga1/deploy/chat-portlet-6.0.6.1.xml modified successfully
  808:06:01,173 INFO  [BaseExplodedTomcatListener:48] Copying file /var/opt/liferay-portal-6.1.0-ce-ga1/deploy/chat-portlet-6.0.6.1.xml to /var/opt/liferay/tomcat/conf/Catalina/localhost
  9Mar 12, 2012 8:06:10 AM org.apache.catalina.startup.HostConfig deployDescriptor
 10INFO: Deploying configuration descriptor /var/opt/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/conf/Catalina/localhost/chat-portlet-6.0.6.1.xml
 11Mar 12, 2012 8:06:10 AM org.apache.catalina.startup.HostConfig deployDescriptor
 12WARNING: A docBase /var/opt/liferay/tomcat/webapps/chat-portlet-6.0.6.1 inside the host appBase has been specified, and will be ignored
 13Mar 12, 2012 8:06:10 AM org.apache.catalina.startup.SetContextPropertiesRule begin
 14WARNING: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:chat-portlet-6.0.6.1' did not find a matching property.
 15Loading file:/var/opt/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/webapps/chat-portlet-6.0.6.1/WEB-INF/classes/service.properties
 1608:06:10,354 ERROR [PortletApplicationContext:87] org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Bean class [com.liferay.portal.spring.annotation.BeanReferenceAnnotationBeanPostProcessor] not found
 17Offending resource: ServletContext resource [/WEB-INF/classes/META-INF/base-spring.xml]
 18Bean ''; nested exception is java.lang.ClassNotFoundException: com.liferay.portal.spring.annotation.BeanReferenceAnnotationBeanPostProcessor
 19org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Bean class [com.liferay.portal.spring.annotation.BeanReferenceAnnotationBeanPostProcessor] not found
 20Offending resource: ServletContext resource [/WEB-INF/classes/META-INF/base-spring.xml]
 21Bean ''; nested exception is java.lang.ClassNotFoundException: com.liferay.portal.spring.annotation.BeanReferenceAnnotationBeanPostProcessor
 22    at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
 23    at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
 24    at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:291)
 25    at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:491)
 26    at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:396)
 27    at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:365)
 28    at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.processBeanDefinition(DefaultBeanDefinitionDocumentReader.java:258)
 29    at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:153)
 30    at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:132)
 31    at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:93)
 32    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)
 33    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
 34    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
 35    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
 36    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
 37    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
 38    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
 39    at com.liferay.portal.spring.context.PortletApplicationContext.loadBeanDefinitions(PortletApplicationContext.java:76)
 40    at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:93)
 41    at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
 42    at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)
 43    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)
 44    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)
 45    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)
 46    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
 47    at com.liferay.portal.spring.context.PortletContextLoaderListener.contextInitialized(PortletContextLoaderListener.java:99)
 48    at com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextListener.doPortalInit(PortalClassLoaderServletContextListener.java:91)
 49    at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)
 50    at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:61)
 51    at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:53)
 52    at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:52)
 53    at com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextListener.contextInitialized(PortalClassLoaderServletContextListener.java:50)
 54    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4765)
 55    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5260)
 56    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 57    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
 58    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:842)
 59    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
 60    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649)
 61    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1581)
 62    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 63    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
 64    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
 65    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 66    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 67    at java.lang.Thread.run(Thread.java:636)
 68Caused by: java.lang.ClassNotFoundException: com.liferay.portal.spring.annotation.BeanReferenceAnnotationBeanPostProcessor
 69    at java.lang.ClassLoader.findClass(ClassLoader.java:373)
 70    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
 71    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
 72    at com.liferay.portal.spring.util.FilterClassLoader.loadClass(FilterClassLoader.java:41)
 73    at org.springframework.util.ClassUtils.forName(ClassUtils.java:257)
 74    at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(BeanDefinitionReaderUtils.java:63)
 75    at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.createBeanDefinition(BeanDefinitionParserDelegate.java:616)
 76    at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:472)
 77    ... 42 more
 7808:06:10,444 ERROR [PortletApplicationContext:87] org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Bean class [com.liferay.portal.dao.shard.ShardAdvice] not found
 79Offending resource: ServletContext resource [/WEB-INF/classes/META-INF/shard-data-source-spring.xml]
 80Bean 'com.liferay.portal.dao.shard.ShardAdvice'; nested exception is java.lang.ClassNotFoundException: com.liferay.portal.dao.shard.ShardAdvice
 81org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Bean class [com.liferay.portal.dao.shard.ShardAdvice] not found
 82Offending resource: ServletContext resource [/WEB-INF/classes/META-INF/shard-data-source-spring.xml]
 83Bean 'com.liferay.portal.dao.shard.ShardAdvice'; nested exception is java.lang.ClassNotFoundException: com.liferay.portal.dao.shard.ShardAdvice
 84    at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
 85    at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
 86    at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:291)
 87    at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:491)
 88    at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:396)
 89    at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:365)
 90    at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.processBeanDefinition(DefaultBeanDefinitionDocumentReader.java:258)
 91    at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:153)
 92    at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:132)
 93    at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:93)
 94    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)
 95    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
 96    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
 97    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
 98    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
 99    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
100    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
101    at com.liferay.portal.spring.context.PortletApplicationContext.loadBeanDefinitions(PortletApplicationContext.java:76)
102    at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:93)
103    at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
104    at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)
105    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)
106    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)
107    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)
108    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
109    at com.liferay.portal.spring.context.PortletContextLoaderListener.contextInitialized(PortletContextLoaderListener.java:99)
110    at com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextListener.doPortalInit(PortalClassLoaderServletContextListener.java:91)
111    at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)
112    at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:61)
113    at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:53)
114    at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:52)
115    at com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextListener.contextInitialized(PortalClassLoaderServletContextListener.java:50)
116    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4765)
117    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5260)
118    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
119    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
120    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:842)
121    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
122    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649)
123    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1581)
124    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
125    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
126    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
127    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
128    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
129    at java.lang.Thread.run(Thread.java:636)
130Caused by: java.lang.ClassNotFoundException: com.liferay.portal.dao.shard.ShardAdvice
131    at java.lang.ClassLoader.findClass(ClassLoader.java:373)
132    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
133    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
134    at com.liferay.portal.spring.util.FilterClassLoader.loadClass(FilterClassLoader.java:41)
135    at org.springframework.util.ClassUtils.forName(ClassUtils.java:257)
136    at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(BeanDefinitionReaderUtils.java:63)
137    at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.createBeanDefinition(BeanDefinitionParserDelegate.java:616)
138    at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:472)
139    ... 42 more
14008:06:10,551 ERROR [ContextLoader:227] Context initialization failed
141org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferaySessionFactory' defined in ServletContext resource [/WEB-INF/classes/META-INF/hibernate-spring.xml]: Cannot resolve reference to bean 'portletClassLoader' while setting bean property 'sessionFactoryClassLoader'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'portletClassLoader' is defined
142    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
143    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
144    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
145    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
146    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
147    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
148    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
149    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
150    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
151    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
152    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
153    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
154    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
155    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)
156    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)
157    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
158    at com.liferay.portal.spring.context.PortletContextLoaderListener.contextInitialized(PortletContextLoaderListener.java:99)
159    at com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextListener.doPortalInit(PortalClassLoaderServletContextListener.java:91)
160    at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)
161    at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:61)
162    at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:53)
163    at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:52)
164    at com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextListener.contextInitialized(PortalClassLoaderServletContextListener.java:50)
165    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4765)
166    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5260)
167    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
168    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
169    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:842)
170    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
171    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649)
172    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1581)
173    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
174    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
175    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
176    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
177    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
178    at java.lang.Thread.run(Thread.java:636)
179Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'portletClassLoader' is defined
180    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:529)
181    at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1094)
182    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:276)
183    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
184    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
185    ... 36 more
18608:06:10,553 ERROR [BasePortalLifecycle:45] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferaySessionFactory' defined in ServletContext resource [/WEB-INF/classes/META-INF/hibernate-spring.xml]: Cannot resolve reference to bean 'portletClassLoader' while setting bean property 'sessionFactoryClassLoader'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'portletClassLoader' is defined
187org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferaySessionFactory' defined in ServletContext resource [/WEB-INF/classes/META-INF/hibernate-spring.xml]: Cannot resolve reference to bean 'portletClassLoader' while setting bean property 'sessionFactoryClassLoader'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'portletClassLoader' is defined
188    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
189    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
190    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
191    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
192    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
193    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
194    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
195    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
196    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
197    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
198    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
199    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
200    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
201    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)
202    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)
203    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
204    at com.liferay.portal.spring.context.PortletContextLoaderListener.contextInitialized(PortletContextLoaderListener.java:99)
205    at com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextListener.doPortalInit(PortalClassLoaderServletContextListener.java:91)
206    at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)
207    at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:61)
208    at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:53)
209    at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:52)
210    at com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextListener.contextInitialized(PortalClassLoaderServletContextListener.java:50)
211    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4765)
212    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5260)
213    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
214    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
215    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:842)
216    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
217    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649)
218    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1581)
219    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
220    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
221    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
222    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
223    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
224    at java.lang.Thread.run(Thread.java:636)
225Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'portletClassLoader' is defined
226    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:529)
227    at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1094)
228    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:276)
229    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
230    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
231    ... 36 more
23208:06:10,554 INFO  [PluginPackageUtil:1099] Reading plugin package for chat-portlet-6.0.6.1
233Loading file:/var/opt/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/webapps/chat-portlet-6.0.6.1/WEB-INF/classes/service.properties
234Loading file:/var/opt/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/webapps/chat-portlet-6.0.6.1/WEB-INF/classes/portlet.properties
23508:06:10,714 INFO  [PortletHotDeployListener:614] Registering portlets for chat-portlet-6.0.6.1
236Loading file:/var/opt/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/webapps/chat-portlet-6.0.6.1/WEB-INF/classes/portlet.properties
23708:06:10,765 INFO  [PortletHotDeployListener:433] 1 portlet for chat-portlet-6.0.6.1 is available for use
238Mar 12, 2012 8:06:10 AM org.apache.catalina.core.StandardContext startInternal
239SEVERE: Error listenerStart
240Mar 12, 2012 8:06:10 AM org.apache.catalina.core.StandardContext startInternal
241SEVERE: Context [/chat-portlet-6.0.6.1] startup failed due to previous errors
24208:06:10,769 INFO  [PluginPackageUtil:1099] Reading plugin package for chat-portlet-6.0.6.1
24308:06:20,782 WARN  [PluginPackageUtil:1364] Unable to reindex unistalled package chat-portlet-6.0.6.1: Unable to communicate with repository http://plugins.liferay.com/official
24408:06:20,791 INFO  [PortletHotDeployListener:470] Unregistering portlets for chat-portlet-6.0.6.1
24508:06:20,794 INFO  [PortletHotDeployListener:503] 1 portlet for chat-portlet-6.0.6.1 was unregistered


any ideas what could be wrong ?

I'm working with Liferay 6.1
Jan Gregor
RE: Liferay Chat Portlet not deploying
March 15, 2012 3:43 PM
Answer

Jan Gregor

Rank: Regular Member

Posts: 224

Join Date: October 20, 2010

Recent Posts

Hi there,

You should download the portlet for the right version (6.1 - 6.1 portlet)

Regards,
Jan.
Hitoshi Ozawa
RE: Liferay Chat Portlet not deploying
March 15, 2012 4:35 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

If you are using Liferay 6.1.0 GA1 Tomcat bundle, chat portlet should be already be included. Chat portlet is added by default to all pages and do not appear in the "Add" menu. The portlet should be availble by clicking on the "Online Friends" item at the bottom righthand corner of the page.
Rami MASMOUDI
RE: Liferay Chat Portlet not deploying
April 18, 2012 6:34 AM
Answer

Rami MASMOUDI

Rank: New Member

Posts: 10

Join Date: April 17, 2012

Recent Posts

Jan Gregor:
Hi there,

You should download the portlet for the right version (6.1 - 6.1 portlet)

Regards,
Jan.


Hello,

Where can I find a chat portlet for liferay 6.1?
There is there anyone who succeed to add it?

thanks.
Ravi Kumar Gupta
RE: Liferay Chat Portlet not deploying
April 18, 2012 7:02 AM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1303

Join Date: June 23, 2009

Recent Posts

It is generally included in bundled version as Hitoshi mentioned.. if not, you can download it from svn http://svn.liferay.com/repos/public/plugins/branches/6.1.x/portlets/chat-portlet/
Try with username guest and no password.
The same can also be downloaded from sf.net http://sourceforge.net/projects/lportal/files/Liferay%20Plugins/6.1.0%20GA1/
devaraj s
RE: Liferay Chat Portlet not deploying
July 10, 2012 4:05 AM
Answer

devaraj s

Rank: Regular Member

Posts: 209

Join Date: May 21, 2012

Recent Posts

hi ravikumar,
I have downloaded the war from the link you mentioned, and succefully deployed chat portlet. but I am not able to see the chat portlet in a page
Mazhar Alam
RE: Liferay Chat Portlet not deploying
July 24, 2012 9:41 PM
Answer

Mazhar Alam

Rank: Regular Member

Posts: 201

Join Date: November 25, 2011

Recent Posts

Exactly Im also getting nothing on the page related to chat..some (1/m/invoke) is being displayed...
Hitoshi Ozawa
RE: Liferay Chat Portlet not deploying
July 24, 2012 10:38 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

How are you trying to display it? In the Add menu or preloaded in the bottom right hand corner?
devaraj s
RE: Liferay Chat Portlet not deploying
July 25, 2012 10:44 PM
Answer

devaraj s

Rank: Regular Member

Posts: 209

Join Date: May 21, 2012

Recent Posts

Hitoshi Ozawa:
How are you trying to display it? In the Add menu or preloaded in the bottom right hand corner?



I am trying to add from add menu. but there is no option of chat portlet.


thanks in advance
Valérie barbot
RE: Liferay Chat Portlet not deploying
July 26, 2012 12:32 AM
Answer

Valérie barbot

Rank: Junior Member

Posts: 72

Join Date: April 7, 2009

Recent Posts

I had the same problem with Liferay 6.1 and the same errors logs. the folder was created in webapps but I did not see the chat portlet. I rebooted the server and it's ok
Olaf Kock
RE: Liferay Chat Portlet not deploying
July 26, 2012 2:59 AM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 3464

Join Date: September 23, 2008

Recent Posts

The chat portlet is typically included by the theme (on every page). The classic (Liferay's default) theme does so. If you have your own theme, you might need to make sure that it also includes the chat portlet. You typically can't just "add" it to a page.
The theme also includes the CSS to make the chat portlet appear differently than any other portlet (read: at the bottom of the page just as you can see here on liferay.com)