Fórumok

Error registering hook for so-hook

Ankit _, módosítva 10 év-val korábban

Error registering hook for so-hook

Junior Member Bejegyzések: 46 Csatlakozás dátuma: 2012.10.18. Legújabb bejegyzések
Hi All,

I am using liferay 6.1.1 GA2 and social office 2.0.5.
I deployed social office in liferay successfully and running perfectly fine.
After some time i removed so-hook from liferay tomcat and tried to deploy again but it is giving me below exception and due to that exception so-hook is not registering and social office is not working.

12:40:33,640 ERROR [pool-2-thread-3][HotDeployImpl:191] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering hook for so-hook
com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering hook for so-hook
	at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:46)
	at com.liferay.portal.deploy.hot.HookHotDeployListener.invokeDeploy(HookHotDeployListener.java:276)
	at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:188)
	at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96)
	at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:27)
	at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:151)
	at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:141)
	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:103)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1099)
	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1621)
	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: com.liferay.portal.kernel.upgrade.UpgradeException: Skipping upgrade processes for so-hook because you are trying to upgrade with an older version
	at com.liferay.portal.deploy.hot.HookHotDeployListener.updateRelease(HookHotDeployListener.java:2442)
	at com.liferay.portal.deploy.hot.HookHotDeployListener.initPortalProperties(HookHotDeployListener.java:1927)
	at com.liferay.portal.deploy.hot.HookHotDeployListener.initPortalProperties(HookHotDeployListener.java:1580)
	at com.liferay.portal.deploy.hot.HookHotDeployListener.doInvokeDeploy(HookHotDeployListener.java:563)
	at com.liferay.portal.deploy.hot.HookHotDeployListener.invokeDeploy(HookHotDeployListener.java:273)
	... 24 more



I looked into this thread also http://www.liferay.com/community/forums/-/message_boards/message/19072986 , but can't resolve it.
how to resolve this issue ?

Thanks,
Ankit
Ankit _, módosítva 10 év-val korábban

RE: Error registering hook for so-hook

Junior Member Bejegyzések: 46 Csatlakozás dátuma: 2012.10.18. Legújabb bejegyzések
Hi All,

I deployed the lfieray social office 2.0.5 downloaded from liferay site (15190404_25011213_25012280.lpkg).
I downloaded source from the https://github.com/liferay/liferay-plugins/tree/master/portlets and select 6.1.1 GA2 release and download portlets and hooks source.

Now when i build so-hook from 6.1.1-plugin-sdk , it said me some thing like below that i mension.

5:17:33,105 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:177] Processing so-hook-6.1.1.1.war
05:17:33,106 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][HookAutoDeployListener:48] Copying hook plugin for /home/aspire17/liferay/liferay-portal-6.1.1-ce-ga2/deploy/so-hook-6.1.1.1.war
05:17:33,107 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:763] Deploying so-hook-6.1.1.1.war
05:17:33,109 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:859] Updating Social Office from version 6.1.1.1-ce-ga2-20130507155221814 to version 6.1.1.1
05:17:33,110 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:868] Not updating Social Office because version 6.1.1.1-ce-ga2-20130507155221814 is newer than version 6.1.1.1


It clearly said that it is not updating with older version. and if i remove the so-hook from tomcat and tried to build this so-hook then it is giving me previous post error "Error registering hook for so-hook".

I think it can version issues while deploying, So, from where i can download the exact 6.1.1.1-ce-ga2-20130507155221814 source and how should i build for this version ?

Thanks,
Ankit