Foros de discusión
Cannot import LoginUtil
M. Garcia, modificado hace 12 años.
Cannot import LoginUtil
Regular Member Mensajes: 107 Fecha de incorporación: 17/05/11 Mensajes recientes
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, modificado hace 12 años.
RE: Cannot import LoginUtil (Respuesta)
Liferay Legend Mensajes: 1191 Fecha de incorporación: 10/03/10 Mensajes recientes
That class is located in portal-impl.jar, these are classes internal to liferay and not part of its public api
chirag soni, modificado hace 7 años.
RE: Cannot import LoginUtil
New Member Mensajes: 2 Fecha de incorporación: 15/05/13 Mensajes recientes
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, modificado hace 12 años.
RE: Cannot import LoginUtil (Respuesta)
New Member Mensajes: 10 Fecha de incorporación: 18/11/09 Mensajes recientes
portal-impl classes are not accessible from plugins. You can access portal-service and portal-kernel only.
Thanks,
-Pooja
Thanks,
-Pooja
M. Garcia, modificado hace 12 años.
RE: Cannot import LoginUtil
Regular Member Mensajes: 107 Fecha de incorporación: 17/05/11 Mensajes recientes
Well, thank you =)