Fórum

Cannot import LoginUtil

thumbnail
M. Garcia, modificado 12 Anos atrás.

Cannot import LoginUtil

Regular Member Postagens: 107 Data de Entrada: 17/05/11 Postagens Recentes
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) :
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
thumbnail
jelmer kuperus, modificado 12 Anos atrás.

RE: Cannot import LoginUtil (Resposta)

Liferay Legend Postagens: 1191 Data de Entrada: 10/03/10 Postagens Recentes
That class is located in portal-impl.jar, these are classes internal to liferay and not part of its public api
thumbnail
chirag soni, modificado 7 Anos atrás.

RE: Cannot import LoginUtil

New Member Postagens: 2 Data de Entrada: 15/05/13 Postagens Recentes
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 Advanceemoticon
Pooja P Joshi, modificado 12 Anos atrás.

RE: Cannot import LoginUtil (Resposta)

New Member Postagens: 10 Data de Entrada: 18/11/09 Postagens Recentes
portal-impl classes are not accessible from plugins. You can access portal-service and portal-kernel only.

Thanks,
-Pooja
thumbnail
M. Garcia, modificado 12 Anos atrás.

RE: Cannot import LoginUtil

Regular Member Postagens: 107 Data de Entrada: 17/05/11 Postagens Recentes
Well, thank you =)