Fórum

"... cannot be resolved to a type" creating Hook

Maximiliano Chiesa, modificado 11 Anos atrás.

"... cannot be resolved to a type" creating Hook

Junior Member Postagens: 47 Data de Entrada: 20/07/12 Postagens Recentes
Hi, I'm creating my first Hook, everything was working fine but suddeny I started getting this errors. I don't remember changing anything.

Here is an image with the errors that I'm getting:




Thanks in advance!
thumbnail
Hitoshi Ozawa, modificado 11 Anos atrás.

RE: "... cannot be resolved to a type" creating Hook

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
This happens when your build path is broken. Left select the project and select "Build Path" -> "Configure Build Path" -> "Libraries"
thumbnail
David H Nebinger, modificado 11 Anos atrás.

RE: "... cannot be resolved to a type" creating Hook

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
Hitoshi Ozawa:
This happens when your build path is broken. Left select the project and select "Build Path" -> "Configure Build Path" -> "Libraries"


Not quite. This is a known problem w/ the Liferay IDE in that in a JSP hook it does not know the root path for resolving imports, etc.

The only thing you can do is be careful about your JSP changes and ignore the errors, that plus hoping your code doesn't break the portal emoticon
thumbnail
Hitoshi Ozawa, modificado 11 Anos atrás.

RE: "... cannot be resolved to a type" creating Hook

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
everything was working fine but suddeny I started getting this errors


Combining the above with what David stated, I've looked over at the error again.
Check if your /html/portlet/asset_publisher/init.jsp file is still there. You may have deleted it accidently.