I am using hook to overide the default LoginAction
through hooks.
But I am getting this Exception:
Caused by: java.lang.ClassNotFoundException: com.liferay.portlet.login.action.LoginAction
This is how I am doing it:
liferay-hook.xml
<?xml version="1.0"?>
<!DOCTYPE hook PUBLIC "-//Liferay//DTD Hook 6.1.0//EN" "http://www.liferay.com/dtd/liferay-hook_6_1_0.dtd">
<hook>
<struts-action>
<struts-action-path>/login/login</struts-action-path>
<struts-action-impl>com.liferay.samplehook.action.SampleStrutsAction</struts-action-impl>
</struts-action>
</hook>
You can not refer to portal-impl classes from plugin hook.
You should extend BaseStrutsPortletAction.java from portal-service in your case.
You can refer to sample-struts-action-hook
Regards