ERROR [MVCPortlet:361] null is not a valid include

Posted on 02/05/2012 by Charalampos Chrysikopoulos

I was happy with my portlet, till I encounter a strange error after my deploy:

ERROR [MVCPortlet:361] null is not a valid include

I was not prepared for such an error, and I couldn't imagine what could have gone wrong. Having a look at the source code was not helpful and googlin it was even less helpful. So i started to undo my last actions with the help of svn. And then I found the cause of my problems. I have edited the file portlet.xml with the GUI view of the editor (not the source code view) and the view cut out the following part of the xml:


view-jsp
/html/pfcportlet/view.jsp


After that, I lost every trust on those UI editors... Having control of the source code is very important. If fear the moment, when I see a strange error in the generated code of service builder... I hope this moment will never come.

This entry was posted in Liferay and tagged Liferay, liferay 6.1 by Charalampos Chrysikopoulos