Foros de discusión

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

Maximiliano Chiesa, modificado hace 11 años.

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

Junior Member Mensajes: 47 Fecha de incorporación: 20/07/12 Mensajes recientes
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 hace 11 años.

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

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
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 hace 11 años.

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

Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
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 hace 11 años.

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

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
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.