RE: Custom Login Portlet and Forgot password in LF

Thomas Kim, modified 5 Years ago. New Member Post: 1 Join Date: 6/26/20 Recent Posts
Hi ,I am trying to put up a custom Login module for my LF app and when I am done with code and packaging a bundle, it throws 
org.osgi.framework.BundleException: Could not resolve module: ap.login [1128]_  Unresolved requirement: Import-Package: com.liferay.login.web.internal.portlet.action_ [Sanitized]
    at org.eclipse.osgi.container.Module.start(Module.java:444)
    at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:428)
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1263)
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1236)
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520)
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316)

Also note that, I have already  added export packages for these 2 code files in bnd.bnd of the project
Please suggest what is possible cause of this.
Best Regards
thumbnail
Dominik Marks, modified 5 Years ago. Regular Member Posts: 149 Join Date: 8/29/12 Recent Posts
You are trying to use the package com.liferay.login.web.internal.portlet.action. That package is not exported by the Login Portlet (indicated by the "internal" part of the package name).

Looking at your code snippet you should have a look at the documentation on how to override MVCActionCommands and how to call the original Action inside, see e.g. https://help.liferay.com/hc/en-us/articles/360017886432-Overriding-MVCActionCommands