Foren
Cannot import LoginUtil
M. Garcia, geändert vor 12 Jahren.
Cannot import LoginUtil
Regular Member Beiträge: 107 Beitrittsdatum: 17.05.11 Neueste Beiträge
Hello,
I'm developping a portlet that would display a link to connect as a user and explore the portal (for demo purpose).
Here's the import line causing the error (hilighted by Eclipse) :
I have this error when deploying :
I have developped several portlets with no such import errors, this seems to be a Build Path issue but all other imports work from com.liferay*.
Thanks for enlightening me ! =)
PS : Liferay 6.0.6
I'm developping a portlet that would display a link to connect as a user and explore the portal (for demo purpose).
Here's the import line causing the error (hilighted by Eclipse) :
import com.liferay.portlet.login.util.LoginUtil;
I have this error when deploying :
java.lang.Error: Unresolved compilation problems:
The import com.liferay.portlet.login cannot be resolved
LoginUtil cannot be resolved
I have developped several portlets with no such import errors, this seems to be a Build Path issue but all other imports work from com.liferay*.
Thanks for enlightening me ! =)
PS : Liferay 6.0.6
jelmer kuperus, geändert vor 12 Jahren.
RE: Cannot import LoginUtil (Antwort)
Liferay Legend Beiträge: 1191 Beitrittsdatum: 10.03.10 Neueste Beiträge
That class is located in portal-impl.jar, these are classes internal to liferay and not part of its public api
chirag soni, geändert vor 7 Jahren.
RE: Cannot import LoginUtil
New Member Beiträge: 2 Beitrittsdatum: 15.05.13 Neueste Beiträge
So Suppose I want to adding role when user creating account, how i can achieve that functionality?
Currently I created struts action hook but LoginUtil class not import in my Custom class.
Can you please help me with this.
Thanks in Advance
Currently I created struts action hook but LoginUtil class not import in my Custom class.
Can you please help me with this.
Thanks in Advance
Pooja P Joshi, geändert vor 12 Jahren.
RE: Cannot import LoginUtil (Antwort)
New Member Beiträge: 10 Beitrittsdatum: 18.11.09 Neueste Beiträge
portal-impl classes are not accessible from plugins. You can access portal-service and portal-kernel only.
Thanks,
-Pooja
Thanks,
-Pooja
M. Garcia, geändert vor 12 Jahren.
RE: Cannot import LoginUtil
Regular Member Beiträge: 107 Beitrittsdatum: 17.05.11 Neueste Beiträge
Well, thank you =)