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.

112:40:33,640 ERROR [pool-2-thread-3][HotDeployImpl:191] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering hook for so-hook 2com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering hook for so-hook 3 at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:46) 4 at com.liferay.portal.deploy.hot.HookHotDeployListener.invokeDeploy(HookHotDeployListener.java:276) 5 at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:188) 6 at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96) 7 at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:27) 8 at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:151) 9 at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:141)10 at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)11 at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:64)12 at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:56)13 at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:52)14 at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:103)15 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)16 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)17 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)18 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)19 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)20 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)21 at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1099)22 at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1621)23 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)24 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)25 at java.util.concurrent.FutureTask.run(FutureTask.java:138)26 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)27 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)28 at java.lang.Thread.run(Thread.java:619)29Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: Skipping upgrade processes for so-hook because you are trying to upgrade with an older version30 at com.liferay.portal.deploy.hot.HookHotDeployListener.updateRelease(HookHotDeployListener.java:2442)31 at com.liferay.portal.deploy.hot.HookHotDeployListener.initPortalProperties(HookHotDeployListener.java:1927)32 at com.liferay.portal.deploy.hot.HookHotDeployListener.initPortalProperties(HookHotDeployListener.java:1580)33 at com.liferay.portal.deploy.hot.HookHotDeployListener.doInvokeDeploy(HookHotDeployListener.java:563)34 at com.liferay.portal.deploy.hot.HookHotDeployListener.invokeDeploy(HookHotDeployListener.java:273)35 ... 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 ?

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.

125:17:33,105 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:177] Processing so-hook-6.1.1.1.war305: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.war405:17:33,107 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:763] Deploying so-hook-6.1.1.1.war505: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.1605: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 ?