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
This error also has a NoClassDefFoundError. Here's an explanation. Hope this helps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.