Fórumok

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

Maximiliano Chiesa, módosítva 11 év-val korábban

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

Junior Member Bejegyzések: 47 Csatlakozás dátuma: 2012.07.20. Legújabb bejegyzések
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, módosítva 11 év-val korábban

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

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
This happens when your build path is broken. Left select the project and select "Build Path" -> "Configure Build Path" -> "Libraries"
thumbnail
David H Nebinger, módosítva 11 év-val korábban

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

Liferay Legend Bejegyzések: 14916 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
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, módosítva 11 év-val korábban

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

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
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.