Forums de discussion

hook "Could not find portal root"

thumbnail
Jack Bakker, modifié il y a 9 années.

hook "Could not find portal root"

Liferay Master Publications: 978 Date d'inscription: 03/01/10 Publications récentes
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, modifié il y a 9 années.

RE: hook "Could not find portal root"

Liferay Master Publications: 978 Date d'inscription: 03/01/10 Publications récentes
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, modifié il y a 9 années.

RE: hook "Could not find portal root"

Liferay Legend Publications: 1123 Date d'inscription: 16/02/10 Publications récentes
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, modifié il y a 9 années.

RE: hook "Could not find portal root"

Liferay Master Publications: 978 Date d'inscription: 03/01/10 Publications récentes
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 !