Fórum

hook "Could not find portal root"

thumbnail
Jack Bakker, modificado 9 Anos atrás.

hook "Could not find portal root"

Liferay Master Postagens: 978 Data de Entrada: 03/01/10 Postagens Recentes
v6.2 EE
Studio 2.0.0.2014*-ga1

I am trying to add jsps to an existing hook and am getting an error message "Could not find portal root"...
thumbnail
Jack Bakker, modificado 9 Anos atrás.

RE: hook "Could not find portal root"

Liferay Master Postagens: 978 Data de Entrada: 03/01/10 Postagens Recentes
and this is only after the original author passed me the hook by git ; the original author doesn't have the issue
thumbnail
Gregory Amerson, modificado 9 Anos atrás.

RE: hook "Could not find portal root"

Liferay Legend Postagens: 1123 Data de Entrada: 16/02/10 Postagens Recentes
Jack Bakker:
and this is only after the original author passed me the hook by git ; the original author doesn't have the issue



Hey Jack,

When it can't find the portal root that means the project doesn't have the correct runtime information. So double check this:

1. project is in correct SDK location
2. right-click the project and choose properties > targetd runtimes > select Liferay Portal (version) and hit OK.

Now you should be able to find portal root.
thumbnail
Jack Bakker, modificado 9 Anos atrás.

RE: hook "Could not find portal root"

Liferay Master Postagens: 978 Data de Entrada: 03/01/10 Postagens Recentes
Gregory Amerson:

When it can't find the portal root that means the project doesn't have the correct runtime information. So double check this:

1. project is in correct SDK location
2. right-click the project and choose properties > targetd runtimes > select Liferay Portal (version) and hit OK.

Now you should be able to find portal root.


#2 solved it Greg, thanks much !