Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Thomas Berg
Chat Portlet not visible
6 de diciembre de 2012 11:34
Respuesta

Thomas Berg

Ranking: Regular Member

Mensajes: 125

Fecha de incorporación: 7 de septiembre de 2009

Mensajes recientes

Hello Liferay community!

Environment: Liferay 6.1.1 CE GA2, Tomcat 7.0.27, Ubuntu 10.0.4

We have customized the chat portlet so that it checks a custom field for Sites before rendering.
This works really well in our test environment but the chat portlet just wont render in our production environment. I have tried clearing ${tomcat.home}/tmp and redeploying the portlet and restarted Tomcat without change.

The following is displayed in our production system (view source):
1<div class="portlet-boundary portlet-boundary_1_WAR_chatportlet_ portlet-static portlet-static-end chat-portlet " id="p_p_id_1_WAR_chatportlet_">
2    <span id="p_1_WAR_chatportlet"></span>
3    <div class="portlet-body"></div>
4</div>


The exact same (empty portlet) is rendered in the test system when the flag is set to False.

I've seen that a folder is created in ${tomcat.home}/work/Catalina/localhost upon deployment, but in our production system it's empty. In the test environment, the view.jsp has been compiled.

I'm asking for some help regarding what to check! Are there any settings (or filters) that are required for the chatportlet to work?

There must be some differences between the systems but I cannot find what they are. Any suggestions are welcome!
My best guess is that there are some caching issues (either with the portlet files or with the custom field) but I have not been able to verify this.

Regards
Thomas
Thomas Berg
RE: Chat Portlet not visible
7 de diciembre de 2012 0:02
Respuesta

Thomas Berg

Ranking: Regular Member

Mensajes: 125

Fecha de incorporación: 7 de septiembre de 2009

Mensajes recientes

Update:
I've been able to verify that it is NOT a caching issue with the custom attribute.
Oliver Bayer
RE: Chat Portlet not visible
7 de diciembre de 2012 1:18
Respuesta

Oliver Bayer

Ranking: Liferay Master

Mensajes: 875

Fecha de incorporación: 18 de febrero de 2009

Mensajes recientes

Hi Thomas,

not sure what is causing the chat portlet to not show up but maybe you can use the following hints to narrow it down.

As you don't see any compiled classes in the work folder I would sugguest you to check the tomcat logs on server startup. Do you find a message like "chat portlet is available for use" in catalina.out? Do you get any errors on startup or while deploying the portlet? Can you deploy any other portlets? If not maybe the deploy path is set wrongly in the control panel server settings or it could be a linux file system permission error.

If the deployment of the chat portlet is working without any errors you can try adding the portlet to liferay-display.xml to see if it would show up on the "add application" menu (just for debugging purpose, afterwards revert the changes).

HTH Oli
Thomas Berg
RE: Chat Portlet not visible
8 de diciembre de 2012 3:43
Respuesta

Thomas Berg

Ranking: Regular Member

Mensajes: 125

Fecha de incorporación: 7 de septiembre de 2009

Mensajes recientes

Hi Oli, thanks for your reply!

When deploying the chat portlet, I don't see "chat portlet is ready for use" although I can see "hook for chat portlet is ready to use". There are no errors.
I don't have any problems deploying other plugins but have noticed that the message ".. is ready for use" rarely shows when deploying plugins. Haven't worried about it since the plugins work properly.

I tried your suggestion and added the chat-portlet to liferay-display.xml and changed <system>true</system> to <system>false</system> in liferay-portlet.xml.
This works in the test environment but not in production. I guess the portlet is in fact not properly deployed. Strangely, there are no error messages and the log looks the same in both systems when deploying:

 112:25:21,558 INFO  [pool-2-thread-15][HotDeployImpl:178] Deploying chat-portlet from queue
 212:25:21,559 INFO  [pool-2-thread-15][PluginPackageUtil:1033] Reading plugin package for chat-portlet
 3Loading file:/opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/49-chat-portlet/WEB-INF/classes/portlet.properties
 4Loading file:/opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/49-chat-portlet/WEB-INF/classes/service.properties
 5Loading file:/opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/49-chat-portlet/WEB-INF/classes/portlet.properties
 6Loading file:/opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/49-chat-portlet/WEB-INF/classes/service.properties
 7Loading file:/opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/49-chat-portlet/WEB-INF/classes/service.properties
 812:25:22,196 INFO  [pool-2-thread-15][HookHotDeployListener:550] Registering hook for chat-portlet
 9Loading file:/opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/49-chat-portlet/WEB-INF/classes/portal.properties
1012:25:22,208 INFO  [pool-2-thread-15][HookHotDeployListener:690] Hook for chat-portlet is available for use
11Loading file:/opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/49-chat-portlet/WEB-INF/classes/portlet.properties



/ Thomas
Bijan Vakili
RE: Chat Portlet not visible
8 de diciembre de 2012 13:08
Respuesta

Bijan Vakili

Ranking: Regular Member

Mensajes: 141

Fecha de incorporación: 10 de marzo de 2009

Mensajes recientes

Hi Thomas,

Are you able to reproduce the issue you're facing in production anywhere else, e.g. local or other environment?

Bijan
Thomas Berg
RE: Chat Portlet not visible
9 de diciembre de 2012 6:05
Respuesta

Thomas Berg

Ranking: Regular Member

Mensajes: 125

Fecha de incorporación: 7 de septiembre de 2009

Mensajes recientes

Hello Bijan,
No, I have not been able to reproduce the error in our test-systems, The chat-portlet works just fine in all systems except the important one emoticon
Oliver Bayer
RE: Chat Portlet not visible
11 de diciembre de 2012 5:14
Respuesta

Oliver Bayer

Ranking: Liferay Master

Mensajes: 875

Fecha de incorporación: 18 de febrero de 2009

Mensajes recientes

Hi Thomas,

did you find a solution for this bug or do you have any additional info on the deployment of the chat portlet? As the portlet didn't show up in the add application menu I think it's a deployment issue. I'm not sure on how to debug any further. Maybe changing some debug levels will show more errors on catalina.out or you can try to remove all other plugins so the log output is easier readable.

Greets Oli
Thomas Berg
RE: Chat Portlet not visible
13 de diciembre de 2012 1:36
Respuesta

Thomas Berg

Ranking: Regular Member

Mensajes: 125

Fecha de incorporación: 7 de septiembre de 2009

Mensajes recientes

Hi Oli,

I tried setting com.liferay.portal.deploy and com.liferay.portal.kernel.deploy log levels to debug. First the deploy:

 110:04:43,361 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:177] Processing chat-portlet.war
 210:04:43,362 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][ExtAutoDeployListener:40] Invoking deploy for /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war
 310:04:43,362 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][HookAutoDeployListener:40] Invoking deploy for /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war
 410:04:43,362 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseAutoDeployListener:105] /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war has a matching extension
 510:04:43,363 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseAutoDeployListener:105] /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war has a matching extension
 610:04:43,364 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][LayoutTemplateAutoDeployListener:41] Invoking deploy for /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war
 710:04:43,364 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseAutoDeployListener:105] /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war has a matching extension
 810:04:43,364 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseAutoDeployListener:76] /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war does not have WEB-INF/liferay-layout-templates.xml
 910:04:43,364 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][LiferayPackageAutoDeployListener:40] Invoking deploy for /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war
1010:04:43,365 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListener:44] Invoking deploy for /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war
1110:04:43,365 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseAutoDeployListener:105] /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war has a matching extension
1210:04:43,365 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListener:77] Copying portlets for /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war
1310:04:43,366 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListener:81] Using deployer com.liferay.portal.deploy.auto.PortletAutoDeployer
1410:04:43,367 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:763] Deploying chat-portlet.war
15  Expanding: /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war into /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/20121213100443367
16  Copying 1 file to /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/20121213100443367/WEB-INF
17  Copying 1 file to /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/20121213100443367/WEB-INF/classes
18  Copying 1 file to /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/20121213100443367/WEB-INF/classes
19  Copying 1 file to /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/20121213100443367/WEB-INF/jsp
2010:04:51,691 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:2083] Modifying Servlet 2.4 /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/20121213100443367/WEB-INF/web.xml
21  Copying 281 files to /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/chat-portlet
22  Copying 1 file to /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/chat-portlet
23  Deleting directory /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/20121213100443367
2410:04:52,111 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListener:87] Portlets for /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war copied successfully. Deployment will start in a few seconds.
2510:04:52,112 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][ThemeAutoDeployListener:41] Invoking deploy for /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war
2610:04:52,112 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseAutoDeployListener:105] /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war has a matching extension
2710:04:52,113 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseAutoDeployListener:76] /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war does not have WEB-INF/liferay-look-and-feel.xml
2810:04:52,113 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseAutoDeployListener:105] /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war has a matching extension
2910:04:52,114 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][WebAutoDeployListener:40] Invoking deploy for /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war
3010:04:52,114 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseAutoDeployListener:105] /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war has a matching extension
3110:04:52,115 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][HookExplodedTomcatListener:36] Invoking deploy for /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war
3210:04:52,115 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseExplodedTomcatListener:141] /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war does not have a matching extension
3310:04:52,115 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseExplodedTomcatListener:141] /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war does not have a matching extension
3410:04:52,116 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][LayoutTemplateExplodedTomcatListener:37] Invoking deploy for /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war
3510:04:52,116 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseExplodedTomcatListener:141] /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war does not have a matching extension
3610:04:52,116 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletExplodedTomcatListener:37] Invoking deploy for /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war
3710:04:52,116 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseExplodedTomcatListener:141] /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war does not have a matching extension
3810:04:52,117 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseExplodedTomcatListener:141] /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war does not have a matching extension
3910:04:52,117 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][ThemeExplodedTomcatListener:36] Invoking deploy for /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war
4010:04:52,117 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseExplodedTomcatListener:141] /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war does not have a matching extension
4110:04:53,225 INFO  [pool-2-thread-11][HotDeployImpl:178] Deploying chat-portlet from queue
4210:04:53,227 INFO  [pool-2-thread-11][PluginPackageUtil:1033] Reading plugin package for chat-portlet
43Loading file:/opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/45-chat-portlet/WEB-INF/classes/portlet.properties
44Loading file:/opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/45-chat-portlet/WEB-INF/classes/service.properties
45Loading file:/opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/45-chat-portlet/WEB-INF/classes/portlet.properties
46Loading file:/opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/45-chat-portlet/WEB-INF/classes/service.properties
47Loading file:/opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/45-chat-portlet/WEB-INF/classes/service.properties
4810:04:54,586 DEBUG [pool-2-thread-11][ExtHotDeployListener:105] Invoking deploy for chat-portlet
4910:04:54,591 INFO  [pool-2-thread-11][HookHotDeployListener:550] Registering hook for chat-portlet
50Loading file:/opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/45-chat-portlet/WEB-INF/classes/portal.properties
5110:04:54,605 INFO  [pool-2-thread-11][HookHotDeployListener:690] [b]Hook for chat-portlet is available for use[/b]
5210:04:54,606 DEBUG [pool-2-thread-11][LayoutTemplateHotDeployListener:72] Invoking deploy for chat-portlet
53Loading file:/opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/45-chat-portlet/WEB-INF/classes/portlet.properties
54[b]10:04:54,909 DEBUG [pool-2-thread-11][SocialHotDeployListener:73] Invoking deploy for chat-portlet
5510:04:54,910 DEBUG [pool-2-thread-11][ThemeHotDeployListener:73] Invoking deploy for chat-portlet[/b]


Still nothing in {tomcat.home}/work/Catalina/localhost/chat-portlet. Wondering why there's no "PortletHotDeployListener"?
Could "/opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/deploy/chat-portlet.war does not have a matching extension" be causing problems with the deployment? If so, how can I fix this problem?
As you can see in the log, the Hook for chat-portlet is available for use but nothing about the chat-portlet. Seems like there should be a PortletHotDeployListener invoked? But... The exact same log is displayed in our test-system and there, the chat-portlet is properly deployed and functional.

And then the undeploy:

110:07:45,653 INFO  [ContainerBackgroundProcessor[StandardEngine[Catalina]]][PluginPackageUtil:1033] Reading plugin package for chat-portlet
210:07:45,694 DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]][ExtHotDeployListener:185] Invoking undeploy for chat-portlet
310:07:45,698 INFO  [ContainerBackgroundProcessor[StandardEngine[Catalina]]][HookHotDeployListener:813] Hook for chat-portlet was unregistered
410:07:45,699 DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]][LayoutTemplateHotDeployListener:118] Invoking undeploy for chat-portlet
510:07:45,703 DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]][SocialHotDeployListener:108] Invoking undeploy for chat-portlet
610:07:45,704 DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]][ThemeHotDeployListener:120] Invoking undeploy for chat-portlet


Right now, I feel crestfallen and utterly confused emoticon
Oliver Bayer
RE: Chat Portlet not visible
14 de diciembre de 2012 1:30
Respuesta

Oliver Bayer

Ranking: Liferay Master

Mensajes: 875

Fecha de incorporación: 18 de febrero de 2009

Mensajes recientes

Hi Thomas,

Thomas Berg:
Right now, I feel crestfallen and utterly confused emoticon


Me too - I'm running out of ideas on how to debug it further emoticon.
Looking at the BaseExplodedTomcatListener:141 you will see that the method isMatchingFileExtension checking for a file of type ".xml". I'm guessing but maybe you're missing the liferay-plugin-apackage.xml?? At least this was the solution in another thread where the ext plugin wasn't deployed correctly.

Greets Oli