Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Custom Login Portlet and Forgot password in LF
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 throwsBest Regards
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.
Attachments:
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
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
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™