掲示板

Chat Portlet not visible

thumbnail
11年前 に Thomas Berg によって更新されました。

Chat Portlet not visible

Regular Member 投稿: 131 参加年月日: 09/09/07 最新の投稿
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):
<div class="portlet-boundary portlet-boundary_1_WAR_chatportlet_ portlet-static portlet-static-end chat-portlet " id="p_p_id_1_WAR_chatportlet_">
    <span id="p_1_WAR_chatportlet"></span>
    <div class="portlet-body"></div>
</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
thumbnail
11年前 に Thomas Berg によって更新されました。

RE: Chat Portlet not visible

Regular Member 投稿: 131 参加年月日: 09/09/07 最新の投稿
Update:
I've been able to verify that it is NOT a caching issue with the custom attribute.
11年前 に Oliver Bayer によって更新されました。

RE: Chat Portlet not visible

Liferay Master 投稿: 894 参加年月日: 09/02/18 最新の投稿
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
thumbnail
11年前 に Thomas Berg によって更新されました。

RE: Chat Portlet not visible

Regular Member 投稿: 131 参加年月日: 09/09/07 最新の投稿
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:

12:25:21,558 INFO  [pool-2-thread-15][HotDeployImpl:178] Deploying chat-portlet from queue
12:25:21,559 INFO  [pool-2-thread-15][PluginPackageUtil:1033] Reading plugin package for chat-portlet
Loading 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
Loading 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
Loading 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
Loading 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
Loading 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
12:25:22,196 INFO  [pool-2-thread-15][HookHotDeployListener:550] Registering hook for chat-portlet
Loading 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
12:25:22,208 INFO  [pool-2-thread-15][HookHotDeployListener:690] Hook for chat-portlet is available for use
Loading 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
thumbnail
11年前 に Bijan Vakili によって更新されました。

RE: Chat Portlet not visible

Expert 投稿: 375 参加年月日: 09/03/10 最新の投稿
Hi Thomas,

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

Bijan
thumbnail
11年前 に Thomas Berg によって更新されました。

RE: Chat Portlet not visible

Regular Member 投稿: 131 参加年月日: 09/09/07 最新の投稿
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
11年前 に Oliver Bayer によって更新されました。

RE: Chat Portlet not visible

Liferay Master 投稿: 894 参加年月日: 09/02/18 最新の投稿
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
thumbnail
11年前 に Thomas Berg によって更新されました。

RE: Chat Portlet not visible

Regular Member 投稿: 131 参加年月日: 09/09/07 最新の投稿
Hi Oli,

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

10:04:43,361 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:177] Processing chat-portlet.war
10: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
10: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
10: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
10: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
10: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
10: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
10: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
10: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
10: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
10: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
10: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
10:04:43,366 DEBUG [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListener:81] Using deployer com.liferay.portal.deploy.auto.PortletAutoDeployer
10:04:43,367 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:763] Deploying chat-portlet.war
  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
  Copying 1 file to /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/20121213100443367/WEB-INF
  Copying 1 file to /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/20121213100443367/WEB-INF/classes
  Copying 1 file to /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/20121213100443367/WEB-INF/classes
  Copying 1 file to /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/20121213100443367/WEB-INF/jsp
10: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
  Copying 281 files to /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/chat-portlet
  Copying 1 file to /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/chat-portlet
  Deleting directory /opt/portal/liferay/servers/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/temp/20121213100443367
10: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.
10: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
10: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
10: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
10: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
10: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
10: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
10: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
10: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
10: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
10: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
10: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
10: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
10: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
10: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
10: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
10: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
10:04:53,225 INFO  [pool-2-thread-11][HotDeployImpl:178] Deploying chat-portlet from queue
10:04:53,227 INFO  [pool-2-thread-11][PluginPackageUtil:1033] Reading plugin package for chat-portlet
Loading 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
Loading 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
Loading 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
Loading 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
Loading 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
10:04:54,586 DEBUG [pool-2-thread-11][ExtHotDeployListener:105] Invoking deploy for chat-portlet
10:04:54,591 INFO  [pool-2-thread-11][HookHotDeployListener:550] Registering hook for chat-portlet
Loading 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
10:04:54,605 INFO  [pool-2-thread-11][HookHotDeployListener:690] [b]Hook for chat-portlet is available for use[/b]
10:04:54,606 DEBUG [pool-2-thread-11][LayoutTemplateHotDeployListener:72] Invoking deploy for chat-portlet
Loading 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
[b]10:04:54,909 DEBUG [pool-2-thread-11][SocialHotDeployListener:73] Invoking deploy for chat-portlet
10: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:

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


Right now, I feel crestfallen and utterly confused emoticon
11年前 に Oliver Bayer によって更新されました。

RE: Chat Portlet not visible

Liferay Master 投稿: 894 参加年月日: 09/02/18 最新の投稿
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