Foros de discusión

"login.events.post" not working as expected

thumbnail
Vikas V, modificado hace 12 años.

"login.events.post" not working as expected

Junior Member Mensajes: 83 Fecha de incorporación: 28/09/11 Mensajes recientes
Hi,

I have created a hook to add an event post login.

To my knowledge, code in "login.events.post" entry will execute as soon as user is authenticated.
But below logs gets generated even before I sign-in.


09:37:05,765 INFO [AutoDeployDir] Processing HooksTest.war
09:37:05,905 INFO [PortletAutoDeployListener] Copying portlets for D:\devworks\liferay-portal-6.0.6\deploy\HooksTest.war
Expanding: D:\devworks\liferay-portal-6.0.6\deploy\HooksTest.war into C:\DOCUME~1\309150\LOCALS~1\Temp\20111026093705936
Loading vfsfile:/D:/devworks/liferay-portal-6.0.6/jboss-5.1.0/server/default/deploy/kaleo-web.war/WEB-INF/classes/service.properties
09:37:06,982 INFO [HookHotDeployListener] Registering hook for kaleo-web
Loading vfsfile:/D:/devworks/liferay-portal-6.0.6/jboss-5.1.0/server/default/deploy/kaleo-web.war/WEB-INF/classes/portal.properties
09:37:07,091 INFO [HookHotDeployListener] Hook for kaleo-web is available for use
09:37:07,154 INFO [TomcatDeployment] deploy, ctxPath=/mail-portlet
Copying 1 file to C:\DOCUME~1\309150\LOCALS~1\Temp\20111026093705936\WEB-INF\classes
Copying 1 file to C:\DOCUME~1\309150\LOCALS~1\Temp\20111026093705936\WEB-INF\classes
09:37:08,059 INFO [[/mail-portlet]] Initializing Spring root WebApplicationContext
Warning: META-INF\MANIFEST.MF modified in the future.
Warning: META-INF\maven\HooksTest\HooksTest\pom.properties modified in the future.
Warning: WEB-INF\classes\com\tsky\selfcare\selfcareIdentityLoginModule.class modified in the future.
Warning: WEB-INF\classes\portal-hook.properties modified in the future.Loading vfsfile:/D:/devworks/liferay-portal-6.0.6/jboss-5.1.0/server/default/deploy/mail-portlet.war/WEB-INF/classes/service.properties

Warning: WEB-INF\classes\portal.properties modified in the future.
Warning: META-INF modified in the future.
Warning: META-INF\maven modified in the future.
Warning: META-INF\maven\HooksTest modified in the future.
Warning: WEB-INF\classes\com modified in the future.
Warning: WEB-INF\classes\com\tsky modified in the future.
Warning: WEB-INF\classes\com\tsky\selfcare modified in the future.
Copying 34 files to D:\devworks\liferay-portal-6.0.6\jboss-5.1.0\server\default\deploy\HooksTest.war


09:37:56,692 INFO [TomcatDeployment] deploy, ctxPath=/HooksTest
09:37:57,160 INFO [HookHotDeployListener] Registering hook for HooksTest
Loading vfsfile:/D:/devworks/liferay-portal-6.0.6/jboss-5.1.0/server/default/deploy/HooksTest.war/WEB-INF/classes/portal.properties
Control is coming inside myClass
09:37:57,238 INFO [HookHotDeployListener] Hook for HooksTest is available for use
09:37:57,441 INFO [PortletHotDeployListener] Registering portlets for HooksTest
09:37:57,503 INFO [PortletHotDeployListener] 1 portlet for HooksTest is available for use
Loading vfsfile:/D:/devworks/liferay-portal-6.0.6/jboss-5.1.0/server/default/deploy/chat-portlet.war/WEB-INF/classes/portlet.properties
09:39:07,846 INFO [PluginPackageUtil] Checking for available updates
09:39:17,881 WARN [PluginPackageUtil] Unable to communicate with repository http://plugins.liferay.com/official


Here "Control is coming inside myClass" should have been displayed after I sign-in and thats what login.events.post is supposed to do. But it gets displayed as soon as I start the server.

Where could I be going wrong?

Regards,